跳转到内容

Wan 2.2 14B Image Trainer

集成

模型 id wan-22-image-trainer
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/wan-22-image-trainer?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "training_data_url": "https://example.com/your-file.zip",
    "trigger_phrase": "example"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

与示例类似的文件: $4.50 4,500 API 积分 运行前会测量你的文件 在此页面运行

获取 API 密钥
Alibaba 训练 #lora#personalization

使用你的图像为 Wan 2.2 14B 训练主体或风格 LoRA,并返回低噪声和高噪声 LoRA 文件

在 Doitong 上制作

Doitong 社区使用 Wan 2.2 14B Image Trainer 制作的公开作品。一键复用提示词。

显示的公开作品:2
Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scen... 视频

Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scene takes place inside a modern passenger airplane during a daytime flight. Natural smartphone-like cinematography, realistic airplane cabin, authentic passengers, natural lighting, realistic skin...

Реалистичная бытовая сцена в советской одесской квартире зимним вечером. Женщина находится на кух... 视频

Реалистичная бытовая сцена в советской одесской квартире зимним вечером. Женщина находится на кухне, мужчина — в комнате и прихожей. Атмосфера обычной советской семьи перед приходом гостей. Голоса: все персонажи говорят по-русски с естественным, выразительным одесским говором. Характерная...

构建请求

控件根据模型架构生成。更改控件时,代码和价格会同步更新。

•必填

以 URL 表示的训练数据位置。

•必填

用于触发模型的短语。

默认 1000

训练步数总量。

高级 learning_rate · include_synthetic_captions · use_face_detection · use_face_cropping · use_masks · is_style
默认 0.0007

训练期间的学习速率。

POST /run/wan-22-image-trainer?wait=20 报价 → $4.50
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/wan-22-image-trainer?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "training_data_url": "https://example.com/your-file.zip",
    "trigger_phrase": "example"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

运行此请求

你的密钥会保留在此浏览器中:仅发送到 Doitong API;只有勾选“记住”后才会保存到 localStorage。 获取 API 密钥

关于 Wan 2.2 14B Image Trainer

根据 `training_data_url` 中的数据集,为 Wan 2.2 文生图微调 LoRA,并使用必需的 `trigger_phrase` 触发。`steps` 范围为 10 到 6000,`learning_rate` 范围为 1e-6 到 0.1。可切换人脸检测、人脸裁剪和遮罩;`is_style` 会关闭人脸相关选项。输出包括配置文件以及独立的低噪声和高噪声 LoRA 文件。

参数

名称类型 默认值允许值 描述
training_data_url必填
类型string
以 URL 表示的训练数据位置。
trigger_phrase必填
类型string
用于触发模型的短语。
include_synthetic_captions可选
类型boolean
默认值false
控制是否包含合成字幕。
use_face_detection可选
类型boolean
默认值true
训练图像的面部居中调整大小开关:启用面部检测后,调整大小时检测到的面部中心会作为图像中心。
use_face_cropping可选
类型boolean
默认值false
训练图像的面部裁剪开关;启用后,会在调整大小前添加围绕面部的裁剪区域。
use_masks可选
类型boolean
默认值true
控制训练数据中的掩码使用。
steps可选
类型integer
默认值1000
10 – 6,000
训练步数总量。
learning_rate可选
类型number
默认值0.0007
0.000001 – 0.1
训练期间的学习速率。
is_style可选
类型boolean
默认值false
训练的风格数据标记;设为 true 会关闭面部专属功能,包括掩码和面部检测。
必填

输出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan-22-image-trainer",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 4500,
    "usd": "4.50",
    "charged": 4500,
    "refunded": 0
  },
  "input": {
    "training_data_url": "https://example.com/your-file.zip",
    "trigger_phrase": "example"
  },
  "output": {
    "diffusers_lora_file": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    },
    "high_noise_lora": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    },
    "config_file": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
你的文件,由你选择每个 outputs[].url 都是存储中的副本:可永久保存(按 GB-月付费),也可免费保存 7 天,由账户设置或 ?storage= 决定。
每个模型的结构相同图像、视频和音频均包含 type、url、content_type、width、height 和 duration。output 是模型自身的结果对象。
输出字段
diffusers_lora_file
object {url, content_type, file_name, file_size}低噪声 LoRA 文件。
high_noise_lora
object {url, content_type, file_name, file_size}高噪声 LoRA 文件。
config_file
object {url, content_type, file_name, file_size}支持训练后推理端点的配置文件。

对于 AI 代理:此页面的 Markdown 版本位于 https://doitong.com/zh/developers/models/wan-22-image-trainer.md. 所有模型和指南: https://doitong.com/developers/llms.txt