Nano Banana
NanoBanana native format
Call NanoBanana via the Gemini native protocol with multi-reference and high-resolution support
POST
Models you can use
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.