跳至內容

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

使用圖像或影片 zip 封存檔,訓練較小型 Wan 2.1 文字轉影片 1.3B 模型的 LoRA

在 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-TW/developers/models/wan-trainer/t2v.md. 所有模型與指南: https://doitong.com/developers/llms.txt