AI API PricesGoogle › Gemini 2.5 Flash

Gemini 2.5 Flash pricing

Gemini 2.5 Flash API cost from Google — $0.300 per 1M input tokens and $2.50 per 1M output tokens. Estimate your real monthly bill below, then compare it against every other model.

Input price
$0.300
per 1M input tokens
Output price
$2.50
per 1M output tokens
Context window
1M
tokens per request
Reference call
$0.0028
1K in + 1K out

Balanced 1M context · all prices USD per 1M tokens, list price last verified 2026-06-27.

Gemini 2.5 Flash capabilities & limits

Representative specs for this tier — confirm exact limits in the Google docs.

Context window1M
Max output32K
Knowledge cutoffAug 2025
API formatOpenAI-compatible
✓ Vision✓ Tools / functions✓ JSON / structured✓ Batch API

API acting up? Check live Google status → · all AI API status

Call Gemini 2.5 Flash from your code

The exact model string and endpoint to use. Works with the OpenAI SDK — just point base_url at the URL below.

Model stringgemini-2.5-flash
Base URLhttps://generativelanguage.googleapis.com/v1beta
API key envGEMINI_API_KEY
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent" \
  -H "x-goog-api-key: $GEMINI_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "contents": [{"parts": [{"text": "Hello"}]}]
  }'

Model strings follow each provider's naming convention; confirm the current id in the Google docs before relying on it.

What a Gemini 2.5 Flash API call actually costs

Blended input + output cost at Gemini 2.5 Flash's list rates — useful yardsticks before you commit to volume.

$0.0028
Short call
1K in · 1K out
$0.0022
Chat turn
3K in · 500 out
$0.0085
RAG / long prompt
20K in · 1K out
$2.80
1M in + 1M out
bulk job

Gemini 2.5 Flash cost calculator

Enter your monthly volume to estimate the Gemini 2.5 Flash bill. Runs entirely in your browser.

Estimated monthly cost

For the full multi-model breakdown, use the cost calculator.

Google models — Gemini 2.5 Flash in context

How Gemini 2.5 Flash prices against its siblings. Cheapest reference cost first.

Model Input /1M Output /1M Cost / call* Context Type
Gemini 1.5 Flash-8B
Cheapest capable model
$0.037 $0.150 $0.0002 1M Fast / cheap
Gemini 2.0 Flash $0.100 $0.400 $0.0005 1M Fast / cheap
Gemini 2.5 Flash $0.300 $2.50 $0.0028 1M Balanced
Gemini 2.5 Pro
1M context (≤200k tier)
$1.25 $10.00 $0.011 1M Flagship

*Reference cost of one call with 1,000 input + 1,000 output tokens — a neutral yardstick. Use the calculator for your real usage. Cheapest row highlighted.

Cheaper than Gemini 2.5 Flash? In the same balanced tier, Command R runs $0.150 in / $0.600 out. The overall cheapest model tracked is Gemini 1.5 Flash-8B — see the cheapest LLM API guide.

How Gemini 2.5 Flash pricing works

Gemini 2.5 Flash is billed per token: a lower input price of $0.300 per million tokens for everything you send, and a higher output price of $2.50 per million for everything the model generates. To turn that into a real Gemini 2.5 Flash bill, multiply by your monthly request volume and average prompt/response length — the calculator above does exactly that.

Gemini 2.5 Flash does not list a separate cached-input rate, so every input token bills at $0.300 per million. If repeated context is a big part of your prompts, a model with prompt caching may end up cheaper in practice.

List prices move fast — always confirm the current numbers on the official Google pricing page before relying on them for budgeting.

Gemini 2.5 Flash pricing FAQ

How much does the Gemini 2.5 Flash API cost?

Gemini 2.5 Flash costs $0.300 per 1M input tokens and $2.50 per 1M output tokens. A typical 3K-input / 500-output call works out to about $0.0022.

What is Gemini 2.5 Flash's context window?

Gemini 2.5 Flash has a 1M-token context window. Tokens you put in the prompt are billed at the $0.300 per 1M input rate.

Does Gemini 2.5 Flash charge extra for output tokens?

Yes. Output (generated) tokens cost $2.50 per 1M, versus $0.300 per 1M for input — about 8.3× more, which is normal for LLM APIs.

Is there a cheaper alternative to Gemini 2.5 Flash?

In the same balanced tier, Command R (Cohere) is cheaper at $0.150 in / $0.600 out. The overall cheapest model on the market is Gemini 1.5 Flash-8B.

Compare Gemini 2.5 Flash with other models