Skip to main content
After submitting a Nano Banana image generation task, use this endpoint to check its status and retrieve the generated image URL when complete. Because generation is asynchronous, you’ll need to poll this endpoint periodically until the task reaches a terminal state (completed or failed).

Base URL

Endpoint

Authentication

Include your API key as a Bearer token in the Authorization 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 reaches completed or failed, it will not change again.

Code Example

cURL

Response: Processing

Response: Completed

Response: Failed


Image URLs expire in 24 hours. Once status is completed, download and save the image to your own storage immediately. After expiry, the URL will become inaccessible and the image cannot be recovered.
Polling strategy: Request the status every 2–5 seconds. Stop polling as soon as status is either completed or failed — further requests after a terminal state will return the same response without change.