Query image generation task
API documentation
Image Task Status API
Check asynchronous t2i/i2i generation tasks and retrieve the generated image URLs.
GET
Query image generation task
Documentation Index
Fetch the complete documentation index at: https://docs.siray.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
When you submit an image generation task (text-to-image or image-to-image) you receive atask_id. Use this endpoint to poll the execution lifecycle until the task either completes successfully or fails.
Endpoint
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. |
Response structure
Fields
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 whenstatusisSUCCESS).data.fail_reason: Populated if generation fails.data.submit_time,data.start_time,data.finish_time: Unix timestamps for auditing latency.
Status values
| 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. |
Usage example
OncestatusbecomesSUCCESS, fetch the image(s) via the URLs inoutputs. If the task fails, retry only after resolving the reportedfail_reason.
Authorizations
Bearer authentication using API key
Path Parameters
Identifier returned from the image generation task submission
Response
200 - application/json
Task status and (if available) generated outputs
