completed or failed).
Base URL
Endpoint
Authentication
Include your API key as a Bearer token in theAuthorization header on every request:
Path Parameters
string
required
The task ID returned by the Create Image Task endpoint. Example:
abc123def456.Response Fields
string
The unique task ID for this generation job.
string
The object type. Always
image.generation.integer
Unix timestamp indicating when the task was created.
string
The model name used for this generation task.
string
The current task status.
string
The URL of the generated image. Only present (and non-null) when
status is completed. Image URLs are valid for 24 hours — download and store the image promptly.string
An error message describing what went wrong. Only present when
status is failed.Status Flow
Tasks move through the following states in order. Once a task reachescompleted or failed, it will not change again.
Code Example
cURL