202 Accepted with a job_id — poll GET /jobs/{job_id} until the job
is done or failed.
NanoBanana always outputs 1K. The
resolution field is not accepted and supported aspect
ratios are a subset of the full set — see Aspect ratios.Headers
Bearer <YOUR_API_KEY>. See Authentication.Optional. Replaying the same key returns the original
job_id without creating a duplicate job
or charging again.Body
Generation prompt. Minimum length 1. Null bytes are stripped.
Output aspect ratio. NanoBanana supports a subset — see Aspect ratios.
Webhook URL called once the job reaches a terminal state. Overrides the account webhook for this
request. See Webhooks.
Response
Returns202 Accepted.
UUID of the created job.
Always
queued on creation.Relative path to poll for status and result.
See Errors for
401, 402, 403, 422, and 503 responses.