Nano Banana
NanoBanana native format
Call NanoBanana via the Gemini native protocol with multi-reference and high-resolution support
POST
Models you can use
| Model ID | Notes |
|---|---|
nanobanana | Standard — balanced speed and quality |
nanobanana_pro | High-quality — ideal for product images and precise style unification |
nanobanana_2 | 2nd generation — budget tier only supports the OpenAI chat format (see separate endpoint) |
Multiple reference images
Append multipleinline_data objects consecutively inside
contents[].parts. Each object holds the Base64 data of one reference
image, enabling multi-reference input.
Resolution configuration
InsidegenerationConfig.imageConfig:
aspectRatio:1:1,3:4,4:3,9:16,16:9imageSize:1K,2K,4K
Thinking content
SetgenerationConfig.thinkingConfig.includeThoughts: true to
include the model’s reasoning trace in the response.Authorizations
Path Parameters
NanoBanana model ID, e.g. nanobanana_pro.
Accepted values: nanobanana, nanobanana_pro.
Body
application/json
NanoBanana native-format image generation/editing request body.