使用 bytedance-video 端點透過 POST /volc/v3/contents/generations/tasks 建立與管理影片生成任務,並支援彈性參數。
curl --request POST \
--url https://api.cometapi.com/volc/v3/contents/generations/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "doubao-seedance-1-5-pro-251215",
"content": [
{
"type": "text",
"text": "A paper boat drifts on a quiet lake at sunrise. --duration 5 --ratio 16:9"
}
]
}
'{
"id": "021773297205999example"
}doubao-seedance-1-5-pro-251215 作為目前正式環境範例。content 陣列同時處理純文字與圖片引導請求。輪詢直到輸出完成
content.video_url。Bearer token authentication. Use your CometAPI key.
ByteDance Seedance video model id. Choose a current model from the Models page. A current production example is doubao-seedance-1-5-pro-251215, which supports both text-only and image-guided requests through the same content array.
"doubao-seedance-1-5-pro-251215"
Ordered input items for the task. Put the main text instruction first. Add image items when you need first-frame or last-frame guidance.
Show child attributes
Optional webhook URL for task status notifications.
Task accepted.
Task id for later polling.
curl --request POST \
--url https://api.cometapi.com/volc/v3/contents/generations/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "doubao-seedance-1-5-pro-251215",
"content": [
{
"type": "text",
"text": "A paper boat drifts on a quiet lake at sunrise. --duration 5 --ratio 16:9"
}
]
}
'{
"id": "021773297205999example"
}