Query the status and result of an asynchronous image generation task.
Pass Authorization: Bearer <YOUR_API_KEY> in the request header. Go to the API Keys management page to create and manage API Keys.
Unique task ID, returned by the image generation endpoint.
"task_8f3a2c1b9d4e"
Query successful
Unique task ID
"task_8f3a2c1b9d4e"
Task status:
queued — Submitted, waiting in queueprocessing — Model is generatingsucceeded — Generation succeededfailed — Generation failed, see the error fieldqueued, processing, succeeded, failed "succeeded"
The model ID used for this task
"google/nano-banana-2"
Task creation time (ISO 8601)
"2026-03-30T10:00:00Z"
Task completion time (ISO 8601); null while not yet completed
"2026-03-30T10:00:12Z"
Generation result list. Populated when status is succeeded, otherwise null.
Error information. Populated when status is failed, otherwise null.
Unique request ID
"req_abc123"