使用 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"
}