wan3.0-video-prime

wan3.0-video-prime 提供非同步影片生成與統一 API 串接。Wan 3.0 的 Prime 版本支援多模態輸入、智慧時長與聲音開關,輸出為 2–30 秒,支援 480P、720P、1080P。請按模型要求準備素材並保留參考順序,建立一次任務後,透過公開任務 ID 查詢狀態與結果。任務 ID 僅用於追蹤,成功後的影片 URL 才是實際媒體,應在 24 小時內儲存。費用按阿里雲北京官網原價除以 6.8 換算美元,不採用限時折扣。輸入影片與輸出影片秒數均計費。最終依實際輸出時長結算,失敗任務退款,既有群組折扣繼續生效。

A suspended glass prism contains layered mountain and lake landscapes in a dark gallery.
模型識別碼
wan3.0-video-prime
供應商
Alibaba
API 端點
/v1/videos
計費
0.264705882352941176
更新時間
2026-10-27

能力

  • Wan 3.0 的 Prime 版本支援多模態輸入、智慧時長與聲音開關,輸出為 2–30 秒,支援 480P、720P、1080P。
  • 支援統一與原生非同步介面,使用相同 API Key。
  • 本機量測影片時長,凍結請求時單價,失敗退款。

限制

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

典型情境

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

價格與計費範例

  • 1080P with sound input video | 0.264705882352941176 | input_video_seconds | {"audio":true,"resolution_tier":"1080p"}
  • 1080P silent input video | 0.264705882352941176 | input_video_seconds | {"audio":false,"resolution_tier":"1080p"}
  • 480P with sound input video | 0.066176470588235294 | input_video_seconds | {"audio":true,"resolution_tier":"480p"}
  • 480P silent input video | 0.066176470588235294 | input_video_seconds | {"audio":false,"resolution_tier":"480p"}
  • 720P with sound input video | 0.132352941176470588 | input_video_seconds | {"audio":true,"resolution_tier":"720p"}
  • 720P silent input video | 0.132352941176470588 | input_video_seconds | {"audio":false,"resolution_tier":"720p"}
  • 1080P with sound output video | 0.264705882352941176 | output_video_seconds | {"audio":true,"resolution_tier":"1080p"}
  • 1080P silent output video | 0.264705882352941176 | output_video_seconds | {"audio":false,"resolution_tier":"1080p"}
  • 480P with sound output video | 0.066176470588235294 | output_video_seconds | {"audio":true,"resolution_tier":"480p"}
  • 480P silent output video | 0.066176470588235294 | output_video_seconds | {"audio":false,"resolution_tier":"480p"}
  • 720P with sound output video | 0.132352941176470588 | output_video_seconds | {"audio":true,"resolution_tier":"720p"}
  • 720P silent output video | 0.132352941176470588 | output_video_seconds | {"audio":false,"resolution_tier":"720p"}

請求參數

參數類型必填預設值可選值
modelstring是
prompttextarea否
imagesasset_list否
videosasset_list否
audiosasset_list否
durationinteger否5
resolutionselect否1080P480P, 720P, 1080P
seedinteger否
prompt_extendboolean否true
audioboolean否true
watermarkboolean否false
aspect_ratioselect否adaptiveadaptive, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16

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":"adaptive","audio":true,"duration":5,"model":"wan3.0-video-prime","prompt_extend":true,"resolution":"1080P","watermark":false}'

Python

import json
import requests

payload = json.loads(r'''{"aspect_ratio":"adaptive","audio":true,"duration":5,"model":"wan3.0-video-prime","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":"adaptive","audio":true,"duration":5,"model":"wan3.0-video-prime","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} 查詢。

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

Wan 3.0 的 Prime 版本支援多模態輸入、智慧時長與聲音開關,輸出為 2–30 秒,支援 480P、720P、1080P。

可以生成靜音影片嗎?

audio=true 生成聲音,false 不生成音軌;有聲與靜音同價。

美元單價是多少?

480P 有聲 $0.066176470588/s; 480P 靜音 $0.066176470588/s; 720P 有聲 $0.132352941176/s; 720P 靜音 $0.132352941176/s; 1080P 有聲 $0.264705882353/s; 1080P 靜音 $0.264705882353/s。輸入影片與輸出影片秒數均計費。按官網原價除以 6.8 換算美元,不採用限時折扣,群組折扣繼續生效。

任務 ID 是結果連結嗎?

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

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

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