Image modelsNano Banana
Nano Banana 2.1
API model, parameter, and usage reference for Nano Banana 2.1.
Model ID
nano-banana-2.1
Parameters
| Field | Type | Description |
|---|---|---|
prompt | string | Required image prompt |
input_mode | string | text_to_image or image_edit |
resolution | string | 1K, 2K, or 4K; default 1K |
n | integer | Default 1; only 1 is supported |
aspect_ratio | string | Default 1:1; auto, 1:1, 5:4, 9:16, 21:9, 16:9, 3:2, 4:3, 4:5, 3:4, or 2:3 |
reference_images | string[] | Up to 14 URLs for editing |
Calling the model
Call GET /v1/models first and use the live schema.fields, capabilities, and pricing returned for this model. Parameters, defaults, enums, and regional availability can change.
- Use
POST /v1/generationsfor image or video models. - Use
POST /v1/chat/completionsorPOST /v1/responsesfor text models. - Use
POST /v1/quoteto estimate usage before generation.
Example
{
"model": "nano-banana-2.1",
"prompt": "Describe the desired result clearly",
"resolution": "1K",
"aspect_ratio": "1:1",
"n": 1
}This page documents the model entry point. Always follow the current regional model schema instead of copying fields from another model.

