Skip to content
Not available in this workspace
OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

  • Chat
  • Rankings
  • Benchmarks
  • Apps
  • Discover
  • Models
  • Collections
  • Providers
  • Pricing
  • Enterprise
  • Labs

Company

  • About
  • Blog
  • Careers
    Hiring
  • Privacy
  • Terms of Service
  • Support
  • Works With OR
  • Data

Developer

  • Documentation
  • API Reference
  • Developer Platform
  • Status

Connect

  • Discord
  • GitHub
  • LinkedIn
  • X
  • YouTube
Favicon for google

Google: Nano Banana 2 (Gemini 3.1 Flash Image)

google/gemini-3.1-flash-image

Compare

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(opens in new tab)

Modalities

In / Out Price

$0.50 / $3per 1M

Context

131K

Released

Jun 18, 2026

Compare
PlaygroundProvidersPricingPerformanceUptimeAppsActivityFAQ

Playground

Providers

Different companies host the same model. OpenRouter routes your request to one of them based on the routing mode you pick — Balanced (price + speed), Nitro (fastest), or Exacto (highest tool-calling accuracy).

Pricing

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.

Performance

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

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.

Apps

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.

Activity

Token volume and request traffic to this model over time.

Quick Start

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.

About Google: Nano Banana 2 (Gemini 3.1 Flash Image)

OpenRouter makes Google: Nano Banana 2 (Gemini 3.1 Flash Image) available through a unified, OpenAI-compatible API using the model ID google/gemini-3.1-flash-image. Requests can be routed across 2 providers, including Google Vertex and Google AI Studio, with automatic failover when an endpoint is unavailable.

Google: Nano Banana 2 (Gemini 3.1 Flash Image) accepts images and text and returns images and text. It has a 131,072-token context window and a maximum output of 32,768 tokens.

On OpenRouter, Google: Nano Banana 2 (Gemini 3.1 Flash Image) 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. It was released on June 18, 2026.

More models from Google

  • Gemini 3.7 Flash
  • Gemini 3.6 Flash
  • Gemini 3.5 Flash Lite

Frequently asked questions

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.

Nano Banana 2 (Gemini 3.1 Flash Image) 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) has a 131,072 token context window. It supports up to 32,768 completion tokens.

The Nano Banana 2 (Gemini 3.1 Flash Image) endpoint shown on this page does not accept tools, so function calling is unavailable there. It supports response_format for JSON output, without JSON-schema enforcement.

Nano Banana 2 (Gemini 3.1 Flash Image) 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.

Nano Banana 2 (Gemini 3.1 Flash Image) is served by 2 providers on OpenRouter: Google Vertex and Google AI Studio. Requests are routed to the best available provider, with automatic failover to the others, and you can pin or exclude providers with provider routing.

Nano Banana 2 (Gemini 3.1 Flash Image) was released on June 18, 2026.

$60.00$0.50$3.0011.76s91 tps
99.33%
$60.00$0.50$3.007.32s186 tps
98.82%

Throughput

186tok/s

P50, best across providers

Latency

7.32s

P50, best provider

Uptime (3d)

100.00%

Availability (3d)

99.94%

Availability over the last 3 days

Last 72 hours
Availability 99.94%
3 Days Ago2 Days AgoYesterdayNow

Availability over the last 24 hours

OpenRouter Availability
99.92%
Without Routing
96.19%

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.

1.
Favicon for https://thetawave.ai/
ThetaWave
new
261Mtokens
2.
Favicon for https://assethub.io/
AssetHub (Free)
new
165Mtokens
3.
Favicon for https://edwin.app/
Edwin TOOLS-4982 prefilter
new
131Mtokens
4.
Favicon for https://ai-image-gen-service.internal/
ai-image-gen-service
new
63.9Mtokens
5.
Favicon for https://sointera.hpdev.ru/
Sointera LMS
new
61.5Mtokens