Wan 3.0 多模態影片
The text prompt or description for the video.
Optional image URL used as the first frame.
拖放圖片,或點擊瀏覽
支援 PNG, JPEG, WebP。最大 20MB。您也可以從剪貼簿貼上 (Ctrl+V)。
Optional image URL used as the last frame.
拖放圖片,或點擊瀏覽
支援 PNG, JPEG, WebP。最大 20MB。您也可以從剪貼簿貼上 (Ctrl+V)。
最多 10 張參考圖片。
拖放圖片,或點擊瀏覽
支援 PNG, JPEG, WebP。最大 20MB。您也可以從剪貼簿貼上 (Ctrl+V)。
最多 5 段影片,總長不超過 15 秒;輸入與輸出影片總長不超過 30 秒。
拖放影片,或點擊瀏覽
支援 MP4, MOV, WebM。最大 100MB。
最多 5 段音訊,總長不超過 15 秒,支援僅使用音訊參考。
拖放音訊,或點擊瀏覽
支援 MP3, WAV, X-WAV, AAC, MP4, OGG。最大 15MB。
The output video resolution.
The aspect ratio of the generated video.
Video duration in seconds.
Whether to generate AI audio synchronized with the video.
一個公開文件 URL,不能與網頁或首尾影格同時使用。
一個公開網頁 URL,不能與文件或首尾影格同時使用。
結果
結果將顯示在此處
費用: $0.1/秒
提交時預扣:$0.5(5 秒)
Wan 3.0 API 實作指南
Wan 3.0 關鍵資訊
模型能力
- 多模態影片
計費方式
按解析度計算的每 秒 價格
| 480P | 720P | 1080P |
|---|---|---|
| $0.05/秒 | $0.1/秒 | $0.2/秒 |
使用參考影片時按輸入與輸出總長計費,自動長度按實際消耗結算。
應用場景
輸出格式
Wan 3.0 API 文件
請先在演練場執行,再開啟完整 API 文件查看整合細節。
簡介
選擇文字、首尾影格或參考素材。首尾影格不能與參考素材混用;使用尾影格時必須提供首影格。
程式碼範例
1curl -X POST https://api.modelhunter.ai/api/v1/wan/multimodal-video \2-H "Authorization: Bearer YOUR_API_KEY" \3-H "Content-Type: application/json" \4-d '{5"model": "wan/3-0-video",6"input": {7"prompt": "A futuristic cityscape at sunset with neon signs",8"audio": "true",9"resolution": "720P"10}11}'
Schema
查看完整 API 文件輸入
model此能力對應的模型 ID。
值: wan/3-0-video
promptThe text prompt or description for the video.
first_frame_urlOptional image URL used as the first frame.
last_frame_urlOptional image URL used as the last frame.
reference_image_urls最多 10 張參考圖片。
reference_video_urls最多 5 段影片,總長不超過 15 秒;輸入與輸出影片總長不超過 30 秒。
reference_audio_urls最多 5 段音訊,總長不超過 15 秒,支援僅使用音訊參考。
audioWhether to generate AI audio synchronized with the video.
預設值: true
resolutionThe output video resolution.
選項: 480P, 720P, 1080P
預設值: 720P
aspect_ratioThe aspect ratio of the generated video.
選項: adaptive, 16:9, 4:3, 1:1, 3:4, 9:16
預設值: 16:9
durationVideo duration in seconds.
選項: -1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
預設值: 5
reference_file_urls一個公開文件 URL,不能與網頁或首尾影格同時使用。
reference_link_urls一個公開網頁 URL,不能與文件或首尾影格同時使用。
seedSeed
範圍: 0 到 2147483647
webhookUrl任務完成時接收 Webhook 通知的 URL。
metadata附加到任務上用於追蹤的自訂鍵值中繼資料。
回應 (HTTP 202)
success請求是否已成功受理。
data.id唯一任務 ID,可輪詢 GET /api/v1/tasks/{id} 取得結果。
data.status任務狀態: pending, processing, completed, failed.
data.type生成類型: multimodal-video.
data.provider供應商: wan.
data.model本次生成使用的模型 ID。
data.created_at任務建立時間(ISO 8601)。
data.estimated_seconds任務完成前的預估秒數。