gemini-3.1-flash-image-preview· Released Feb 26, 2026
google/gemini-3.1-flash-image-preview
Gemini 3.1 Flash Image Preview, a.k.a. "Nano Banana 2," is Google’s latest state of the art image generation and editing model, delivering Pro-level visual quality at Flash speed. It combines...
Input
From$0.44/M
Output
From$2.64/M
Context
Up to 131K
Max output
Up to 66K
Modalities
ImageTextImageTextInput and output show the lowest price across upstreams, for reference. Your actual prices are listed per upstream below.
Upstreams & pricing
| Upstream | Context | Max output | Input $/1M | Output $/1M |
|---|---|---|---|---|
Zenlayer AI Gateway-openai_compat (Global)From price | 131K | 66K | $0.44 | $2.64 |
Routed in real time — you pay the listed price of whichever upstream serves your call.
How to call
curlrequest.sh
curl https://api.tkex.ai/v1/chat/completions \
-H "Authorization: Bearer $TX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-3.1-flash-image-preview",
"messages": [
{"role": "user", "content": "Say hello in five words."}
]
}'