wan2.6-i2v-flash

wan2.6-i2v-flash 提供非同步影片生成與統一 API 串接。將一張首影格圖片轉成 2–15 秒影片,支援 720P、1080P 與選用驅動音訊。Flash 版本可明確選擇有聲或靜音,並使用對應單價。請按模型要求準備素材並保留參考順序,建立一次任務後,透過公開任務 ID 查詢狀態與結果。任務 ID 僅用於追蹤,成功後的影片 URL 才是實際媒體,應在 24 小時內儲存。費用按阿里雲北京官網原價除以 6.8 換算美元,不採用限時折扣。僅按成功輸出的影片秒數計費,輸入免費。最終依實際輸出時長結算,失敗任務退款,既有群組折扣繼續生效。

A brushed silver kinetic ring is wrapped in a precise cobalt light trail.
模型識別碼
wan2.6-i2v-flash
供應商
Alibaba
API 端點
/v1/videos
計費
0.073529411764705882
更新時間
2026-10-27

能力

  • 將一張首影格圖片轉成 2–15 秒影片,支援 720P、1080P 與選用驅動音訊。Flash 版本可明確選擇有聲或靜音,並使用對應單價。
  • 支援統一與原生非同步介面,使用相同 API Key。
  • 本機量測影片時長,凍結請求時單價,失敗退款。

限制

  • 結果連結有效期為 24 小時,請及時儲存。
  • 生成具有隨機性,相同種子不保證完全相同的結果。
  • audio=true 為有聲,false 為靜音;Flash 靜音使用較低單價。

典型情境

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

價格與計費範例

  • 1080P with sound output video | 0.073529411764705882 | output_video_seconds | {"audio":true,"resolution_tier":"1080p"}
  • 1080P silent output video | 0.036764705882352941 | output_video_seconds | {"audio":false,"resolution_tier":"1080p"}
  • 720P with sound output video | 0.044117647058823529 | output_video_seconds | {"audio":true,"resolution_tier":"720p"}
  • 720P silent output video | 0.022058823529411765 | output_video_seconds | {"audio":false,"resolution_tier":"720p"}

請求參數

參數類型必填預設值可選值
modelstring是
prompttextarea否
imageasset_list是
audio_urlasset_list否
durationinteger否5
resolutionselect否1080P720P, 1080P
seedinteger否
prompt_extendboolean否true
audioboolean否true
watermarkboolean否false
aspect_ratioselect否16:916:9, 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","audio":true,"duration":5,"image":["https://example.com/reference.jpg"],"model":"wan2.6-i2v-flash","prompt_extend":true,"resolution":"1080P","watermark":false}'

Python

import json
import requests

payload = json.loads(r'''{"aspect_ratio":"16:9","audio":true,"duration":5,"image":["https://example.com/reference.jpg"],"model":"wan2.6-i2v-flash","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","audio":true,"duration":5,"image":["https://example.com/reference.jpg"],"model":"wan2.6-i2v-flash","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} 查詢。

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

將一張首影格圖片轉成 2–15 秒影片,支援 720P、1080P 與選用驅動音訊。Flash 版本可明確選擇有聲或靜音,並使用對應單價。

可以生成靜音影片嗎?

audio=true 為有聲,false 為靜音;Flash 靜音使用較低單價。

美元單價是多少?

720P 有聲 $0.044117647059/s; 720P 靜音 $0.022058823529/s; 1080P 有聲 $0.073529411765/s; 1080P 靜音 $0.036764705882/s。僅按成功輸出的影片秒數計費,輸入免費。按官網原價除以 6.8 換算美元,不採用限時折扣,群組折扣繼續生效。

任務 ID 是結果連結嗎?

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

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

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