Utilisez l’endpoint bytedance-video pour créer et gérer des tâches de génération vidéo via POST /volc/v3/contents/generations/tasks, avec des paramètres flexibles.
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 comme exemple de production actuel pour cette route.content unifié.Construire le tableau content
Soumettre la tâche
callback_url lors de la création de la tâche.Interroger jusqu’à l’arrivée de la sortie
content.video_url soit présent.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"
}