Skip to main content
The current public nano-banana model returns async tasks. The API creates the task immediately, workers process it in the background, and you read the result later.

Lifecycle

Task statuses:

Create a Task

Response:

Poll a Task

Completed image task:

List Tasks

Pagination fields are returned under data.pagination.

Webhooks

Pass webhook_url when creating a task:
EggAPI posts JSON to your URL after completion or failure. It sends these headers: Completed payload:
Failed payload:
Webhook delivery uses a 30 second HTTP timeout and retries up to 5 attempts with exponential backoff.

Polling Helper