Gemini 3.1 Flash Image

google/gemini-3.1-flash-image

Sign up to try it

Overview

Images

Google's Nano Banana 2, tuned for speed and high-volume use, with outputs from 0.5K to 4K and better multilingual text rendering.

Made by Google · released Jun 2026

Input

Text

Output

Images
Context
32.000
Input, maximum
32.000
  • Reasoning Not supported
  • Automatic fallback routes Not supported

Routes and pricing

Providers are tried in the order listed below. We try these providers in order. If one fails, we move on to the next, and you pay the rate of the one that answers.

Google

primary

Per image, by option

0.5K
Rp829,17
1K
Rp1.243
2K
Rp1.865
4K
Rp2.797

What one image costs at each size and quality. Your prompt is charged separately.

Token rates

Input
Rp9.250per million tokens$0.5
Output
Rp55.500per million tokens$3
Image output
Rp1.110.000per million tokens$60

Per-part units

Max tokens per output image
2.520 Gemini API pricing, 2026-09-07
Max images per request
1

Today's reference rate: Rp18.500/USD

Prices exclude the 5,5% service fee

Data and privacy

Google Gemini API Additional Terms

Used to train models
No Under the Gemini API terms for paid use.
Retention
Logged for a limited period, only to detect abuse and meet legal duties.
Processing location
Any country where Google has facilities.
At indoRouter
We don't store your prompts or responses. Files you upload, batches, and responses you send with store: true are kept encrypted for up to 30 days.

Code samples

Use this model ID with any OpenAI SDK. The base URL is the same for every model.

curl https://api.indorouter.ai/v1/images/generations \
  -H "authorization: Bearer $INDOROUTER_API_KEY" \
  -H "content-type: application/json" \
  -d '{"model": "google/gemini-3.1-flash-image", "prompt": "kucing di atas becak"}'