Image generation and editing for both classic Nano Banana 2 and the new Nano Banana Pro models
nano-banana-2 models and the new nano-banana-pro models.
nano-banana-2 / nano-banana-2-edit: classic Nano Banana 2 modelsnano-banana-pro / nano-banana-pro-edit: Nano Banana Pro models with output_format, enable_web_search, and size=autooutput_format, enable_web_search, and size=autooutput_format, enable_web_search, and size=autosize supports auto and defaults to autoresolution supports 1K, 2K, 4Koutput_format supports png and jpgenable_web_search supports true / falseAll API endpoints require Bearer Token authentication
Get your API Key:
Visit the API Key Management Page to get your API Key
Add it to the request header:
Authorization: Bearer YOUR_API_KEYNano Banana model identifier
nano-banana-2, nano-banana-2-edit, nano-banana-pro, nano-banana-pro-edit Webhook callback URL for result notifications
"https://your-domain.com/callback"
Input parameters for generation