跳转到内容

Wan-2.1 LoRA Trainer · T2V

集成

模型 id wan-trainer/t2v
# 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-trainer/t2v?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "training_data_url": "https://example.com/your-file.zip"
  }'

# 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"

此请求: $2.00 2,000 API 积分 在此页面运行

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

适用于较小 Wan 2.1 文生视频 1.3B 模型的 LoRA 训练器,输入为图像或视频 zip 压缩包

在 Doitong 上制作

Doitong 社区使用 Wan-2.1 LoRA 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...

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

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

构建请求

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

•必填

训练 ZIP 存档 URL,其中包含风格一致的图像,可选包含与对应图像或视频文件同名的字幕文本文件。建议至少包含 10 个图像、视频或两者混合的文件,数量越多越好。

默认 400

训练总步数。

高级 trigger_phrase · learning_rate · auto_scale_input
默认

提示模型生成图像的短语。

默认 0.0002

学习率设置:提高学习率可能加快训练,但会增加过拟合风险。

POST /run/wan-trainer/t2v?wait=20 报价 → $2.00
# 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-trainer/t2v?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "training_data_url": "https://example.com/your-file.zip"
  }'

# 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.1 LoRA Trainer · T2V

使用 `training_data_url` 中的 zip 压缩包训练 Wan 2.1 文生视频 1.3B 的 LoRA,压缩包可包含字幕文本文件。将 `number_of_steps` 设置为 100 到 20000,并调整 `learning_rate`。`trigger_phrase` 可选,`auto_scale_input` 会将视频转换为 16fps 的 81 帧。返回 LoRA 权重和配置文件。

参数

名称类型 默认值允许值 描述
training_data_url必填
类型string
训练 ZIP 存档 URL,其中包含风格一致的图像,可选包含与对应图像或视频文件同名的字幕文本文件。建议至少包含 10 个图像、视频或两者混合的文件,数量越多越好。
number_of_steps可选
类型integer
默认值400
100 – 20,000
训练总步数。
learning_rate可选
类型number
默认值0.0002
0.000001 – 1
学习率设置:提高学习率可能加快训练,但会增加过拟合风险。
trigger_phrase可选
类型string
默认值
提示模型生成图像的短语。
auto_scale_input可选
类型boolean
默认值false
是否自动缩放输入视频:true 会将其长度设置为 81 帧,并将帧率设置为 16 fps。
必填

输出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan-trainer/t2v",
  "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": 2000,
    "usd": "2.00",
    "charged": 2000,
    "refunded": 0
  },
  "input": {
    "training_data_url": "https://example.com/your-file.zip"
  },
  "output": {
    "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
    },
    "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 是模型自身的结果对象。
输出字段
lora_file
object {url, content_type, file_name, file_size}指向训练生成的 LoRA 权重的 URL。
config_file
object {url, content_type, file_name, file_size}用于初始化推理端点的配置。

更多模型:训练

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