Sử dụng endpoint bytedance-video để tạo và quản lý các tác vụ tạo video qua POST /volc/v3/contents/generations/tasks, với các tham số linh hoạt.
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 làm ví dụ production hiện tại cho route này.content hợp nhất.Xây dựng mảng content
Gửi tác vụ
callback_url khi tạo tác vụ.Thăm dò cho đến khi có đầu ra
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"
}