Image models
Nano Banana 2.1
On this page
Google's Nano Banana 2.1 — the October 2026 update to Nano Banana 2, for text-to-image and image editing with up to six reference images, at 1K, 2K and 4K.
| modelId | nano-banana-2-1 |
| Modality | image |
| Pricing | See this model on the Pricing page for the current per-call price (with your markup). |
Operations
| Operation | modelId | Endpoint | Required input |
|---|---|---|---|
| Default | nano-banana-2-1 | POST /api/v1/generate | prompt, aspect_ratio |
| Poll task | — | GET /api/v1/task/{id}?model=nano-banana-2-1 | — |
Input parameters
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | string | Yes | Text value Max 20000 characters. |
| image_input | string[] | No | Image URL |
| aspect_ratio | string | Yes | Options: 1:1 | 3:2 | 2:3 | 4:3 | 3:4 | 16:9 | 9:16 | 5:4 | 4:5 | 21:9 | 1:4 | 4:1 | 1:8 | 8:1 (default: 1:1) |
| resolution | string | No | Options: 1K | 2K | 4K (default: 1K) |
Example request
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"nano-banana-2-1","input":{"prompt":"A photorealistic portrait of a red fox in a snowy forest, soft morning light, shallow depth of field, 85mm.","image_input":["https://you.bot/examples/grok-imagine-text-to-image.jpg"],"aspect_ratio":"1:1","resolution":"1K"}}'