google logo
google

Google: Nano Banana 2 (Gemini 3.1 Flash Image)

Source description (English)

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...

Overview

Model specifications

Context
131,072 tokens
Maximum output
32,768 tokens
Architecture
text+image->text+image
Tokenizer
Gemini
Knowledge cutoff
Not provided
Moderated
No
OPENROUTER

Complete pricing

Synchronized OpenRouter rates. Token prices are shown per one million tokens.

Input
$0.5
per 1M tokens
Output
$3
per 1M tokens
Image output
$60
per 1M tokens
Web search
$14
per 1,000 calls
API

Model configuration

Reasoning

Reasoning required
No
Default parameters
minimal
Capabilities
high, minimal
API

Quick start

Set OPENROUTER_API_KEY locally. Python requires requests; JavaScript runs in Node.js. Keep the key on the server.

API documentation

curl --fail-with-body https://openrouter.ai/api/v1/images \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"google/gemini-3.1-flash-image","prompt":"A sunlit mountain landscape"}'
Capabilities

InputOutput

Input
imagetext
Output
imagetext
Reasoning

Yes · high · minimal

API

Supported API parameters

include_reasoningmax_tokensreasoningreasoning_effortresponse_formatseedstructured_outputstemperaturetop_p
Available providers

2 providers

Checked: September 7, 2026

Live providers on OpenRouter

Provider availability, latency, throughput and routing can change continuously. Open the source page for current operational data.

OpenRouter

Google AI Studio

Not provided
Context
66K
Maximum output
59K

Google

Not provided
Context
131K
Maximum output
33K
google

4 models

All models