跳至內容

Wan 3.0 Image to Video

整合

模型 id alibaba/wan-3.0/image-to-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/alibaba/wan-3.0/image-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "The hummingbird hovers in place with blurred wings, sips from the flower, then darts out of frame as the camera slowly racks focus to dew drops on the leaves.",
    "resolution": "480p",
    "duration": 5,
    "generate_audio": false,
    "image": "https://content.doitong.com/dev-api/2026/10/21/req_8d2gi6xieif0cf518mbnx752/0-MBac_P_HYvIYfHDIWeUvA_IRELThrq.png"
  }'

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

此請求: $0.25 250 API 點數 · ≈ ₽26.87 在此頁面執行

取得 API 金鑰
Alibaba 圖像轉影片 原生音訊2–30 秒最高 1080p #audio#first-last-frame#long-clips

將首幀動畫化,可選擇朝向最後一幀,製成含音訊的 2 到 30 秒 Wan 3.0 片段。

範例

輸入
輸出 · ~187 秒

提示詞The hummingbird hovers in place with blurred wings, sips from the flower, then darts out of frame as the camera slowly racks focus to dew drops on the leaves.

5 s480p$0.25 · 250 API 點數

建立請求

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

158 / 20000

描述要生成之動作的文字。

•必填 start_image_url
拖放檔案,或

作為輸出影片開頭影格的圖像。

resolution

生成影片的解析度等級。

aspect_ratio 預設 adaptive

輸出的長寬比,可自動選擇。

輸出長度:null 會根據提示詞和參考媒體啟用智慧時長;否則,提供的值會指定秒數。

進階 end_image · seed · enable_prompt_expansion · enable_thinking
end_image_url
拖放檔案,或

作為輸出影片最後影格的圖像;也必須提供 start_image_url。

POST /run/alibaba/wan-3.0/image-to-video?wait=20 報價 → $0.25
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/alibaba/wan-3.0/image-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "The hummingbird hovers in place with blurred wings, sips from the flower, then darts out of frame as the camera slowly racks focus to dew drops on the leaves.",
    "resolution": "480p",
    "duration": 5,
    "generate_audio": false,
    "image": "https://content.doitong.com/dev-api/2026/10/21/req_8d2gi6xieif0cf518mbnx752/0-MBac_P_HYvIYfHDIWeUvA_IRELThrq.png"
  }'

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

執行此請求

您的金鑰會保留在此瀏覽器中:只會傳送至 Doitong API,且只有在勾選「記住」時才會儲存至 localStorage。 取得 API 金鑰

在 Doitong 上製作

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

顯示的公開作品:3
Создай 30-секундный обучающий музыкальный ролик для детей 3–5 лет. Тема: транспорт. Яркая 2D-аним... 影片

Создай 30-секундный обучающий музыкальный ролик для детей 3–5 лет. Тема: транспорт. Яркая 2D-анимация, весёлый водитель в кепке, крупные машины, пастельные цвета. 0:00–0:10 приветствие под музыку; 0:10–0:30 песенка: "Машина едет би-би, би-би", "Поезд едет ту-ту, ту-ту". Бодрая детская музыка...

Создай 30-секундный обучающий музыкальный ролик для детей 3–5 лет. Тема: транспорт. Яркая 2D-аним... 影片

Создай 30-секундный обучающий музыкальный ролик для детей 3–5 лет. Тема: транспорт. Яркая 2D-анимация, тот же весёлый водитель в кепке, самолёт. 0:00–0:15 песенка: "Самолёт летит вж-ж-ж, вж-ж-ж"; 0:15–0:25 интерактивная пауза: водитель спрашивает "Как гудит машина?", пауза; 0:25–0:30 финальный...

# PROMPT: Animated Mother’s Day greeting card **Format:** vertical video 9:16 **Duration:** 12–15... 影片

# PROMPT: Animated Mother’s Day greeting card **Format:** vertical video 9:16 **Duration:** 12–15 seconds **Style:** high‑quality Pixar‑inspired 3D animation, cinematic, warm, emotional, charming animated movie aesthetic. ### The main character is a child Use the attached image as the only and...

關於 Wan 3.0 Image to Video

Wan 3.0 圖片轉影片從你的圖片開始,也可在第二張圖片結束,預設會生成音訊。 提示為選填。片段長度為 2 到 30 秒,解析度為 480p、720p 或 1080p,支援自適應或固定長寬 比,並可選擇針對複雜動作啟用推理步驟。

參數

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

名稱類型 預設值允許值 說明
prompt選填
類型string | null
≤ 20,000 個字元
描述要生成之動作的文字。
resolution選填
類型enum
預設值1080p
480p720p1080p
生成影片的解析度等級。
aspect_ratio選填
類型enum
預設值adaptive
adaptive16:94:31:13:49:16
輸出的長寬比,可自動選擇。
duration選填
類型integer | null
預設值5
2 – 30
輸出長度:null 會根據提示詞和參考媒體啟用智慧時長;否則,提供的值會指定秒數。
audio選填 generate_audio
類型boolean
預設值true
控制是否包含生成的音訊。
enable_prompt_expansion選填
類型boolean
預設值true
控制生成前是否智慧改寫提示詞。停用改寫可減少約 20–60 秒的延遲,但可能會降低品質。
enable_thinking選填
類型boolean
預設值false
在開始生成前啟用額外推理。
seed選填
類型integer | null
0 – 2,147,483,647
start_image_url必填 image
類型url · image
作為輸出影片開頭影格的圖像。
end_image_url選填 end_image
類型url · image
作為輸出影片最後影格的圖像;也必須提供 start_image_url。
必填 標準名稱,也可使用

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

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "alibaba/wan-3.0/image-to-video",
  "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": 250,
    "usd": "0.25",
    "charged": 250,
    "refunded": 0
  },
  "input": {
    "prompt": "The fox leaps toward the fireflies and lands softly on the grass",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "duration": 5,
    "resolution": "720p"
  },
  "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,
      "width": 1024,
      "height": 768,
      "fps": 1.0,
      "duration": 5,
      "num_frames": 1
    },
    "seed": 42,
    "duration": 5,
    "actual_prompt": "string"
  },
  "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/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, width, height, fps, duration, num_frames}生成產生的影片檔案。
seed
integer生成期間套用的種子值。
duration
number生成影片的長度,以秒計。
actual_prompt
string | null

更多模型:圖像轉影片

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