API
Nano Banana Pro
imageNano 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.
Body
application/jsonmodelstringrequirednano-banana-proinput.promptstringrequiredDescribe the image to create, or the changes to make to your reference images. Whitespace is trimmed.
Maximum length: 5,000 characters
input.imagesstring[]optionalOptional reference images. Use publicly accessible HTTPS URLs or data:image/* base64 URIs. Omit for text-to-image.
Maximum items: 14
input.aspect_ratiostringoptionalOutput 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_idstringrequiredstatusstringrequiredAvailable options: waiting, succeed, failed, processing
