wan2.6-r2v

wan2.6-r2v 提供非同步影片生成與統一 API 串接。支援 1–5 個有序參考素材,其中最多 3 段影片,生成 2–10 秒的 720P 或 1080P 影片。Flash 版本支援有聲與靜音兩種計價級距。請按模型要求準備素材並保留參考順序,建立一次任務後,透過公開任務 ID 查詢狀態與結果。任務 ID 僅用於追蹤,成功後的影片 URL 才是實際媒體,應在 24 小時內儲存。費用按阿里雲北京官網原價除以 6.8 換算美元,不採用限時折扣。輸出影片與截斷後的參考影片秒數計費,輸入圖片免費。最終依實際輸出時長結算,失敗任務退款,既有群組折扣繼續生效。

A vermilion arch, charcoal sphere and mustard paper fan cast long geometric shadows on an ivory surface.
模型識別碼
wan2.6-r2v
供應商
Alibaba
API 端點
/v1/videos
計費
0.147058823529411765
更新時間
2026-10-27

能力

  • 支援 1–5 個有序參考素材,其中最多 3 段影片,生成 2–10 秒的 720P 或 1080P 影片。Flash 版本支援有聲與靜音兩種計價級距。
  • 支援統一與原生非同步介面,使用相同 API Key。
  • 本機量測影片時長,凍結請求時單價,失敗退款。

限制

  • 結果連結有效期為 24 小時,請及時儲存。
  • 生成具有隨機性,相同種子不保證完全相同的結果。
  • 此模型不開放 audio 布林開關。需要明確靜音時,應選擇支援此參數的 Flash 或 Wan 3.0 模型。

典型情境

  • 電影感廣告與品牌敘事。
  • 視覺分鏡與參考素材驅動的創作。
  • 需要任務輪詢與美元費用追蹤的自動化影片工作流程。

價格與計費範例

  • 1080P billable reference video | 0.147058823529411765 | input_video_seconds | {"resolution_tier":"1080p"}
  • 720P billable reference video | 0.088235294117647059 | input_video_seconds | {"resolution_tier":"720p"}
  • 1080P output video | 0.147058823529411765 | output_video_seconds | {"resolution_tier":"1080p"}
  • 720P output video | 0.088235294117647059 | output_video_seconds | {"resolution_tier":"720p"}

請求參數

參數類型必填預設值可選值
modelstring是
prompttextarea是
imagesasset_list否
videosasset_list否
durationinteger否5
resolutionselect否1080P720P, 1080P
seedinteger否
prompt_extendboolean否true
watermarkboolean否false
aspect_ratioselect否16:916:9, 4:3, 1:1, 3:4, 9:16
negative_prompttextarea否

API 串接範例

cURL

curl -X POST 'https://api.uniall.ai/v1/videos' \
  -H 'Authorization: Bearer $UNIALL_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"aspect_ratio":"16:9","duration":5,"model":"wan2.6-r2v","prompt":"Describe the output you want","prompt_extend":true,"resolution":"1080P","watermark":false}'

Python

import json
import requests

payload = json.loads(r'''{"aspect_ratio":"16:9","duration":5,"model":"wan2.6-r2v","prompt":"Describe the output you want","prompt_extend":true,"resolution":"1080P","watermark":false}''')
response = requests.post(
    "https://api.uniall.ai/v1/videos",
    headers={"Authorization": "Bearer " + UNIALL_API_KEY},
    json=payload,
)
response.raise_for_status()
result = response.json()

JavaScript

const response = await fetch("https://api.uniall.ai/v1/videos", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.UNIALL_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"aspect_ratio":"16:9","duration":5,"model":"wan2.6-r2v","prompt":"Describe the output you want","prompt_extend":true,"resolution":"1080P","watermark":false}),
});

if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();

常見問題

支援哪些介面?

POST /v1/videos 或 /v1/videos/generations;GET /v1/videos/{task_id}。原生 POST /api/v1/services/aigc/video-generation/video-synthesis,使用 X-DashScope-Async: enable,透過 GET /api/v1/tasks/{task_id} 查詢。

輸入素材與時長有何要求?

支援 1–5 個有序參考素材,其中最多 3 段影片,生成 2–10 秒的 720P 或 1080P 影片。Flash 版本支援有聲與靜音兩種計價級距。

可以生成靜音影片嗎?

此模型不開放 audio 布林開關。需要明確靜音時,應選擇支援此參數的 Flash 或 Wan 3.0 模型。

美元單價是多少?

720P $0.088235294118/s; 1080P $0.147058823529/s。輸出影片與截斷後的參考影片秒數計費,輸入圖片免費。按官網原價除以 6.8 換算美元,不採用限時折扣,群組折扣繼續生效。

任務 ID 是結果連結嗎?

不是。任務 ID 用於查詢;成功後的影片 URL 才是媒體結果,請在 24 小時內儲存。

提交後不確定結果,可以直接重試嗎?

不要自動重送狀態不確定的付費提交。有任務 ID 時繼續查詢;未知提交應先確認狀態,再決定是否建立新任務。

參考影片輸入時長如何計費?

分攤時統計參考圖與參考影片,獨立首影格不計入。每段影片分別截斷後累加:1/2/3/4/5 個素材對應每段最多 5/2.5/1.65/1.25/1 秒,並非直接截斷總時長。