Skip to content
youbot
Docs menu

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.

modelIdnano-banana-2-1
Modalityimage
PricingSee this model on the Pricing page for the current per-call price (with your markup).

Operations

OperationmodelIdEndpointRequired input
Defaultnano-banana-2-1POST /api/v1/generateprompt, aspect_ratio
Poll task—GET /api/v1/task/{id}?model=nano-banana-2-1—

Input parameters

FieldTypeRequiredValues / example
promptstringYesText value Max 20000 characters.
image_inputstring[]NoImage URL
aspect_ratiostringYesOptions: 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)
resolutionstringNoOptions: 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"}}'