跳至內容

Wan 3.0 Reference to Video

整合

模型 id alibaba/wan-3.0/reference-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/reference-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "The fox from Image 1 runs through the forest from Video 1 at night, fireflies everywhere",
    "resolution": "720p",
    "duration": 5,
    "images": [
      "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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

此請求: $0.50 500 API 點數 · ≈ ₽53.79 在此頁面執行

取得 API 金鑰
Alibaba 參考圖轉影片 原生音訊參考輸入2–30 秒最高 1080p #audio#references#long-clips

從最多 10 張圖片、5 個影片和 5 個音訊片段建立 2 到 30 秒的 Wan 3.0 片段。

在 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...

建立請求

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

88 / 20000

描述如何納入參考媒體,並在提示詞中依位置識別個別參考。例如:'the subject in Image 1 walks past Video 1'。

reference_image_urls
拖放檔案,或 · 最多 10 個

參考圖像 URL,最多 10 個。

resolution

生成影片的解析度等級。

aspect_ratio 預設 adaptive

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

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

進階 videos · audios · file_url · web_url · seed · generate_audio · enable_prompt_expansion · enable_thinking
reference_video_urls
拖放檔案,或 · 最多 5 個

提供以 16 fps 或更高影格率播放的參考片段 URL。集合最多可包含 5 部影片,總影片長度不得超過 15 秒。

reference_audio_urls
拖放檔案,或 · 最多 5 個

參考音訊 URL,最多 5 個,合計時長不得超過 15 秒。

拖放檔案,或

作為影片基礎的文件 URL。要求 enable_thinking 為 true。

作為影片基礎的網頁 URL,僅能讀取無需登入的頁面,且必須設定 enable_thinking=true。

POST /run/alibaba/wan-3.0/reference-to-video?wait=20 報價 → $0.50
# 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/reference-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "The fox from Image 1 runs through the forest from Video 1 at night, fireflies everywhere",
    "resolution": "720p",
    "duration": 5,
    "images": [
      "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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

執行此請求

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

關於 Wan 3.0 Reference to Video

Wan 3.0 參考轉影片會將參考圖片、短參考影片(總計 15 秒)和 參考音訊結合為一個生成片段;在提示中按位置指代它們(Image 1、Video 1)。啟用 推理步驟後,也可根據文件或公開網頁生成影片。解析度為 480p 到 1080p,長度為 2 到 30 秒,預設生成音訊。

參數

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

名稱類型 預設值允許值 說明
prompt選填
類型string | null
≤ 20,000 個字元
描述如何納入參考媒體,並在提示詞中依位置識別個別參考。例如:'the subject in Image 1 walks past Video 1'。
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
reference_image_urls選填 images
類型url[] · image
≤ 10 個項目
參考圖像 URL,最多 10 個。
reference_video_urls選填 videos
類型url[] · video
≤ 5 個項目
提供以 16 fps 或更高影格率播放的參考片段 URL。集合最多可包含 5 部影片,總影片長度不得超過 15 秒。
reference_audio_urls選填 audios
類型url[] · audio
≤ 5 個項目
參考音訊 URL,最多 5 個,合計時長不得超過 15 秒。
file_url選填
類型url · file
作為影片基礎的文件 URL。要求 enable_thinking 為 true。
web_url選填
類型string | null
作為影片基礎的網頁 URL,僅能讀取無需登入的頁面,且必須設定 enable_thinking=true。
必填 標準名稱,也可使用

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

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "alibaba/wan-3.0/reference-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": 500,
    "usd": "0.50",
    "charged": 500,
    "refunded": 0
  },
  "input": {
    "prompt": "The fox from Image 1 runs through the forest from Video 1 at night, fireflies everywhere",
    "images": [
      "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/reference-to-video.md. 所有模型與指南: https://doitong.com/developers/llms.txt