AIght

All LLM prices / Google

gemini-2.5-flash price per 1M tokens

gemini-2.5-flash costs $0.30 per 1M input tokens and $2.50 per 1M output tokens, and $0.03 per 1M cached input tokens read.

Per 1M tokensInputOutputCache readCache write
gemini-2.5-flash$0.30$2.50$0.03—

What a call costs

A typical agent step of 20,000 input and 1,500 output tokens costs $0.00975 on gemini-2.5-flash, so 10,000 of them a month is $97.50. Serving the repeated part of the prompt from cache cuts the input side to $0.03 per 1M.

gemini-2.5-flash on other providers

Listed asInputOutputCache readCache write
deepinfra/google/gemini-2.5-flash$0.30$2.50——
gemini/gemini-2.5-flash$0.30$2.50$0.03—
oci/google.gemini-2.5-flash$0.15$0.60——
openrouter/google/gemini-2.5-flash$0.30$2.50$0.03$0.0833
replicate/google/gemini-2.5-flash$0.30$2.50——
vercel_ai_gateway/google/gemini-2.5-flash$0.30$2.50$0.03—

Price history

No change to the listed rates since this log began on 2026-10-04.

Price a call with the free API

No key, no account. It uses this same table, and with "usage_shape": "openai" it takes the cached tokens out of prompt_tokens first, so they aren't billed twice.

curl -s https://api.aight.studio/api/cost \
  -H 'content-type: application/json' \
  -d '{"model": "gemini-2.5-flash", "input_tokens": 20000, "output_tokens": 1500, "cache_read_tokens": 12000}'

Returns cost_usd, a breakdown per token type, the rates per 1M, and when the table last changed. Rates only: GET https://api.aight.studio/api/pricing?models=a,b. Rate-limited per client; an unknown model is a 404, never $0. Full API docs.

Which line of your agent spends it? AIght traces each gemini-2.5-flash call to the line of code that made it. For coding agents, pip install aight && aight-collect --report prices your Claude Code, Codex or Gemini CLI history locally with no account.