Gemini 2.5 Flash API pricing

Last verified

Gemini 2.5 Flash costs $0.30 per million input tokens and $2.50 per million output tokens on Google's first-party API.

Rates

Token type$ per million
Input$0.30
Output$2.50
Cached input$0.03

Output costs 8.3× input. That ratio is what decides whether a workload is expensive: reading a lot is cheap, generating a lot is not. Weight your estimates accordingly.

What it costs to run something

Monthly cost at Gemini 2.5 Flash's rates, assuming no caching. Token figures are stated so you can check the arithmetic.

WorkloadMonthly cost
Support chatbot
1,000 conversations/month · 2,000 in + 500 out each
$1.85
RAG search
10,000 queries/month · 8,000 in + 400 out each
$34.00
Bulk extraction
10,000 documents · 3,000 in + 300 out each
$16.50
Coding agent
100 runs/month · 400,000 in + 20,000 out each
$17.00

With prompt caching on a stable prefix, the input side of each of these falls toward $0.03 per million — frequently a majority of the bill.

Caching economics for Gemini 2.5 Flash

Cached input is billed at $0.03 per million tokens — 0.10× the base input rate. For a workload that resends the same prefix, that is the single largest lever available.

Cache reads are 90% cheaper than fresh input, so repeated prefixes are worth structuring for.

Where it sits, and what's cheaper

Among Google's current models, Gemini 2.5 Flash is #4 of 9 by input price (1 = cheapest).

Cheaper models that may do the job — worth testing before you assume you need this tier:

ModelInputOutputSaving on input
GPT-5 mini$0.25$2.0017%
Gemini 3.1 Flash-Lite$0.25$1.5017%
GPT-5.6 Luna$0.20$1.2033%

The honest caveat: a cheaper model is only cheaper if it still does the task. Test on your actual workload rather than assuming, and measure quality before you migrate.

Tracking what you actually spend

These are list prices. What you are billed also reflects credits, discounts, caching and batch usage — which is why the number worth watching comes from Google's billing API, not a calculator.

How to track spend across providers · Why billing data is daily

Source

Rates verified 2026-08-05 against Google's pricing documentation. Prices change — if this page is more than a month old, check the source.