Skip to main content

Path Parameters

string
required
The task ID returned from the initial image generation request.
If the create response included poll_url, prefer calling that exact URL for polling. Some image tasks may surface a poll_url under /v1/tasks/{id} instead of the image-specific status path.You can also poll public image task IDs such as ldtask_... at /v1/images/{id}. This compatibility alias uses the same authorization, ownership checks, billing headers, terminal snapshots, and response shape as /v1/images/generations/{id}.If the task no longer exists or is no longer available in the public task record, AI Sonar returns async_task_not_found with the message Task not found or no longer available.

Response

integer
Unix timestamp of creation.
string
The task identifier.
string
Task status: pending, processing, completed, or failed.
array
Array of generated images (populated when status is completed).Each object contains:
  • url (string): URL of the generated image
  • revised_prompt (string): The prompt used for generation
string
Error message (only present when status is failed).

Polling Best Practices

Recommended polling interval: 3-5 seconds. Most image generation tasks complete within 30-120 seconds depending on the model and routed provider path.