Query task execution status and retrieve generation results
| Parameter | Type | Required | Description |
|---|---|---|---|
task_id | string | Yes | Unique task identifier returned from the submit endpoint |
| Field | Type | Description |
|---|---|---|
code | integer | HTTP status code (200 for success) |
data.task_id | string | Unique task identifier |
data.status | string | Task status: not_started, running, finished, failed |
data.files | array | Generated media files (when status is finished) |
data.files[].file_url | string | Direct URL to generated file |
data.files[].file_type | string | Type of media file: image or video |
data.created_time | string | ISO 8601 timestamp of task creation |
data.progress | integer | Completion percentage (0-100) |
data.error_message | string | Error description (when status is failed) |
| Status | Description |
|---|---|
not_started | Task is queued, waiting to be processed |
running | Task is currently being generated |
finished | Task completed successfully, results available in files |
failed | Task failed, error details in error_message |
| Code | Description | Action |
|---|---|---|
| 401 | Unauthorized | Check your API key |
| 403 | Forbidden | Task belongs to another user |
| 404 | Not Found | Task ID does not exist |
| 429 | Too Many Requests | Reduce polling frequency, implement backoff |
| 500 | Server Error | Retry with exponential backoff |
| 502 | Bad Gateway | Service temporarily unavailable, retry |
finished. Failed tasks do not consume credits.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique task identifier