請求參數
| 參數 | 必填 | 說明 |
|---|---|---|
seed | 否 | 用同一個數字,結果就能重現。 ≥ 0 · ≤ 2147483647 |
prompt | 是 | Describe the intended subject, action, camera, light, sound, and constraints. |
watermark | 否 | Add the model’s visible "AI generated" watermark to the video. 預設值: false |
resolution | 否 | 輸出尺寸。越大越清晰,價格也越高。 480p · 720p · 預設值: 720p |
aspect_ratio | 否 | 畫面形狀:橫式、方形或直式。 16:9 · 9:16 · 4:3 · 3:4 · 1:1 · 21:9 · adaptive · 預設值: adaptive |
bitrate_mode | 否 | Encoding bitrate of the delivered file: standard, or high for crisper detail and a larger file. standard · high · 預設值: standard |
generate_audio | 否 | 加上和畫面相配的聲音:人聲、環境音和音效。 預設值: true |
duration_seconds | 否 | 影片長度,按秒計費。 -1–15 · 預設值: 5 |
enable_web_search | 否 | 先上網查日期、地點和最新資訊。 預設值: false |
return_last_frame | 否 | Also return the clip’s final frame as a separate image. 預設值: false |
價格
價格以點數計,和網站上用的是同一種點數(1 點 = $0.01)。任務受理時先凍結點數,完成後依實際費用結算;失敗的任務會退還。
| 選項 | 點數 /秒 | ≈ 美元 |
|---|---|---|
| resolution 480p | 3.69 | US$0.037 |
| resolution 720p | 7.94 | US$0.079 |
每個任務會無條件進位到整數點數,所以最低檔跑一次是 19 點數/ 5 秒影片(US$0.19)。
想在執行前知道確切金額,把相同的請求內容送到 POST /jobs/quote 即可。
API 快速上手
三步驟呼叫 Seedance 2.0 Mini API
- 建立 API 金鑰. 登入 PopNow,在 API 主控台建立金鑰。金鑰以 sk-popnow- 開頭,和網站共用同一份點數。
- 送出請求. 對 POST /jobs/createTask 送出請求,model 填 bytedance/seedance-2.0-mini/text-to-video,input 依照參數表填寫。回應會立即傳回任務 ID。
- 取得結果. 用任務 ID 輪詢 GET /jobs/recordInfo,或帶上 callBackUrl,結果會推送到該網址。任務成功後下載輸出連結。
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"model": "bytedance/seedance-2.0-mini/text-to-video",
"input": {
"prompt": "A slow aerial shot drifting over a misty pine forest at sunrise",
"aspect_ratio": "adaptive",
"resolution": "720p",
"duration_seconds": 5,
"generate_audio": true
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"請把提示詞和連結換成你自己的。API 頁籤裡有回應、輪詢和回呼的參考。
Seedance 2.0 Mini API 常見問題
Seedance 2.0 Mini API 怎麼收費?
Seedance 2.0 Mini:最便宜的任務是參考生影片,9 點數(US$0.09)/ 5 秒影片起。生成影片各選項價格:480p 3.69 點數/秒、720p 7.94 點數/秒。點數和網站通用(1 點數 = $0.01),新帳號贈送 30 點數,失敗的任務會退還。
Seedance 2.0 Mini 在 API 裡的模型名稱是什麼?
在 POST /jobs/createTask 的 model 欄位填 生成影片用 bytedance/seedance-2.0-mini/text-to-video;圖生影片用 bytedance/seedance-2.0-mini/image-to-video;參考生影片用 bytedance/seedance-2.0-mini/reference-to-video;影片延伸用 bytedance/seedance-2.0-mini/video-extend。
Seedance 2.0 Mini API 有哪些限制?
影片長度:4–15 s;解析度:480p · 720p;畫面比例:16:9 · 9:16 · 4:3 · 3:4 · 1:1 · 21:9 · adaptive。超出這些限制的請求會在扣款之前被拒絕。
不寫程式能試 Seedance 2.0 Mini 嗎?
可以。Playground 用你的 PopNow 點數執行 Seedance 2.0 Mini,不需要 API 金鑰,每次執行都會附上對應的程式碼。
所有 Seedance 模型
Seedance 2.0 Fast 設定相同,針對速度調校;完整版 Seedance 2.0 最高到 4K,適合交付。

