LLM Reference
OpenRouter

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. 1
    Create an account at OpenRouter and generate an API key.
  2. 2
    Use the OpenRouter SDK or REST API to call google/gemini-3.1-flash-image-preview — see the documentation for request format.
  3. 3
    You'll be billed $0.50/1M input, $3.00/1M output tokens. See full pricing.

Code Examples

See OpenRouter documentation for integration details.

Pricing on OpenRouter

TypePrice (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

Provider

OpenRouter
OpenRouter

OpenRouter, Inc.

New York, NY, USA