LLM Reference
OpenRouter

Nano Banana 2 (Gemini 3.1 Flash Image) on OpenRouter

Gemini 3.1 · Google DeepMind

Serverless

Last refreshed 2026-06-15. Next refresh: weekly.

Why use Nano Banana 2 (Gemini 3.1 Flash Image) on OpenRouter?

OpenRouter offers Nano Banana 2 (Gemini 3.1 Flash Image) with pay-as-you-go pricing at $0.50/1M input tokens. OpenRouter is a multi-provider LLM aggregator offering unified API access to 300+ models from all major labs and emerging providers, with automatic failover for reliability.

Compare Nano Banana 2 (Gemini 3.1 Flash Image) across 3 providers to find the best fit for your use case
Input / 1M
$0.50
Output / 1M
$3.00
Cache
Not sourced
Batch
Not sourced

Setup recipe

Docs fallback
Install
Use the provider REST API or SDK
Auth
Create a provider API key
Call
model: google/gemini-3.1-flash-image
Model ID
google/gemini-3.1-flash-image

Request example

Curated snippets for this provider are not sourced yet. Use OpenRouter documentation with model ID google/gemini-3.1-flash-image.

Gotchas

  • Use provider model ID "google/gemini-3.1-flash-image", not the LLMReference slug "gemini-3.1-flash-image".

Compare Nano Banana 2 (Gemini 3.1 Flash Image) Across Providers

ProviderInput (per 1M)Output (per 1M)
Google AI Studio$0.50$60.00
Prodia
OpenRouter$0.50$3.00

Pricing

TypePrice (per 1M)
Input tokens$0.50
Output tokens$3.00

Capabilities

VisionMultimodalReasoningBatch API

About Nano Banana 2 (Gemini 3.1 Flash Image)

Nano Banana 2 is the GA Gemini 3.1 Flash Image model for image generation and editing through the Gemini API. It accepts text, image, PDF, and video inputs, adds video-to-image generation for thumbnails, posters, and infographics, returns text and images, supports search grounding and thinking, and replaces the gemini-3.1-flash-image-preview model retiring on 2026-06-25.

Get Started