Task Management
Get Task Status
Poll task progress by task_id — shared by image and video tasks.
Authorization
BearerAuth
AuthorizationBearer <token>
使用 Bearer Token 认证。
格式: Authorization: Bearer sk-xxxxxx
In: header
Path Parameters
task_id*string
提交接口返回的任务 ID
Response Body
application/json
application/json
application/json
curl -X GET "https://aigateway.example.com/api/generate/status/task_01HF8Z3KQX2A6Y4N3R8M5W7V9P"{
"code": 200,
"data": {
"task_id": "task_01HF8Z3KQX2A6Y4N3R8M5W7V9P",
"status": "running",
"progress": 42,
"created_time": "2026-06-14T10:30:00",
"error_message": null
}
}{
"code": 0,
"error": {
"message": "string",
"type": "not_found"
}
}{
"code": 404,
"error": {
"message": "task not found",
"type": "not_found"
}
}How is this guide?
Last updated on