wan3.0-video-prime API 定價
所有價格皆以 USD 計價。比較 APISea 費率與相同計費單位的官方牌價。
| 選項 | APISea | 官方 | 節省 |
|---|---|---|---|
| 預設預設 | $0.2263 | $0.25 | −9% |
| 1080P | $0.2263 | $0.25 | −9% |
| 480P | $0.05657 | $0.0625 | −9% |
| 720P | $0.1131 | $0.125 | −10% |
價格單位為 每秒。
什麼是 wan3.0-video-prime?
wan3.0-video-prime 是 Alibaba Wan 系列的影片生成模型,可透過 APISea 用於文字轉影片、首幀、首幀與末幀,以及多模態參照工作流程。模型接受圖片、影片、音訊、文件和公開網頁作為參照。開發者可以選擇 480P、720P 或 1080P 輸出,設定 2–30 秒的固定片長,或讓模型自行決定,並控制長寬比、音訊、提示詞改寫、seed 和浮水印設定。參照影片工作流程另有輸入與輸出合計片長的限制。
使用 APISea 金鑰,透過 APISea 的影片生成 endpoint 呼叫模型。採隨用隨付,僅對成功的請求收費:480P 每秒 $0.05657,720P 每秒 $0.1131,Default 或 1080P 每秒 $0.2263。預設設定的價格比服務提供者的牌價低約 9%。未指定解析度時會使用 1080P;是否包含音軌不影響價格。
wan3.0-video-prime 的特色
多種生成模式
可透過文字提示、首幀、首幀與末幀,或多模態參照生成影片。文件和公開網頁也可作為參照輸入。
解析度與片長控制
可選擇 480P、720P 或 1080P,以及 2–30 秒的固定輸出片長。將片長設為 -1,模型便會在適用限制內自行決定片長。
彈性長寬比
可使用自動調整尺寸,或選擇 21:9、16:9、4:3、1:1、3:4 或 9:16。以影格或參照媒體生成時,建議使用自動調整尺寸。
可選音訊軌
輸出預設包含音訊,且停用音訊不會改變價格。浮水印可獨立設定,預設為停用。
4 個步驟呼叫 wan3.0-video-prime API
- 01
取得 API key
登入 APISea,儲值 $50 起,並在控制台建立 sk-sea 金鑰。
- 02
設定 base URL
在 SDK 或 HTTP 用戶端中,將 https://api.apisea.ai/v1 設為 base URL。
- 03
傳送請求
呼叫 POST /v1/videos/generations,並使用下方的參數及 "model": "wan3.0-video-prime"。
- 04
處理回應
回應中包含 task_id。持續輪詢 GET /v1/tasks/{task_id},直到狀態為 completed,然後下載結果 URL。
curl --request POST \
--url https://api.apisea.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "wan3.0-video-prime",
"prompt": "A kitten runs across a moonlit rooftop, neon lights of the city flicker in the distance, cinematic quality, smooth camera move.",
"resolution": "720P",
"size": "21:9",
"duration": 5,
"prompt_extend": false,
"seed": -1
}'參數
| 參數 | 類型 | 必填 | 預設 | 說明 |
|---|---|---|---|---|
model | string | 必填 | — | Video generation model name. Allowed values: |
nsfw_check | boolean | 選填 | false | Whether to run content moderation before submitting the video task. |
prompt | string | 選填 | — | Text description. **Required unless** media fields are provided (at least one of prompt or media). |
prompt_extend | boolean | 選填 | true | Enable intelligent prompt rewriting. `true` or omission enables it (upstream default); `false` disables it. Rewriting can improve short prompts but may increase latency. |
resolution | string | 選填 | 1080P | Output resolution (case-insensitive) |
size | string | 選填 | adaptive | Aspect ratio. `aspect_ratio` is also accepted. |
duration | integer | 選填 | 5 | Duration in seconds: |
audio | boolean | 選填 | true | Whether the output includes an audio track. Default `true`. **Price is the same with or without audio.** |
seed | integer | 選填 | — | Integer random seed: `-1` or `[0, 2147483647]`. `-1` is equivalent to omission and selects a random seed. Out-of-range values such as `-2` or `2147483648` return HTTP 400 at submission. |
watermark | boolean | 選填 | false | Whether to add a watermark. Default `false` |
generation_type | string | 選填 | — | How bare `image_urls` are classified: |
image_urls | string[] | 選填 | — | Image URL array. Role assignment follows mutual exclusion rules. |
image_with_roles | object[] | 選填 | — | Images with explicit roles. Each item: |
video_urls | string[] | 選填 | — | Reference videos, up to **5** clips; each 1–15s, **total ≤ 15s** |
audio_urls | string[] | 選填 | — | Reference audio, up to **5** clips; each 1–15s, **total ≤ 15s** |
audio_url | string | 選填 | — | Single reference audio (single-value form of `audio_urls`) |
file_url | string | 選填 | — | Reference document URL, at most **1**. **Cannot be combined with `link_url`.** |
link_url | string | 選填 | — | Public web page URL, at most **1**. Login-free pages only. **Cannot be combined with `file_url`.** |
使用 wan3.0-video-prime 可以打造什麼
文字轉影片創作工具
打造能將文字場景描述轉為影片片段的介面,並提供解析度、片長和長寬比選項。
影格引導的影片工作流程
讓使用者提供開場圖片,或同時提供開場與結尾圖片,透過明確指定影格角色來引導影片生成。
多模態創作工作空間
在影片創作工作流程中,將參照圖片、影片片段和音訊與提示詞結合使用。
文件轉影片工作流程
打造可使用參照文件或免登入的公開網頁來生成影片的工具,並可選擇加入提示詞描述預期成果。
提升結果品質的技巧
- 01
明確設定解析度
未指定解析度時會使用 1080P,每秒 $0.2263。若任務適合較低解析度的輸出,可選擇 480P(每秒 $0.05657)或 720P(每秒 $0.1131)。
- 02
預留參照影片片長
參照影片總片長加上輸出片長不得超過 30 秒。設定固定輸出片長時,請將參照影片素材的片長一併納入考量。
- 03
謹慎選擇提示詞改寫
提示詞改寫預設為啟用,可改善較短的提示詞,但可能增加延遲。使用文件或網頁作為參照時,必須啟用提示詞改寫,或省略此設定。
- 04
明確指定影格角色
使用 image_with_roles 指定 first_frame、last_frame 或 reference_image 輸入。對於媒體引導任務,建議先使用自動調整尺寸;若同時提供 size 和 aspect_ratio,兩者的值必須相符。
限制與須知
參照影片和音訊各最多可提供 5 個片段,每個片段長度為 1–15 秒,且每種媒體的總長度不得超過 15 秒。
每個請求最多可包含一份參照文件或一個公開網頁,兩者不可同時使用。
超過 20,000 個字元的提示詞會自動截斷,而不會遭到拒絕。
wan3.0-video-prime API 常見問題
在 APISea 上使用 wan3.0-video-prime 的費用是多少?
APISea 的價格為 480P 每秒 $0.05657、720P 每秒 $0.1131、Default 或 1080P 每秒 $0.2263。預設設定的價格比服務提供者的牌價低約 9%,且僅對成功的請求收費。
如何呼叫 wan3.0-video-prime?
使用 APISea 金鑰進行 Bearer Token 驗證,向 https://api.apisea.ai/v1/videos/generations 傳送 POST 請求。將 model 欄位設為 wan3.0-video-prime,並提供提示詞或支援的參照輸入。
支援哪些輸出設定?
您可以選擇 480P、720P 或 1080P,設定 2–30 秒的固定片長或由模型決定片長,並選擇自動調整或支援的指定長寬比。音訊、seed、浮水印和提示詞改寫也都可以設定。
參照影片有哪些限制?
最多可提供 5 段參考影片片段,每段長度為 1–15 秒,總長度不得超過 15 秒。輸入影片總長度加上輸出影片長度不得超過 30 秒,即使由模型自行選擇輸出長度也一樣。
我可以將生成的影片用於商業用途嗎?
商業用途須遵守服務提供者的條款。將生成的影片用於商業產品或行銷活動前,請先確認適用條款。
wan3.0-video-prime 與 wan3.0-video 有何差異?
文件指出,wan3.0-video-prime 和 wan3.0-video 接受完全相同的請求參數,但未說明兩者在品質、速度或功能上的差異。