impulse

Gemini 3.1 Flash Image

Frontier labImage

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.

API id gemini-3.1-flash-imageReleased 18 Jun 2026 (Jun 2026)
Input / 1M
$0.50
at Google AI Studio
Output / 1M
$3.00
at Google AI Studio
Context window
131K
tokens
Max output
33K
tokens per reply
Hosts
3
4 listings
Released
Jun 2026
18 Jun 2026

Pricing

List prices at Google AI Studio, in US dollars per million tokens.

TierInput / 1MOutput / 1M
Standard$0.50$3.00
Batch
50% off
$0.25$1.50
Web search
$14.00 per 1,000 searches

What it costs a month

At Google AI Studio list prices, 30 days.

  • Chat assistant5,000 requests a day, 2K in / 0.5K out$375
  • RAG over documents2,000 requests a day, 8K in / 0.6K out$348
  • Coding agent1,000 requests a day, 40K in / 2K out$780
  • Overnight batch20,000 requests a day, 4K in / 0.4K out, batch$960
Use your own numbers

Where to run it

3 hosts serve Gemini 3.1 Flash Image. The comparison is on blended price, 3 parts input to 1 part output.

HostIn / out per 1M
gemini-3.1-flash-image
$0.50 / $3.00
gemini-3.1-flash-image
$0.50 / $3.00
databricks-gemini-3-1-flash-image
$0.625 / $3.75
+25% vs headline
Show 1 more listings: regions, snapshots and variants
Vertex AI
Alias
gemini-3.1-flash-image
$0.50 / $3.00

Capabilities

Core

  • Streaming
  • Function calling
  • JSON mode
  • Structured outputs

Multimodal

  • Vision
  • Image input
  • Audio
  • Image generation
  • Video

Advanced

  • Reasoning
  • Tool calling
  • MCP
  • Prompt caching
  • Batch API
  • Embeddings
Takes in
ImagesTextPDFs
Produces
ImagesText
Features
PDF inputBuilt-in web search

Cheaper alternatives

Current models that cost less and keep most of what this one can do: tools, vision, reasoning, structured output, caching and enough context.

Same model, cheaper host

No host sells it for less than Google AI Studio.

Smaller Google models

No cheaper Google model keeps its key capabilities.

Other frontier labs

No cheaper match from another frontier lab.

Open-weight picks

No cheaper open-weight match.

Model line

Newer and older versions, at each lab's own price.

  1. Jun 2026Gemini 3.1 Flash ImageLatest$0.50 / $3.00
  2. Oct 2025Gemini 25 Flash ImageNot listed
  3. Oct 2025Gemini 2.5 Flash Image$0.30 / $2.50

Call it

Using Google AI Studio's API.

Python
from google import genai

client = genai.Client()  # reads GEMINI_API_KEY

response = client.models.generate_content(model="gemini-3.1-flash-image", contents="Hello")
print(response.text)

Quick answers

How much does Gemini 3.1 Flash Image cost?

On Google AI Studio, Gemini 3.1 Flash Image costs $0.50 per million input tokens and $3.00 per million output tokens.

Which APIs offer Gemini 3.1 Flash Image?

Gemini 3.1 Flash Image runs on 3 APIs: Google AI Studio, Vertex AI and Databricks.

What is Gemini 3.1 Flash Image's context window?

131K tokens, with up to 33K tokens in one reply.

Is Gemini 3.1 Flash Image being retired?

No retirement date is scheduled for it on any API we track.

Is there a newer version of Gemini 3.1 Flash Image?

No. Gemini 3.1 Flash Image is the newest model in its line.

When was Gemini 3.1 Flash Image released?

Google released it on 18 Jun 2026.

What is Gemini 3.1 Flash Image's API model id?

Use gemini-3.1-flash-image with Google AI Studio. Other hosts use their own ids: databricks-gemini-3-1-flash-image on Databricks.

Sources

Raw catalog entry for gemini-3.1-flash-image on Google AI Studio
{
  "input_cost_per_token": 5e-7,
  "input_cost_per_token_batches": 2.5e-7,
  "litellm_provider": "gemini",
  "max_input_tokens": 131072,
  "max_output_tokens": 32768,
  "mode": "image_generation",
  "output_cost_per_image": 0.045,
  "output_cost_per_image_token": 0.00006,
  "output_cost_per_image_token_batches": 0.00003,
  "output_cost_per_token": 0.000003,
  "output_cost_per_token_batches": 0.0000015,
  "rpm": 1000,
  "search_context_cost_per_query": {
    "search_context_size_low": 0.014,
    "search_context_size_medium": 0.014,
    "search_context_size_high": 0.014
  },
  "search_free_requests": {
    "count": 5000,
    "period": "month",
    "shared_group": "gemini-3"
  },
  "source": "https://ai.google.dev/gemini-api/docs/deprecations",
  "successor_model": "gemini/gemini-nano-banana-2.1",
  "supported_endpoints": [
    "/v1/chat/completions",
    "/v1/images/generations",
    "/v1/images/edits"
  ],
  "supported_modalities": [
    "text",
    "image"
  ],
  "supported_output_modalities": [
    "text",
    "image"
  ],
  "supports_function_calling": false,
  "supports_pdf_input": true,
  "supports_prompt_caching": false,
  "supports_reasoning": true,
  "supports_response_schema": false,
  "supports_system_messages": true,
  "supports_vision": true,
  "supports_web_search": true,
  "tpm": 4000000,
  "web_search_billing_unit": "per_query"
}