Check asynchronous t2i/i2i generation tasks and retrieve the generated image URLs.
task_id. Use this endpoint to poll the execution lifecycle until the task either completes successfully or fails.
GET https://api.siray.ai/v1/images/generations/async/{task_id}Authorization: Bearer <SIRAY_API_TOKEN>| Name | Description |
|---|---|
task_id | ID returned in the async submission response. |
code / message: Service-level indicators for the request outcome.data.task_id: Echoes the submitted task identifier.data.status: Current lifecycle state — see the table below.data.progress: Human-readable percentage for UI display.data.outputs: Array of public URLs that host the generated image assets (present when status is SUCCESS).data.fail_reason: Populated if generation fails.data.submit_time, data.start_time, data.finish_time: Unix timestamps for auditing latency.| Status | Meaning |
|---|---|
NOT_START | Task accepted but preprocessing has not started yet. |
SUBMITTED | Request stored and waiting to enter the queue. |
QUEUED | Task is scheduled and waiting for compute resources. |
IN_PROGRESS | Generation is currently running. |
SUCCESS | Outputs are ready; download them via the URLs in outputs. |
FAILURE | Irrecoverable error; inspect fail_reason for remediation steps. |
OncestatusbecomesSUCCESS, fetch the image(s) via the URLs inoutputs. If the task fails, retry only after resolving the reportedfail_reason.
Bearer authentication using API key
Identifier returned from the image generation task submission
Task status and (if available) generated outputs