Atlas / Models / Google / Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview)

Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview)✓ Catalog verified

google/gemini-3.1-flash-image-preview

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

Input price
$0.50 /1M
Output price
$3.00 /1M
Context
66K
Modalities
imagetext
Released
Feb 26, 2026
Tool calling
Atlas signal
79/100
01

Overview

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

Access: available through the official Google API. Context window: 66K.

Pricing and metadata from the ModelsAtlas catalog.Last refreshed Aug 5, 2026
02

Specifications

API identifiergoogle/gemini-3.1-flash-image-preview
ProviderGoogle
Model typeMultimodal LLM
Context window66K catalog
Input modalitiesimage · text
Output modalitiesimage · text
ReleasedFeb 26, 2026
TokenizerGemini
ModeratedNo
Architecture modalitytext+image->text+image
Supported parameters
include_reasoningmax_tokensreasoningresponse_formatseedstopstructured_outputstemperaturetop_p
Source: provider documentation + catalog feedMethodology →

API defaults

Default parameters
{
  "top_k": null,
  "top_p": null,
  "temperature": null,
  "presence_penalty": null,
  "frequency_penalty": null,
  "repetition_penalty": null
}
03

Pricing

Live pricing components for google/gemini-3.1-flash-image-preview as published in the catalog.

$0.50
Input /1M
$3.00
Output /1M
Per request
Per image
Pricing componentRaw unit priceNormalizedUnit
Prompt tokens$5e-7$0.50 / 1MPer input token
Completion tokens$0.000003$3.00 / 1MPer output token
Request feeN/AN/APer request
Image feeN/AN/APer image unit
Web search feeN/AN/APer search request
Source: catalog pricing feedCompare all pricing →Cheapest models →
04

Cost calculator

Estimate monthly spend from your own token volumes.

Scale / Volume

Estimated Total Cost

$0.85Calculated from current list pricing in the ModelsAtlas catalog.
05

Capabilities

CapabilityStatusWhat it means
Visual Understanding✓ SupportedImage and document analysis support
Audio ProcessingNot advertisedSpeech and voice aligned flows
Tool CallingNot advertisedSupports tools / function calling
Self-HostingNot advertisedDeploy outside managed APIs
Derived from catalog capability tags and supported parameters
06

Capability signals

Directional signals derived from model metadata and capability tags — not official benchmark submissions.

Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview)
MMLU Signal (Reasoning)
86signal
Coding Signal (HumanEval proxy)
77signal
Math Signal (GSM8K proxy)
78signal
Science Signal (GPQA proxy)
74signal
Estimated from metadata — not an official benchmark runAll benchmarks →Methodology →
07

Quick start

Call Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview) through an OpenAI-compatible client.

from openai import OpenAI

client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="google/gemini-3.1-flash-image-preview",
    messages=[{"role": "user", "content": "Explain quantum physics."}]
)

print(response.choices[0].message.content)
08

Alternatives

Closest models by context window from a different provider.

09

Sources & attribution

Pricing and metadata are maintained in the ModelsAtlas catalog.

Capability bars use metadata tags — directional estimates onlyHow we source and verify data →
10

Frequently asked questions

How much does Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview) cost?

$0.50 per 1M input tokens and $3.00 per 1M output tokens on the official Google API.

What is the context window of Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview)?

Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview) supports up to 66K tokens of context.

Does Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview) support tool / function calling?

Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview) does not advertise first-class tool/function calling. Check vendor docs for the latest capabilities.

How do I access Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview)?

Use the official Google API with the model id `google/gemini-3.1-flash-image-preview`. See the Quick start section above for code examples.