Nano Banana 2 Lite API
$30.00/1M tokens
Made for speed and scale where cost comes first. Works best from a prompt or a single reference image, in one turn.
Call Nano Banana 2 Lite
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-lite-image", "prompt": "A single yellow umbrella in a crowd of black umbrellas, seen from above on a rainy street", "aspect_ratio": "1:1", "resolution": "1K", "n": 1 }'
Parameters
modelstringDefaultgemini-3.1-flash-lite-image- Model ID, same as the official one
promptstring- What to generate.
aspect_ratiostringDefault1:1- 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
resolutionstringDefault1K- 1K
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 2 Lite1K$30.00/1M tokensOutput image tokens1,120 tokens per imageOutput image tokens1,120 tokens per image
Nano Banana 2 LiteAny$0.25/1M tokensInput text tokensInput text tokens
Nano Banana 2 LiteAny$0.25/1M tokensInput image tokensInput image tokens
Nano Banana 2 LiteAny$1.50/1M tokensOutput text tokensOutput text tokens
Nano Banana 2 LiteAny$1.50/1M tokensReasoning tokensReasoning tokens