Get Task Status
Retrieve the current status and result of a generation task.Request
Response
Status Values
| Status | Description | result present? |
|---|---|---|
pending | Queued on ModelHunter.AI side | No |
queued | Sent to provider, waiting | No |
running | Actively generating | No |
succeeded | Complete | Yes |
failed | Error occurred | No (error present) |
cancelled | Cancelled by user | No |
expired | Result URL expired | Re-fetch for new URL |
Result Fields
When status issucceeded, the result field contains an array of output items. Each item has:
| Field | Type | Description |
|---|---|---|
url | string | Signed URL for the output file (valid 15 min) |
duration | number | Video/audio length in seconds (video/audio only) |
format | string | File format (mp4, png, jpg, mp3, etc.) |
size_bytes | number | File size in bytes |
Cancel Task
Cancel a task that is still in progress.Request
Response
409 Conflict if the task has already completed.