Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview)✓ Catalog verified
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...
Overview
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...
Access: available through the official Google API. Context window: 66K.
Specifications
| API identifier | google/gemini-3.1-flash-image-preview |
| Provider | |
| Model type | Multimodal LLM |
| Context window | 66K catalog |
| Input modalities | image · text |
| Output modalities | image · text |
| Released | Feb 26, 2026 |
| Tokenizer | Gemini |
| Moderated | No |
| Architecture modality | text+image->text+image |
API defaults
{
"top_k": null,
"top_p": null,
"temperature": null,
"presence_penalty": null,
"frequency_penalty": null,
"repetition_penalty": null
}Pricing
Live pricing components for google/gemini-3.1-flash-image-preview as published in the catalog.
| Pricing component | Raw unit price | Normalized | Unit |
|---|---|---|---|
| Prompt tokens | $5e-7 | $0.50 / 1M | Per input token |
| Completion tokens | $0.000003 | $3.00 / 1M | Per output token |
| Request fee | N/A | N/A | Per request |
| Image fee | N/A | N/A | Per image unit |
| Web search fee | $0.014 | $0.014000 | Per search request |
Cost calculator
Estimate monthly spend from your own token volumes.
Estimated Total Cost
$0.85Calculated from current list pricing in the ModelsAtlas catalog.Capabilities
| Capability | Status | What it means |
|---|---|---|
| Visual Understanding | ✓ Supported | Image and document analysis support |
| Audio Processing | Not advertised | Speech and voice aligned flows |
| Tool Calling | Not advertised | Supports tools / function calling |
| Self-Hosting | Not advertised | Deploy outside managed APIs |
Capability signals
Directional signals derived from model metadata and capability tags — not official benchmark submissions.
Quick start
Call Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview) through an OpenAI-compatible client.
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="google/gemini-3.1-flash-image-preview",
messages=[{"role": "user", "content": "Explain quantum physics."}]
)
print(response.choices[0].message.content)Alternatives
Closest models by context window from a different provider.
| Model | Provider | Context | Input /1M | Actions |
|---|---|---|---|---|
| AllenAI: Olmo 3 32B Think | Allenai | 66K | $0.15 | View → |
| AllenAI: Olmo 3 7B Instruct | Allenai | 66K | $0.10 | View → |
Sources & attribution
Pricing and metadata are maintained in the ModelsAtlas catalog.
Frequently asked questions
How much does Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview) cost?
$0.50 per 1M input tokens and $3.00 per 1M output tokens on the official Google API.
What is the context window of Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview)?
Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview) supports up to 66K tokens of context.
Does Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview) support tool / function calling?
Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview) does not advertise first-class tool/function calling. Check vendor docs for the latest capabilities.
How do I access Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview)?
Use the official Google API with the model id `google/gemini-3.1-flash-image-preview`. See the Quick start section above for code examples.