Model reference
Nano Banana 2.1
Google's successor to Nano Banana 2 for making and editing images up to 4K, cheaper at every resolution.
| Property | Value |
|---|---|
modelSlug | nano-banana-2-1 |
| Kind | Image |
| Maker | |
Copies per request (variations) | 1 to 5 |
| How the cost is counted | per copy, at a rate that depends on resolution |
| Over MCP | yes, with the generate tool |
Credit amounts are left out because they change. The lowest price is creditCost on GET /v1/models, and POST /v1/jobs answers with the exact creditCost of a request.
input fields
Send the fields below inside the input object. A field you leave out takes its Default. Unknown field names are dropped without an error, so check the spelling if a setting seems to have no effect.
| Field | Type | Required | Default | Rules |
|---|---|---|---|---|
prompt | string | yes | – | Up to 20,000 characters |
reference_images | string[] (image upload ids) | – | – | Reference images. Up to 10 files |
aspect_ratio | string (one of) | – | auto | auto, 1:1, 2:3, 3:2, 1:4, 4:1, 3:4, 4:3, 4:5, 5:4, 1:8, 8:1, 9:16, 16:9, 21:9 |
resolution | string (one of) | – | 1K | 1K, 2K, 4K |
output_format | string (one of) | – | jpeg | png, jpeg |
Rules by setting
This model runs a different version depending on what you send. The rules below are checked before any credits move; a request that breaks one is refused with 400 and a message naming the field.
Every request
reference_images: up to 10 files; at most 30 MB per file.
Example request
{
"modelSlug": "nano-banana-2-1",
"input": {
"prompt": "Product photo of white running shoes on a river stone, soft side light in the morning"
}
}
