API

Nano Banana Pro

image

Nano Banana Pro API delivers high-quality 2K image generation with support for 4K upscaling, along with stronger prompt understanding, accurate text rendering, refined lighting, and greater control over composition. Integrate the API to bring more precise and production-ready image generation into your applications.

Authorizations

Bearerstringheaderrequired

API key to authorize requests

Body

application/json
modelstringrequired
nano-banana-pro
input.promptstringrequired

Describe the image to create, or the changes to make to your reference images. Whitespace is trimmed.

Maximum length: 5,000 characters

input.imagesstring[]optional

Optional reference images. Use publicly accessible HTTPS URLs or data:image/* base64 URIs. Omit for text-to-image.

Maximum items: 14

input.aspect_ratiostringoptional

Output width-to-height ratio. Auto lets the model choose.

Default: auto

auto1:12:33:23:44:34:55:49:1616:921:91:44:11:88:1

Response

Successful response

task_idstringrequired
statusstringrequired
Available options: waiting, succeed, failed, processing