
字節跳動影片
Seedance 2.0
Seedance 2.0 是 字節跳動 推出的影片生成模型。以非同步任務執行:提交後輪詢狀態,完成時即可取得可直接播放的影片網址。
價格
輸入$7.29每 1M tokens
輸出$7.29每 1M tokens
價格以 USD 計,依實際用量從餘額扣除。儲值加贈另計。
$100+ · +3%$200+ · +5%$500+ · +8%$1000+ · +10%
API
- Base URL
- https://aitree.ai/v1
- 身分驗證
- 請求標頭 Authorization: Bearer <你的 API 金鑰>
# 1. submit
curl https://aitree.ai/v1/video/generations \
-H "Authorization: Bearer $AITREE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "doubao-seedance-2-0-260128", "prompt": "drone shot through a forest of light", "seconds": "5" }'
# 2. poll until status is "succeeded"
curl https://aitree.ai/v1/video/generations/$TASK_ID \
-H "Authorization: Bearer $AITREE_API_KEY"參數
| 參數 | 型別 | 說明 |
|---|---|---|
| model | string | 模型 ID,填入 doubao-seedance-2-0-260128 |
| prompt | string | 描述畫面或鏡頭的提示詞 |
| seconds | integer | 影片長度(秒) |
| size | string | 輸出尺寸,例如 1024x1024 |
| images | string[] | 選填的首幀圖片網址(圖片生影片) |