For Developers/Models/Gemini 2.5 Flash
Closed SourceDeprecatedGoogle DeepMindReleased 2025-06

Gemini 2.5 Flash

Google's price-performance workhorse with thinking and a 1M-token context.

Google DeepMind has replaced this model with Gemini 3.5 Flash-Lite.

Context window

1,048,576 tokens (1M) input; up to 65,535 output

Input / 1M tokens

$0.30

Output / 1M tokens

$2.50

Provider

Google DeepMind

Paid tier: text/image/video input $0.30/1M, audio input $1.00/1M; output $2.50/1M. A free tier is also available with rate limits. Google deprecated gemini-2.5-flash on November 2, 2026: it is no longer selectable in Google AI Studio, and from December 1, 2026 API requests to it route to gemini-3.5-flash-lite and are billed at Gemini 3.5 Flash-Lite rates (Gemini API changelog). · Data verified 2026-11-11

Gemini 2.5 Flash is Google's price-performance workhorse from the 2.5 generation, built for low-latency, high-volume tasks. It includes optional built-in 'thinking' with a configurable thinking budget for greater accuracy on reasoning, coding, math, and scientific tasks, and supports a 1M-token context window with multimodal input. It was a common default for production apps. Gemini 3.5 Flash-Lite replaced it: Google deprecated 2.5 Flash on November 2, 2026, routes its API requests to Gemini 3.5 Flash-Lite from December 1, 2026, and points new projects to Gemini 3.5 Flash-Lite or Gemini 3.8 Flash.

Capability index

Relative estimates (0-100) to place this model against its peers, grounded in published benchmarks.

Coding
75
Reasoning
76
Math
74
Multimodal
80
Long context
88
Speed
90
Cost efficiency
92

How to access it

Callable as 'gemini-2.5-flash' through the Gemini API until December 1, 2026, when Google starts routing those requests to gemini-3.5-flash-lite. No longer selectable in Google AI Studio since November 2, 2026; Google advises switching the model string to gemini-3.5-flash-lite before the cutover. Since September 18, 2026, Gemini 2.5 API access has been limited to projects that used the models recently.

Strengths

  • ✓Excellent cost-to-performance ratio
  • ✓Low latency and high throughput
  • ✓Configurable thinking budget to trade off cost vs quality
  • ✓1M-token context window and multimodal input

Best for developers who...

High-volume production workloadsCost-sensitive chat and RAG appsFast multimodal processing

When to choose it (and when not to)

Reach for Gemini 2.5 Flash when...

  • →High-volume, latency-sensitive production workloads
  • →Chatbots, extraction, classification, and summarization at scale
  • →You need decent reasoning but must control costs

Look elsewhere if...

  • ✕New projects: Google deprecated it on November 2, 2026 and reroutes its API traffic to Gemini 3.5 Flash-Lite from December 1, 2026
  • ✕The hardest reasoning/STEM tasks (use Gemini 3.8 Flash or Gemini 4 Argon)
  • ✕Tasks needing the newest agentic capabilities (consider Gemini 3.8 Flash)
  • ✕Open-weight / self-hosting requirements

How to use it

  • ›Tune the thinking budget: raise it for hard tasks, set it low or off for simple high-volume calls
  • ›Batch similar requests to maximize throughput and cost efficiency
  • ›Give explicit output schemas for structured extraction
  • ›Prefer text/image/video inputs where possible since audio input is priced higher

Quickstart

Python
from google import genai

client = genai.Client(api_key="YOUR_API_KEY")
response = client.models.generate_content(
    model="gemini-2.5-flash",
    contents="Summarize this text in one sentence: ...",
)
print(response.text)

Install with `pip install google-genai`. Get an API key at aistudio.google.com.

API model id: gemini-2.5-flash

Benchmarks

BenchmarkScoreNotes
Context window1M tokens~1,048,576 input tokens, up to 65,535 output
Input price$0.30/1MText/image/video; audio input $1.00/1M

Source: Google Gemini API pricing docs

Compare Gemini 2.5 Flash

Compare Gemini 2.5 Flash with any other model

Build a comparison →
All model comparisons →

Learn the concepts