Nano Banana 2 API
$60.00/1M tokens
Built for speed, 4K output and consistency across multiple reference images. Also makes small 0.5K images.
Call Nano Banana 2
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-3.1-flash-image", "prompt": "A flat-lay of a traveller'\''s notebook, film camera, compass and a folded map on a wooden table", "aspect_ratio": "1:1", "resolution": "1K", "n": 1 }'
Parameters
modelstringDefaultgemini-3.1-flash-image- Model ID, same as the official one
promptstring- What to generate.
aspect_ratiostringDefault1: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
resolutionstringDefault1K- 0.5K, 1K, 2K, 4K
nintegerDefault1- 1 to 10 images
Getting the result
POST /v1/images/generationsanswers once the images are made: each image's link is indata[].url.- Links last 7 days. Save the images to your own storage.
Pricing
ModelSettingPriceBilled forDiscount
Nano Banana 20.5K$60.00/1M tokensOutput image tokens747 tokens per imageOutput image tokens747 tokens per image
Nano Banana 21K$60.00/1M tokensOutput image tokens1,120 tokens per imageOutput image tokens1,120 tokens per image
Nano Banana 22K$60.00/1M tokensOutput image tokens1,680 tokens per imageOutput image tokens1,680 tokens per image
Nano Banana 24K$60.00/1M tokensOutput image tokens2,520 tokens per imageOutput image tokens2,520 tokens per image
Nano Banana 2Any$0.50/1M tokensInput text tokensInput text tokens
Nano Banana 2Any$0.50/1M tokensInput image tokensInput image tokens
Nano Banana 2Any$3.00/1M tokensOutput text tokensOutput text tokens
Nano Banana 2Any$3.00/1M tokensReasoning tokensReasoning tokens