Nano Banana 2.1

Google's updated image generation and editing model: 1K, 2K and 4K output, flexible aspect ratios, and up to ten reference images. Use it for product visuals, text in images and reference-based edits.

Cost

from 2 tokens

ImageProvider: Google

Try Nano Banana 2.1 in Givon AI

Open a working project for regular creation, or use Playground to inspect the model parameters.

Use through API

Request fields, constraints, and ready-to-use examples for developers. The user workflow starts above.

Run generation
IDEMPOTENCY_KEY="${IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.givon.ai/api/v1/generations \
  -H "Authorization: Bearer $GIVON_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"image","model":"nano-banana-2.1","input":{"prompt":"studio portrait of a red corgi, soft light","aspectRatio":"9:16","imageSize":"1k","sourceImage":"asset://asset_...","referenceAssetUris":["asset://asset_..."]}}'

Input fields

* required
prompt*prompt

Image description.

Type
string
Default
—
Allowed
up to 50000 chars
aspectRatioaspectRatio
Type
string
Default
9:16
Allowed
auto, 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16, 4:1, 1:4, 8:1, 1:8
imageSizeimageSize
Type
string
Default
1k
Allowed
1k, 2k, 4k
Source imagesourceImage

Asset used as the source image for image editing.

Type
string
Default
—
Allowed
image · asset, https, data
Reference imagesreferenceAssetUris

Optional reference images as asset:// URIs, HTTPS URLs, or data URIs. Up to 10 input images in total; with sourceImage, up to 9 additional references.

Type
array
Default
—
Allowed
image · up to 10 · asset, https, data

Cost

from 2 tokens
1K · Createdefault2 tk
2K · Create3 tk
4K · Create4 tk
1K · Edit2 tk
2K · Edit3 tk
4K · Edit4 tk

The variant is selected automatically from request fields, so you do not need to send it.

Capabilities

Modestext_to_imageimage_edit
Asset slotssourceImage:imagereferenceAssetUris:image[]<=10
Get API key

Where to use this model