request_id(即创建任务返回的 request_id)查询任务状态。未完成时通常返回 HTTP 202 与 IN_QUEUE 或 IN_PROGRESS;已完成(成功或失败)返回 HTTP 200,status 为 COMPLETED,失败时在 detail 中给出错误信息,成功时可在 result 中看到视频信息。curl --location 'https://api.qnaigc.com/queue/bytedance/seedance-2.0/fast/requests//status' \
--header 'Authorization: Bearer <token>'{
"status": "IN_QUEUE",
"request_id": "string",
"response_url": "http://example.com",
"status_url": "http://example.com",
"queue_position": 0,
"logs": [
{
"message": "string",
"level": "string",
"source": "string",
"timestamp": "2019-08-24T14:15:22.123Z"
}
],
"metrics": {
"inference_time": 0
},
"detail": null,
"result": {
"video": {
"url": "http://example.com",
"content_type": "video/mp4",
"file_name": "string",
"file_size": 0
}
}
}