跳至內容

Wan Motion

整合

模型 id wan-motion
# 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-motion?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

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

像範例一樣的檔案: $0.75 750 API 點數 您的檔案會在執行前計量 在此頁面執行

取得 API 金鑰
Alibaba 影片轉影片

角色動畫:使用驅動影片的動作讓參考圖片動起來,並適應姿勢

在 Doitong 上製作

Doitong 社群使用 Wan Motion 製作的公開作品。一鍵重複使用提示詞。

顯示的公開作品: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...

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

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

建立請求

控制項是根據模型結構描述生成的。變更設定時,程式碼和價格會同步更新。

預設

可選的文字指示,用於引導生成。

•必填 video_url
拖放檔案,或

驅動影片 URL,用作動作來源。

•必填 image_url
拖放檔案,或

參考圖像 URL,用於定義角色外觀。

進階 acceleration · seed · adapt_motion · enable_safety_checker
acceleration 預設 regular

以快取為基礎的生成加速:選擇 'none' 停用快取,或選擇 'regular' 啟用快取以加快生成。

控制隨機性以產生可重現結果的種子。

POST /run/wan-motion?wait=20 報價 → $0.75
# 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-motion?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

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

需要兩個輸入:`video_url` 中用於提供動作的驅動影片,以及 `image_url` 中用於提供角色外觀的參考圖片。可選的 `prompt` 可引導結果。啟用 `adapt_motion` 後,影片姿勢會依參考角色的身體比例進行調整,適合身形不同的情況。`enhance_identity` 可預處理參考圖片,讓角色身分更加一致。

參數

請傳送標準名稱或原生名稱其中之一,不要同時傳送兩者。 標準名稱

名稱類型 預設值允許值 說明
video_url必填 video
類型url · video
驅動影片 URL,用作動作來源。
image_url必填 image
類型url · image
參考圖像 URL,用於定義角色外觀。
prompt選填
類型string
預設值
可選的文字指示,用於引導生成。
seed選填
類型integer | null
控制隨機性以產生可重現結果的種子。
acceleration選填
類型enum
預設值regular
noneregular
以快取為基礎的生成加速:選擇 'none' 停用快取,或選擇 'regular' 啟用快取以加快生成。
adapt_motion選填
類型boolean
預設值true
調整參考圖像與驅動影片主體之間身體比例差異的動作。啟用後會使驅動動作符合參考比例,當身形或尺寸不同時建議啟用。
enhance_identity選填
類型boolean
預設值false
使用 Flux Kontext Edit 進行參考圖像預處理,在動畫生成前執行,以改善身分特徵保留效果。
enable_safety_checker選填
類型boolean
預設值true
輸入與輸出的安全篩選,只有獲授權的帳戶可以停用。true 值會啟用篩選;未獲授權的請求無論設定為何都會進行篩選。
必填 標準名稱,也可使用

檔案參數接受公開的 https:// URL、最大 10 MB 的 data: URI,或上傳檔案的 file_url。 檔案

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan-motion",
  "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": 750,
    "usd": "0.75",
    "charged": 750,
    "refunded": 0
  },
  "input": {
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    },
    "prompt": "woman dancing",
    "seed": 42
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "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 是模型自己的結果物件。
輸出欄位
video
object {url, content_type, file_name, file_size}生成產生的影片檔案。
prompt
string用於生成輸出的提示詞。
seed
integer生成期間套用的種子值。

給 AI 代理程式:此頁面的 Markdown 位於 https://doitong.com/zh-TW/developers/models/wan-motion.md. 所有模型與指南: https://doitong.com/developers/llms.txt