Using Nano Banana 2 (Gemini 3.1 Flash Image Preview) on OpenRouter
Implementation guide · Gemini 3.1 · Google DeepMind
Serverless
OpenRouter exposes Nano Banana 2 (Gemini 3.1 Flash Image Preview) through model ID google/gemini-3.1-flash-image-preview. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.
Last refreshed 2026-06-15. Next refresh: weekly.
Quick Start
- 1
- 2Use the OpenRouter SDK or REST API to call
google/gemini-3.1-flash-image-preview— see the documentation for request format. - 3
Code Examples
Pricing on OpenRouter
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.50 |
| Output tokens | $3.00 |
Capabilities
No model capability flags are currently sourced.
About Nano Banana 2 (Gemini 3.1 Flash Image Preview)
Preview release of Nano Banana 2 for Gemini 3.1 Flash Image. Google released the GA gemini-3.1-flash-image model on 2026-05-28 and will retire this preview API ID on 2026-06-25.
Model Specs
Released2026-03-03
Context66k
ArchitectureDecoder Only
Knowledge cutoff2025-01