202 Accepted with a job_id — poll GET /jobs/{job_id} until
the job is done or failed.
NanoBanana Pro supports selectable resolution (
1K, 2K, 4K) and the
full aspect-ratio set, including auto. It uses the unprefixed
endpoint path.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. See Aspect ratios.
auto infers the ratio from
the first input image.1–14 image URLs. Each must start with
http:// or https://.1K, 2K, or 4K. See Resolutions.Webhook URL called once the job reaches a terminal state. Overrides the account webhook for this
request. See Webhooks.
Input image limits — 1–14 images per request, up to 40 MB total across all input images.
Response
Returns202 Accepted.
UUID of the created job.
Always
queued on creation.Relative path to poll for status and result.
A
422 is returned when an input URL can’t be fetched or the inputs exceed the size limit. See
Errors.