Gemini API pricing: what 20 models cost a coding agent

Every Gemini model in the catalog that has been ranked in an agent category, priced three ways — list, cache read, and what the two come to at the token mix an agent actually sends. Recomputed from the source catalog on 2026-11-30.

List price is not the bill. A coding agent re-reads its context every step, so about 95.6% of the tokens it sends are cache reads — and how deep Gemini discounts a cache read decides the bill more than the number printed in the row. That discount is a vendor policy, not a per-model one, and no published rate card puts it next to the other vendors’.

What Gemini charges per million tokens

20 Gemini models that have been ranked in an agent category of the Design Arena, read from OpenRouter’s public catalog on 2026-11-30. Three prices per row: what the row lists, what a cache read costs, and what the two come to at the token mix a coding agent actually sends.

Gemini does not have one cache-read rate — it has 2. Across 18 rows the discount runs from 5.0% to 10.0% of that row’s own input price (5%, 10%). So a cheaper list price here can still be the dearer call once an agent starts caching, and no single discount figure describes this vendor. Repriced at a coding agent’s mix, Gemini’s list input price overstates what an agent pays by a median 6.6× (range 6.5×–9.7×).

⚠ 2 of these 20 rows publish no cache-read price at all (Gemini 3 Flash Preview, Gemini 3.1 Pro Preview), so the agent-mix column is empty for them. That is not a zero and not a discount — it is a number the catalog does not carry, and filling it in with the list input price would make those rows look five to six times dearer than they are.

2 of these 20 rows cost more than the price in their own row once the prompt is long enough. The threshold reprices every token in the request, including the ones under it, so one token over the line roughly doubles the call. The thresholds are in the table.

10 rows are marked batch — the batch entries the catalog lists separately. They are kept apart on purpose: folding them in would read as if a normal call cost half of what it does.

$ / 1M at agent mix $ in / 1M $ cache read / 1M $ out / 1M Model Context Long-context step Best agents rank
$0.0566 $0.375 $0.0375 $1.875 Gemini 3.6 Flash batch 1M — #15 androidnative
$0.0566 $0.375 $0.0375 $1.875 Gemini 3.7 Flash batch 1M — #6 godotgamedev
$0.0566 $0.375 $0.0375 $1.875 Gemini 3.8 Flash batch 1M — #5 godotgamedev
$0.0769 $0.50 $0.05 $3.00 Gemini 3 Flash Preview 1M — #8 agenticslides
$0.0773 $0.75 $0.0375 $3.75 Gemini 4 Hydrogen batch 1M — #5 codetovideo
$0.103 $1.00 $0.05 $5.00 Gemini 4 Argon batch 1M — #1 agenticgamedev
$0.103 $1.00 $0.05 $5.00 Gemini 4 Carbon batch 1M — #1 pdf
$0.1131 $0.75 $0.075 $3.75 Gemini 3.6 Flash 1M — #15 androidnative
$0.1131 $0.75 $0.075 $3.75 Gemini 3.7 Flash 1M — #6 godotgamedev
$0.1153 $0.75 $0.075 $4.50 Gemini 3.5 Flash batch 1M — #2 agenticslides(python-pptx)
$0.1244 $0.825 $0.0825 $4.125 Gemini 3.8 Flash 1M — #5 godotgamedev
$0.1545 $1.50 $0.075 $7.50 Gemini 4 Hydrogen 1M — #5 codetovideo
$0.1545 $1.50 $0.075 $7.50 Gemini 4 Neon batch 1M — #2 codetovideo
$0.206 $2.00 $0.10 $10.00 Gemini 4 Argon 1M — #1 agenticgamedev
$0.206 $2.00 $0.10 $10.00 Gemini 4 Carbon 1M — #1 pdf
$0.2306 $1.50 $0.15 $9.00 Gemini 3.5 Flash 1M — #2 agenticslides(python-pptx)
$0.3075 $2.00 $0.20 $12.00 Gemini 3.1 Pro Preview 1M $4.00 past 200k #4 agentichtmlslides
$0.3091 $3.00 $0.15 $15.00 Gemini 4 Neon 1M — #2 codetovideo
— $0.25 — $1.50 Gemini 3 Flash Preview batch 1M — #8 agenticslides
— $1.00 — $6.00 Gemini 3.1 Pro Preview batch 1M $2.00 past 200k #4 agentichtmlslides

Cheapest Gemini row an agent can call normally is Gemini 3 Flash Preview at $0.0769 per million; the dearest is $0.3091, 4× more. Both numbers exclude the batch rows above. Both are computed, not quoted — the arithmetic and the weights are in the JSON.

Gemini against the other vendors, on the same arithmetic

Same catalog, same day, same token mix. The column that decides an agent’s bill is not the list price — it is how deep that vendor discounts a cache read, because about 95.6% of what an agent sends is a cache read.

Vendor Rows Cache read, % of its own input List price overstates the agent bill by Cheapest non-batch row at agent mix
xiaomi 1 0.8% 18.4× $0.0237
tencent 1 5% 10.3× $0.0407
DeepSeek 3 2–22.8% 7.6× $0.0107
Claude 26 2.5–10% 6.6× $0.0151
Gemini 20 5–10% 6.6× $0.0769
OpenAI 11 5–10.4% 6.5× $0.2042
Llama 7 5–13.3% 6.0× $0.0539
reflection 1 13.3% 5.6× $0.0534
upstage 2 10–20% 5.4× $0.0074
nvidia 2 13.3–20% 4.9× $0.0265
thinkingmachines 1 17% 4.7× $0.215
Grok 8 15–25% 4.2× $0.2494
Qwen 4 20% 4.1× $0.0779
MiniMax 3 20% 4.1× $0.0731
GLM 11 18.6–98.6% 4.1× $0.0257
stepfun 1 20% 4.0× $0.0497
Kimi 7 10–94.8% 3.3× $0.1479

The spread in that fourth column is the whole point: Claude at 6.6× against Kimi at 3.3×, across 26 and 7 rows. Two rows with the same list price, one from each, are not the same price to an agent — and no published rate card puts those two numbers next to each other.

All models, every vendor, one table · Put your own token counts in · JSON · CSV

What was written about Gemini while these were measured

2 figures in these field notes come from a sentence that names Gemini. These are quoted from the write-up, dated the day it went out — unlike the table above, they are not recomputed, so read each one as of its own date.

All 1015 figures, every kind

A Gemini price that looks wrong? Say which row — the form already knows it is about Gemini; you only have to say what the number is now. Every figure here is computed from a published catalog, so a wrong one is a bug, not an opinion.

Did this answer it? A star on the repository is the whole ask — the data is CC BY and does not require starring.


All write-ups