Guides / gemini api cost
Gemini API cost and why output length dominates
Gemini API cost runs from $0.25 per million input tokens on Flash Lite to $2.00 on the Pro preview, with output spreads reaching 8.3 times input. That makes answer length the dominant lever here. Culpa, a local-first LLM cost, margin, and forecast ledger, splits input and output per call, so you can see which side is actually growing.
Why this happens
Gemini has the cheapest input rates in this book and the widest output-to-input spreads, which pulls in two directions. Cheap input makes long context genuinely affordable, so teams retrieve more. Expensive output relative to that input means every token of narration costs what eight input tokens would. Teams arrive with prompt-trimming habits from other providers, apply them here, and find the bill barely moves.
What this usually looks like
- Trimming your prompt produced almost no change in spend.
- Output tokens are a small share of your token count and a large share of your bill.
- Retrieved context has grown steadily because input felt close to free.
- Cost per call varies widely between requests, tracking response length rather than input size.
Free, no card, no account
Run the free Cost Leak Scan
It shows your most expensive conversation before you install anything.
Mistakes that cost the most
| Mistake | Why it hurts | Do instead |
|---|---|---|
| Applying prompt-trimming habits from a different provider. | Input starts at $0.25 per million here, so halving a long prompt saves very little. | Constrain output first. Set max tokens and request a compact format, then measure the change. |
| Retrieving more context because input is cheap. | Cheap isn't free, and across a batch a large context is a real number. | Measure retrieval precision. Cutting unused context improves quality and cost together. |
| Asking the model to narrate its reasoning in every response. | Narration is output tokens at up to 8.3 times the input rate, and it's rarely read. | Request the answer only, and sample reasoning on a subset when you genuinely need it. |
Run this check tonight
- Split your Gemini spend into input and output. The output share is usually the surprise.
- Measure median and 90th percentile output tokens per call. A wide gap means the format is uncontrolled.
- Check whether max tokens is set at all. On an eight-to-one spread it's the cheapest control available.
- Recompute your bill with output halved, then with input halved. Compare which is easier to achieve.
- Confirm cached input is in use. Every Gemini model here carries a roughly tenfold cached discount.
Five Gemini models, same tokens, different shapes
Illustrative example
1 million input and 200,000 output tokens priced across the Gemini line.
2.5 Flash costs less than half of 3.5 Flash on identical work, yet carries the wider output ratio. The tier and the shape are separate decisions here, unlike on Anthropic.
Every number, with its confidence and source
| Figure | What it means | Confidence | Source |
|---|---|---|---|
| 8.3x | widest output-to-input ratio across the Gemini line, on 2.5 Flash | calculated | $2.50 output divided by $0.30 input per million on gemini-2.5-flash, from the price book, effective 2026-07-02. |
| $0.55 to $4.40 | cost of one million input and 200,000 output tokens across the five Gemini models | calculated | Five calculations shown in the teardown, all from price-book rows effective 2026-07-02. |
What a generic answer can’t know
A rate card gives you two numbers per model. It can't tell you your own output-to-input ratio, which decides which lever is worth pulling, or which feature produces the long responses. Culpa records both on your infrastructure, keeps your prompts and responses there, and counts the calls to run your plan.
Questions founders ask next
Which Gemini model has the widest output spread?
Gemini 2.5 Flash, at 8.3 times input, followed by 2.5 Pro at 8 times. The 3.x models sit at 6 times. So the newer line is flatter, and the older Flash tier is where response length matters most.
What is the cheapest Gemini model?
Gemini 3.1 Flash Lite at $0.25 per million input and $1.50 output, verified 2026-07-02. It's the cheapest input rate of any hosted model in this price book outside the open-weight tiers.
Do Gemini models charge for cache writes?
Not in this price book. Every Gemini model records a cached read rate at roughly a tenth of input, with no separate write charge, so caching here has no downside beyond the effort of ordering the prompt correctly.
On your infrastructure
Culpa runs on your infrastructure. Your prompts and responses never leave it. Culpa counts calls to run your plan, and it fails open, so if it ever breaks your app keeps running.
Free, no card, no account
Run the free Cost Leak Scan
It shows your most expensive conversation before you install anything.
Keep reading
Sources: Gemini API pricing. Last reviewed 2026-08-01, rates effective 2026-07-02. Plain text version.