跳至內容

Wan · v2.2 5b · Text to Video · Distill

整合

模型 id wan/v2.2-5b/text-to-video/distill
# 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/wan/v2.2-5b/text-to-video/distill?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# 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.08 80 API 點數 · ≈ ₽8.60 在此頁面執行

取得 API 金鑰
Alibaba 文字轉影片 最高 720p

蒸餾版 5B 文字轉影片,預設引導值較低(1),且不接受負面提示詞輸入

在 Doitong 上製作

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

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

建立請求

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

•必填

引導影片生成的文字指示。

resolution 預設 720p

輸出影片解析度,可選 580p 或 720p。

aspect_ratio 預設 16:9

輸出影片的長寬比,可為 16:9 或 9:16。

進階 interpolator_model · video_quality · video_write_mode · num_frames · frames_per_second · num_inference_steps · guidance_scale · shift · num_interpolated_frames · seed · enable_safety_checker · enable_output_safety_checker · enable_prompt_expansion · adjust_fps_for_interpolation
interpolator_model 預設 film

影格插值設定:選擇 None 略過插值,或指定執行插值的模型。

video_quality 預設 high

輸出影片品質設定;設定值越高,會以較大的檔案換取更佳的視覺效果。

video_write_mode 預設 balanced

影片寫入模式,balanced 在速度與品質之間取得平衡。選擇 small 可產生最小檔案並以最慢速度寫入;較快的寫入會更早回傳結果,但會建立較大的檔案。

預設 81

生成的影格數量,範圍為 17–161,包含邊界值。

預設 24

生成影片的影格速率,接受 4 到 60 的值;將 `adjust_fps_for_interpolation` 設為 false 可原樣保留此速率。使用插值且 `adjust_fps_for_interpolation` 為 true(其預設值)時,將此速率乘以插值影格數加一,即可取得最終 FPS。例如,16 FPS 搭配 1 個插值影格會變成 32 FPS。

預設 40

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

預設 1

無分類器引導強度;比例越高,越貼近提示詞,但可能造成品質損失。

預設 5

影片位移設定,允許範圍為 1.0–10.0。

預設 0

在每兩個生成影格之間的間隔插入 0–4 個插值影格。

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

POST /run/wan/v2.2-5b/text-to-video/distill?wait=20 報價 → $0.08
# 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/wan/v2.2-5b/text-to-video/distill?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# 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 · v2.2 5b · Text to Video · Distill

使用蒸餾版 5B 模型進行文字轉影片。接收 `prompt`,並提供與標準 5B 版本相同的控制項:`num_frames` 為 17 至 161、580p 或 720p、三種長寬比,以及選用的 film 或 rife 插值。預設 `guidance_scale` 為 1,而非 3.5,且沒有 `negative_prompt` 欄位。

參數

名稱類型 預設值允許值 說明
prompt必填
類型string
引導影片生成的文字指示。
num_frames選填
類型integer
預設值81
17 – 161
生成的影格數量,範圍為 17–161,包含邊界值。
frames_per_second選填
類型integer | null
預設值24
4 – 60
生成影片的影格速率,接受 4 到 60 的值;將 `adjust_fps_for_interpolation` 設為 false 可原樣保留此速率。使用插值且 `adjust_fps_for_interpolation` 為 true(其預設值)時,將此速率乘以插值影格數加一,即可取得最終 FPS。例如,16 FPS 搭配 1 個插值影格會變成 32 FPS。
seed選填
類型integer | null
使生成結果可重現的種子。設為 None 會隨機選擇種子。
resolution選填
類型enum
預設值720p
580p720p
輸出影片解析度,可選 580p 或 720p。
aspect_ratio選填
類型enum
預設值16:9
16:99:161:1
輸出影片的長寬比,可為 16:9 或 9:16。
num_inference_steps選填
類型integer
預設值40
2 – 50
取樣步數;步數越多,處理時間越長但品質越好。
enable_safety_checker選填
類型boolean
預設值false
處理前的輸入安全篩選,只有獲授權的帳戶可以關閉。未獲授權的請求一律會篩選;其他情況下,true 會啟用篩選。
enable_output_safety_checker選填
類型boolean
預設值false
控制生成影片的安全篩選;設為 true 會在生成後執行檢查。
enable_prompt_expansion選填
類型boolean
預設值false
允許大型語言模型以詳細資訊豐富提示詞。啟用此擴展不會改變提示詞的含義。
guidance_scale選填
類型number
預設值1
1 – 10
無分類器引導強度;比例越高,越貼近提示詞,但可能造成品質損失。
shift選填
類型number
預設值5
1 – 10
影片位移設定,允許範圍為 1.0–10.0。
interpolator_model選填
類型enum
預設值film
nonefilmrife
影格插值設定:選擇 None 略過插值,或指定執行插值的模型。
num_interpolated_frames選填
類型integer
預設值0
0 – 4
在每兩個生成影格之間的間隔插入 0–4 個插值影格。
adjust_fps_for_interpolation選填
類型boolean
預設值true
影格速率調整開關:false 會保留提供的 FPS,true 則將其乘以插值影格數加一。因此,啟用調整且插入 1 個影格時,16 FPS 會變成 32 FPS。
video_quality選填
類型enum
預設值high
lowmediumhighmaximum
輸出影片品質設定;設定值越高,會以較大的檔案換取更佳的視覺效果。
video_write_mode選填
類型enum
預設值balanced
fastbalancedsmall
影片寫入模式,balanced 在速度與品質之間取得平衡。選擇 small 可產生最小檔案並以最慢速度寫入;較快的寫入會更早回傳結果,但會建立較大的檔案。
必填

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan/v2.2-5b/text-to-video/distill",
  "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": 80,
    "usd": "0.08",
    "charged": 80,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "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": "A medium shot establishes a modern, minimalist office setting: clean lines, muted grey walls, and polished wood surfaces. The focus shifts to a close-up on a woman in sharp, navy blue business attire. Her crisp white blouse contrasts with the deep blue of her tailored suit jacket. The subtle texture of the fabric is visible—a fine weave with a slight sheen. Her expression is serious, yet engaging, as she speaks to someone unseen just beyond the frame. Close-up on her eyes, showing the intensity of her gaze and the fine lines around them that hint at experience and focus. Her lips are slightly parted, as if mid-sentence. The light catches the subtle highlights in her auburn hair, meticulously styled. Note the slight catch of light on the silver band of her watch. High resolution 4k",
    "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.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}生成產生的影片檔案。
prompt
string用於生成影片的文字提示詞。
seed
integer生成期間套用的種子值。

更多模型:文字轉影片

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