Nano Banana 2 (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 advanced contextual understanding with fast, cost-efficient inference, making complex image generation and iterative edits significantly more accessible. Aspect ratios can be controlled with the [image_config API Parameter](https://openrouter.ai/docs/features/multimodal/image-generation#image-aspect-ratio-c
Context window
This model accepts 66K tokens in one request (~49K words of text).
What fits in one request
- FitsShort documentAbout 1,500 words of text
- FitsLong documentAbout 37K words of text
- Won't fitSmall codebaseAbout 150K words of text
- Won't fitFull novelAbout 375K words of text
Specifications
Context size, pricing, and release info in one place.
- Context window
- 65,536 tokens (66K)
- Max output tokens
- 65,536 tokens (66K)
- Speed tier
- fast
- Provider
- Release date
- Feb 2026
Capabilities
See which features this model supports, such as vision, tools, and streaming.
- Vision
- Accepts image inputs alongside text
- Supported
- Extended thinking
- Shows its chain-of-thought reasoning
- Supported
- Streaming
- Returns tokens as they are generated
- Supported
- Tool use
- Can call external tools and APIs
- Not supported
- Function calling
- Structured function call interface
- Not supported
- Web search
- Can browse the web during a request
- Not supported
- Batch API
- Process many requests asynchronously
- Not supported
- Prompt caching
- Reuse repeated prompt prefixes cheaply
- Not supported
Best for
Jump to a guide or ranking that matches each workload.
Compare Nano Banana 2 (Gemini 3.1 Flash Image Preview)
Open a side-by-side comparison with one click.
- Nano Banana 2 (Gemini 3.1 Flash Image Preview) vs Gemma 7b It
Nano Banana 2 (Gemini 3.1 Flash Image Preview) has 700% larger context window
- Nano Banana 2 (Gemini 3.1 Flash Image Preview) vs Jp Anthropic Claude Sonnet 4 6
Jp Anthropic Claude Sonnet 4 6 has 1425% larger context window
- Nano Banana 2 (Gemini 3.1 Flash Image Preview) vs Amazon Titan Text Express
Nano Banana 2 (Gemini 3.1 Flash Image Preview) has 56% larger context window
- Nano Banana 2 (Gemini 3.1 Flash Image Preview) vs Amazon Titan Text Premier
Nano Banana 2 (Gemini 3.1 Flash Image Preview) has 56% larger context window
- Nano Banana 2 (Gemini 3.1 Flash Image Preview) vs Amazon Titan Text Lite
Nano Banana 2 (Gemini 3.1 Flash Image Preview) has 56% larger context window
- Nano Banana 2 (Gemini 3.1 Flash Image Preview) vs Codellama 34b Instruct
Nano Banana 2 (Gemini 3.1 Flash Image Preview) has 1500% larger context window
Frequently asked questions
Short answers about context size and how this model behaves.
More from Google
Other models by Google in our catalog.
Powered by Mem0
Use a smaller model.
Get better results.
Mem0 gives your AI long-term memory so you stop re-sending context on every call. That means you can use a smaller, faster, cheaper model — and still get better answers.
Example: a multi-turn chat session
80% less to send — works with any model