TokenRoute
Get started
Back to models

Google: Nano Banana 2 (Gemini 3.1 Flash Image)

google/gemini-3.1-flash-image

Gemini 3.1 Flash Image, 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 advanced...

Pricing

Input$0.3500 /M
Output$2.10 /M
Web search$0.0098 /req

Specs

Context length131.1K tokens
Max output32.8K tokens
Inputimage, text
Outputimage, text

Quickstart

Point the OpenAI SDK at https://tokenroute.app/api/v1 and use a TokenRoute API key.

bash
curl https://tokenroute.app/api/v1/chat/completions \
  -H "Authorization: Bearer $TOKENROUTE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-3.1-flash-image",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Supported parameters

include_reasoning
max_tokens
reasoning
reasoning_effort
response_format
seed
structured_outputs
temperature
top_p