Check a generation task
get_taskCheck the status of an image, video, or music task by ID, waiting up to the specified seconds for queued or in-progress work to finish and return result URLs or a failure reason.
Instructions
Read the state of an image, video or music task by its id (img_…, vid_… or msc_…): queued, in_progress, completed with the result URLs, or failed with the reason. Waits up to wait_seconds for it to finish. Free to call. A task belongs to the account that started it and can be read for at least 30 days.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "get_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The task id a generate tool returned. | |
| wait_seconds | No | How long to wait for the result before returning, in seconds (0 to 45, default 20). An unfinished task is returned with its id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Task id: img_… (image), vid_… (video) or msc_… (music). | |
| kind | Yes | ||
| urls | Yes | Result files once completed: the images, the video, or the audio of each track. | |
| error | Yes | ||
| model | Yes | ||
| status | Yes | queued, in_progress, completed or failed. Anything else is a task that is not finished. | |
| tracks | No | Music only: one entry for each track. | |
| stalled | Yes | true when the task has gone longer than expected without finishing. | |
| archived | Yes | true: every URL in `urls` is Kunavo's own copy and does not expire. false: a file could not be archived and its URL is the model provider's temporary one. null until completed. | |
| next_step | Yes | What to do with this result. | |
| created_at | Yes | ||
| resolution | No | Video only. | |
| completed_at | Yes | ||
| pollable_until | Yes | The task can be read with get_task at least until then. | |
| idempotency_key | No | The key this task was started under, in the answer of the tool that started it (get_task does not know it). Calling that tool again with it and the same arguments returns this task. | |
| duration_seconds | No | Video only. |