Skip to main content
GET
Get Task

Authorizations

Authorization
string
header
required

Bearer YOUR_API_KEY. Manage keys in API Keys.

Path Parameters

task_id
string
required

Task ID returned by submission.

Example:

"task_8f3a2c1b9d4e"

Response

Query successful

task_id
string

Task ID.

status
enum<string>

succeeded returns outputs. For failed, see error.

Available options:
queued,
processing,
succeeded,
failed
model
string

New tasks echo the submitted model ID or legacy alias.

created_at
string<date-time>

Task creation time (ISO 8601)

completed_at
string<date-time> | null

Completion time; null before completion.

images
object[] | null

Outputs. Empty when unavailable; legacy tasks may return null.

error
object | null

Failure details; null in other states.

request_id
string

Request ID.