跳至內容

Wan Effects

整合

模型 id wan-effects
# 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-effects?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "subject": "fox",
    "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.35 350 API 點數 在此頁面執行

取得 API 金鑰
Alibaba 圖像轉影片 #motion#effects

Wan 2.1 效果模型,可將 cakeify 或 hulk 等選定的視覺效果套用至圖片

在 Doitong 上製作

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

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

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

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

建立請求

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

•必填 image_url
拖放檔案,或

指向輸入圖像的 URL。

aspect_ratio 預設 16:9

輸出影片的寬高比。

•必填

效果的主體文字;預先定義的提示詞範本會以此值填入。

進階 effect_type · num_frames · frames_per_second · num_inference_steps · lora_scale · seed · turbo_mode · enable_safety_checker
預設 cakeify

套用至影片的效果類型。

預設 81

生成的影格數量。

預設 16

輸出影片影格率,以每秒影格數表示。

預設 30

取樣步數;步數越多,處理時間越長但品質越好。

預設 1

控制 LoRA 效果強度的權重縮放係數。

使生成結果可重現的種子。設為 None 會隨機選擇種子。

POST /run/wan-effects?wait=20 報價 → $0.35
# 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-effects?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "subject": "fox",
    "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 Effects

使用透過 `effect_type` 選取的效果將 `image_url` 製作動畫(預設為 cakeify,共 43 種選項),並將你的 `subject` 插入效果的提示詞範本。`num_frames` 為 81-100,`frames_per_second` 為 5-24,`aspect_ratio` 可為 16:9、9:16 或 1:1。`lora_scale`(0.1-2)設定強度,而 `turbo_mode` 以品質換取速度。

參數

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

名稱類型 預設值允許值 說明
subject必填
類型string
效果的主體文字;預先定義的提示詞範本會以此值填入。
image_url必填 image
類型url · image
指向輸入圖像的 URL。
effect_type選填
類型enum
預設值cakeify
squishmuscleinflatecrushrotategun-shootingdeflatecakeifyhulkbabybrideclassypuppysnow-whitedisney-princessmona-lisa
另有 27 個paintingpirate-captainprincessjunglesamuraivipwarriorzenassassintimelapsetsunamifirezoom-calldoom-fpsfus-ro-dahhug-jesusrobot-face-revealsuper-saiyanjumpscarelaughingcartoon-jaw-dropcryingkissingangry-faceselfie-younger-selfanimeifyblast
套用至影片的效果類型。
num_frames選填
類型integer
預設值81
81 – 100
生成的影格數量。
frames_per_second選填
類型integer
預設值16
5 – 24
輸出影片影格率,以每秒影格數表示。
seed選填
類型integer | null
使生成結果可重現的種子。設為 None 會隨機選擇種子。
aspect_ratio選填
類型enum
預設值16:9
16:99:161:1
輸出影片的寬高比。
num_inference_steps選填
類型integer
預設值30
2 – 40
取樣步數;步數越多,處理時間越長但品質越好。
lora_scale選填
類型number
預設值1
0.1 – 2
控制 LoRA 效果強度的權重縮放係數。
turbo_mode選填
類型boolean
預設值false
Turbo 模式;啟用後以影片品質換取更快的生成速度。
enable_safety_checker選填
類型boolean
預設值true
在呼叫端獲得授權的情況下,將此值設為 false 可放寬審核。
必填 標準名稱,也可使用

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

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan-effects",
  "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": 350,
    "usd": "0.35",
    "charged": 350,
    "refunded": 0
  },
  "input": {
    "subject": "fox",
    "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
    },
    "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}模型產生的影片。
seed
integer

更多模型:圖像轉影片

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