Получение задачи генерации видео Bytedance по id через CometAPI — проверяйте статус, прогресс и сведения о результате для /volc/v3/contents/generations/tasks.
curl --request GET \
--url https://api.cometapi.com/volc/v3/contents/generations/tasks/{id} \
--header 'Authorization: Bearer <token>'{
"id": "021773297205999example",
"model": "doubao-seedance-1-5-pro-251215",
"status": "succeeded",
"content": {
"video_url": "https://example.com/generated.mp4"
},
"created_at": 1773297205,
"updated_at": 1773297260,
"resolution": "720p",
"duration": 5,
"ratio": "16:9",
"framespersecond": 24
}status для текущего состояния у провайдераcontent.video_url, когда рендеринг завершёнresolution, duration, ratio и framespersecond, если вашему приложению нужны метаданные результатаСначала создайте задачу
Выполняйте опрос по id задачи
Bearer token authentication. Use your CometAPI key.
Task id returned by the create endpoint.
Current task state.
curl --request GET \
--url https://api.cometapi.com/volc/v3/contents/generations/tasks/{id} \
--header 'Authorization: Bearer <token>'{
"id": "021773297205999example",
"model": "doubao-seedance-1-5-pro-251215",
"status": "succeeded",
"content": {
"video_url": "https://example.com/generated.mp4"
},
"created_at": 1773297205,
"updated_at": 1773297260,
"resolution": "720p",
"duration": 5,
"ratio": "16:9",
"framespersecond": 24
}