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(opens in new tab)
Modalities
In / Out Price
$0.50 / $3per 1M
Context
66K
Released
Feb 26, 2026
This model is hosted by one provider. OpenRouter forwards every request to it directly — no routing decisions to make.
The average price customers actually pay for this model, next to the prices providers post. Caching and discounts mean the price actually paid is often well below the listed one.
Throughput is how fast the model writes (tokens per second — higher is better). Latency is total round-trip time (lower is better). TTFT is time-to-first-token — how long before you see anything appear (lower is better).
Uptime is the percentage of the past 3 days that at least one provider was responding to requests. Availability is the percentage of time that inference was successfully served. OpenRouter continuously monitors and uses the next-best provider when one returns an error.
Scores on standardized evaluations. Higher percentages are better — and rank percentile shows where this model lands among all models on OpenRouter.
Public apps that send the most traffic to this model. Good signal for what real production workloads look like — and a hint at which use cases this model is best suited for.
Token volume and request traffic to this model over time.
Drop-in code to call this model. OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. The only thing that changes between models is the model slug below.
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.
Nano Banana 2 (Gemini 3.1 Flash Image Preview) costs $0.50/M input tokens and $3.00/M output tokens, with separate rates for Image Output at $60.00/M tokens and Web Search at $14.00/1K calls.
Nano Banana 2 (Gemini 3.1 Flash Image Preview) has a 65,536 token context window. It supports up to 65,536 completion tokens.
The Nano Banana 2 (Gemini 3.1 Flash Image Preview) endpoint shown on this page does not accept tools, so function calling is unavailable there. It also supports structured outputs via a JSON schema in response_format.
Nano Banana 2 (Gemini 3.1 Flash Image Preview) accepts images and text as input and returns images and text. Up to 14 reference images can be attached to one request for image editing.
Gemini 3.7 Flash, Gemini 3.6 Flash, Gemini 3.5 Flash Lite and 25 more are other text models from Google.
Nano Banana 2 (Gemini 3.1 Flash Image Preview) was released on February 26, 2026.
| $60.00 | $0.50 | $3.00 | 7.13s | 190 tps |
Throughput
190tok/s
P50, best across providers
Latency
7.13s
P50, best provider
100.00%
99.32%
When an error occurs in an upstream provider, we can recover by routing to another healthy provider, if your request filters allow it. You can access per-provider uptime data programmatically through the Endpoints API. Learn more about our load balancing and customization options.