Model detail
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 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
Model specs
- Model ID
-
gemini-3.1-flash-image
- Context length
- 131.072K
- Max output
- 32.768K
- I/O modalities
- Released
- 2026-06
02
API endpoints
One MixRoute gateway, OpenAI-compatible
-
Gemini
/v1beta/models/{model}:generateContentPOST -
OpenAI-compatible
/v1/chat/completionsPOST
03
Pricing
Flat rate, unit: /1M Tokens
Input
$0.5000 /1M Tokens
Completion
$3.0000 /1M Tokens
Image completion
$10.0000 /1M Tokens
05
Selection summary
Quickly judge whether it fits your workload
What is this model good for?
Image generation for high-efficiency image generation
Gemini 3.1 Flash image — Nano Banana 2 — high-quality image generation and conversational editing at mainstream price, optimized for speed.
What should you check before using it?
131,072 context, 32,768 output
Image Generation. Knowledge cutoff: 2025-01. Released 2026-02.
Why use it through MixRoute?
Available through MixRoute's OpenAI-compatible endpoint
Use the Google Gen AI SDK or call through MixRoute. Set the model parameter to "gemini-3.1-flash-image".
07
Capabilities & compatibility
Unconfirmed capabilities stay "Unknown," no guesses
Streaming
Gemini 3.1 Flash image supports streamed responses.
stream: true streams tokens incrementally, so chat UIs render as they arrive.
Vision input
Gemini 3.1 Flash image can process image inputs alongside text.
image_url content part alongside text messages.
OpenAI SDK
Call Gemini 3.1 Flash image through MixRoute's OpenAI-compatible endpoint.
base_url to https://api.mixroute.ai/v1; everything else follows the OpenAI style.
08
Token cost estimator
Live estimate from this page's pricing, not an actual bill
This model has no cache-read price; caching is not counted
09
FAQ
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.
One endpoint, a testable decision
Test this model and alternate routes with the same request format
Start from a real workload, then let quality, total cost, and failure conditions decide whether to send production traffic.