Task Status
Every generation task runs asynchronously. Poll the unified status endpoint with the task_id returned at creation to track progress and retrieve the final result URLs.
Query task status
GET
/v1/tasks/{task_id}
One endpoint covers both video and image tasks: the server routes the lookup by the task type recorded when the task was created, and the response carries type (video / image) so you can tell them apart. Tasks are scoped to the account that created them; querying another account's task returns a record-not-exist error.
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
| task_id | string | Required | The unique task ID returned by POST /v1/videos or POST /v1/images: tsk_ followed by 32 random hex characters (e.g. tsk_9f2c8a17b34d6e05a1c2d3e4f5067890). It cannot be forged or guessed. |
Video task response
RESPONSE
{
"code": 200,
"msg": "success",
"data": {
"task_id": "tsk_9f2c8a17b34d6e05a1c2d3e4f5067890",
"type": "video",
"status": 1,
"status_text": "success",
"video_url": "https://.../output.mp4",
"error": "",
"create_at": 1753248000
}
}
Image task response
RESPONSE
{
"code": 200,
"msg": "success",
"data": {
"task_id": "tsk_3b7e0c9d2f1a48e6b5c0d7f8a9e1b2c3",
"type": "image",
"status": 1,
"status_text": "success",
"image_url": "https://.../output.png",
"image_urls": ["https://.../output.png", "https://.../output-2.png"],
"cost_credit": 10,
"error": "",
"create_at": 1753248000
}
}
Response fields
| Field | Type | Description |
|---|---|---|
| task_id | string | Unique task ID (tsk_ + 32 random hex characters), same value you queried with. |
| type | string | Task type: video or image. |
| status | int | Numeric state: 0/99 generating, 1 success, 2 failed, 3/199 queued. |
| status_text | string | Human-readable state: processing / success / failed / queued. |
| video_url | string | Result URL, present only for video tasks when status_text = success. |
| image_url | string | Primary result image URL (image tasks only). |
| image_urls | string[] | All result image URLs when multiple images were requested (image tasks only). |
| cost_credit | int | Credits consumed by this task (image tasks only). |
| error | string | Failure reason, present when the task failed. |
| create_at | int | Creation time (Unix seconds). |
Polling recommendations
- Poll every 3–5 seconds for images and 5–10 seconds for video.
- Stop polling when
status_textreachessuccessorfailed. - Apply exponential backoff (cap at 30 s) if you poll many tasks concurrently.
- Prefer Webhooks over polling for production workloads once available.