Nano Banana 2.1 APINew

$30.00/1M tokens

An update to Nano Banana 2 for image generation and conversational editing, with better visual quality, text rendering and multi-turn consistency at 1K, 2K and 4K.

1K, 2K, 4KUp to 10 per Playground run

Call Nano Banana 2.1

The request below mirrors the Playground tab. Change a setting there and this code follows. You need a key first: create an API key.

curl -X POST https://api.letsfliq.com/v1/images/generations \
  -H "Authorization: Bearer $FLIQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-nano-banana-2.1",
    "prompt": "A hand-painted shop sign reading OPEN above a bakery door, morning sun, flour on the step",
    "aspect_ratio": "1:1",
    "resolution": "1K",
    "n": 1
  }'

Parameters

modelstringDefault gemini-nano-banana-2.1
Model ID, same as the official one
promptstring
What to generate.
aspect_ratiostringDefault 1:1
1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9
resolutionstringDefault 1K
1K, 2K, 4K
nintegerDefault 1
1 to 10 images

Getting the result

  • POST /v1/images/generations answers once the images are made: each image's link is in data[].url.
  • Links last 7 days. Save the images to your own storage.

Pricing

ModelSettingPriceBilled forDiscount
Nano Banana 2.1New1K$30.00/1M tokensOutput image tokens1,120 tokens per imageOutput image tokens1,120 tokens per image
Nano Banana 2.12K$30.00/1M tokensOutput image tokens1,680 tokens per imageOutput image tokens1,680 tokens per image
Nano Banana 2.14K$30.00/1M tokensOutput image tokens3,780 tokens per imageOutput image tokens3,780 tokens per image
Nano Banana 2.1Any$1.50/1M tokensInput text tokensInput text tokens
Nano Banana 2.1Any$1.50/1M tokensInput image tokensInput image tokens
Nano Banana 2.1Any$7.50/1M tokensOutput text tokensOutput text tokens
Nano Banana 2.1Any$7.50/1M tokensReasoning tokensReasoning tokens