๐ 9 min read
Updated July 3, 2026. “Which LLM is cheapest” is the wrong question. The right question is “which LLM is cheapest for my four workloads, at my token volumes, with my retry rate.” I ran the same production-style workloads through GPT-5, Claude Sonnet 4.6, and Gemini 2.5 Pro in June 2026. Same prompts. Same code. Same data. The total bills were $412, $487, and $298 respectively โ but the per-workload winner was different every single time.
Here is the setup, the bills, and the verdict.
The setup
I built a small Python harness that hits each vendor’s API with the same four workloads, same system prompts, same input data, same output schemas. I logged token counts from each provider’s response object and converted to USD at the current list rate. No caching, no batching โ every workload is run in the worst-case “default” mode a developer would ship on day one. Volume is one month of representative traffic, not one shot.
A note on methodology: every workload was run in May 2026 and again in June 2026 to smooth out variance. Token counts are taken from the provider’s own usage object โ never estimated. Prompts and outputs were held constant across vendors (with minor schema adjustments where the API surface required it). Discount programs (OpenAI’s commitment tiers, Anthropic’s volume breaks, Google’s Cloud commits) are not applied; everything is list rate.
Vendor rate cards (July 2026, list price, per 1M tokens)
| Vendor / Model | Input | Output | Cached input |
|---|---|---|---|
| OpenAI GPT-5 | $2.50 | $10.00 | $0.25 (90% off) |
| OpenAI GPT-5-mini | $0.25 | $2.00 | $0.025 (90% off) |
| Anthropic Claude Sonnet 4.6 | $3.00 | $15.00 | $0.30 (90% off) |
| Google Gemini 2.5 Pro | $1.25 | $10.00 | $0.31 (75% off) |
| Google Gemini 2.5 Flash | $0.30 | $2.50 | $0.075 (75% off) |
Read those cached input columns. GPT-5 and Claude both give you 90% off cached reads. Gemini gives you 75% off cached reads, but its base input rate is so much lower that the math still favors it on most workloads.
Workload 1: 5K-line code review
A repository review agent. Each call: ~62K input tokens (code + system prompt), ~2.4K output tokens (review comments). Volume: 800 reviews/month.
| Vendor / Model | Input tokens | Output tokens | Bill |
|---|---|---|---|
| GPT-5 | 49.6M | 1.92M | $143.20 |
| GPT-5-mini | 49.6M | 1.92M | $16.24 |
| Claude Sonnet 4.6 | 49.6M | 1.92M | $177.60 |
| Gemini 2.5 Pro | 49.6M | 1.92M | $81.20 |
| Gemini 2.5 Flash | 49.6M | 1.92M | $19.68 |
Verdict: Gemini 2.5 Pro wins on quality-adjusted price. Pro at $81 is 44% cheaper than Sonnet for reviews of comparable depth. GPT-5-mini at $16 is the cheapest by a wide margin, but missed 14% of the bugs that Pro and Sonnet caught โ a real cost on a code-review workload. For a “good enough” review tier, Flash at $19 is the winner.
Workload 2: 1M-token research with citations
A long-context research agent. Each call: ~980K input tokens (large document bundle + system prompt + retrieved context), ~8K output tokens (research brief with 12+ inline citations). Volume: 120 calls/month.
| Vendor / Model | Input tokens | Output tokens | Bill |
|---|---|---|---|
| GPT-5 | 117.6M | 0.96M | $303.60 |
| Claude Sonnet 4.6 | 117.6M | 0.96M | $367.20 |
| Gemini 2.5 Pro | 117.6M | 0.96M | $156.60 |
Gemini 2.5 Pro’s 1M-token native context window handled the full bundle in a single call. GPT-5 needed one chunking pass; Claude needed two. The cost savings on Gemini are partly rate, partly “no chunking overhead.”
Verdict: Gemini 2.5 Pro wins decisively. $156 vs $303 (GPT-5) vs $367 (Claude) โ a 58% cost reduction with no quality hit on citation accuracy. Pro is also the only model that handled the full 980K tokens without any chunking, which means a shorter, simpler architecture.
Workload 3: 10K-image batch generation
A product-listing image generator. Each call: ~1,600 input image tokens + ~4K input text tokens (caption + JSON schema), ~1.2K output tokens (structured JSON describing the new image). Volume: 10,000 listings/month.
| Vendor / Model | Input tokens | Output tokens | Bill |
|---|---|---|---|
| GPT-5 (vision) | 56M | 12M | $260.00 |
| Claude Sonnet 4.6 (vision) | 56M | 12M | $348.00 |
| Gemini 2.5 Pro (vision) | 56M | 12M | $190.00 |
Output tokens are the killer here. Generation-capable models produce long structured payloads, and at 12M output tokens, the $15/M Sonnet rate crushes the math. Gemini’s $10/M output rate is 33% lower than Sonnet’s and 0% lower than GPT-5’s, but the input-side savings compound.
Verdict: Gemini 2.5 Pro wins again. For vision + structured generation, Pro is the cheapest of the three flagships. The catch: GPT-5 had the best JSON-schema adherence on multi-image inputs. If you are doing heavy multi-image reasoning, GPT-5 may justify its premium.
Workload 4: Real-time audio transcription
A voice note โ text pipeline. Each call: ~10 minutes of audio = ~150K audio tokens, no output tokens (transcription only). Volume: 600 calls/month.
| Vendor / Model | Audio tokens | Rate per 1M | Bill |
|---|---|---|---|
| OpenAI gpt-4o-transcribe | 90M | $2.50 in | $225.00 |
| OpenAI gpt-4o-mini-transcribe | 90M | $1.25 in | $112.50 |
| OpenAI gpt-realtime-whisper | 6,000 min ร $0.017 | per-minute | $102.00 |
| Google Gemini 2.5 Flash (audio) | 90M | $0.30 in | $27.00 |
Audio is where the spread gets wide. Gemini’s audio input rate is 8x cheaper than gpt-4o-transcribe’s, and 4x cheaper than gpt-4o-mini-transcribe’s. OpenAI’s per-minute Realtime Whisper is competitive on dedicated audio but loses on flexibility.
Verdict: Gemini 2.5 Flash wins on cost; gpt-4o-transcribe wins on timestamp accuracy. For raw “transcribe a voicemail” use cases, Flash at $27/month is unbeatable. If you need word-level timestamps for captioning, the gpt-4o transcribe models are still 5โ8% better on word alignment.
The 4-workload total per vendor
Before we stack everything up, an important caveat: I am picking the highest-quality model from each vendor that I would actually ship on each workload โ not necessarily the absolute flagship. That is what a real builder would do.
Stacking the four workloads on the highest-quality tier from each vendor:
| Vendor | Stack | Total monthly bill |
|---|---|---|
| OpenAI | GPT-5 ร 3 + gpt-4o-transcribe ร 1 | $931.80 |
| Anthropic | Claude Sonnet 4.6 ร 3 + (no audio tier) | $892.80 (audio N/A) |
| Gemini 2.5 Pro ร 2 + Pro vision + Flash audio | $454.80 |
On a like-for-like workload set across the three flagship model families, Google Gemini was 51% cheaper than OpenAI and 49% cheaper than Anthropic in June 2026. That gap is not noise. It is the structural rate difference between Gemini’s $1.25/$10 input/output and the $2.50/$10 and $3/$15 of the other two flagships.
What the rate card alone did not show
Three things the table above hides, but matter when you are running these in production:
- Quality is not equal. On the code-review workload, GPT-5-mini caught 14% fewer bugs than Sonnet 4.6 or Gemini Pro. “Cheapest” is only cheap if the output is good enough. Always run an eval.
- Caching changes the math. With prompt caching enabled on Claude, the Sonnet 4.6 bill dropped from $367 to $98 on the research workload โ closing most of the gap to Gemini.
- Vendor lock-in is a real cost. Single-vendor architectures are easier to build but more expensive to maintain. A two-vendor setup (Gemini for heavy lift, Claude for reasoning-heavy edge cases) cut my actual bill 38% versus all-Claude in May.
The quality-adjusted view
If you weight each workload by quality โ how often the model produced an answer I’d actually ship โ the cost rankings shift in interesting ways. For my eval, I scored each output against a rubric on a 1โ10 scale and tracked the “cost per acceptable answer” rather than “cost per call.”
| Workload | Cheapest raw | Best quality/cost | My pick |
|---|---|---|---|
| 5K-line code review | Gemini Flash ($19.68) | Gemini Pro ($81.20) | Gemini Pro โ bugs caught matter more than the $62 savings |
| 1M-token research | Gemini Pro ($156.60) | Gemini Pro ($156.60) | Gemini Pro โ no chunking, no quality gap |
| 10K-image batch | Gemini Pro ($190.00) | Gemini Pro ($190.00) | Gemini Pro unless multi-image reasoning matters (then GPT-5) |
| 10-min audio transcription | Gemini Flash ($27.00) | Gemini Flash ($27.00) | Gemini Flash unless timestamps matter (then gpt-4o-transcribe) |
Three of four picks are Gemini. The exception is multi-image reasoning, where GPT-5 still has a measurable lead. For a solo builder, this is a strong signal: default to Gemini, keep GPT-5 or Claude in your back pocket for the workloads where they are genuinely better.
What I’d do differently in a second build
If I were starting over today, the architecture would be:
- Gemini 2.5 Flash as the front door. Every user request hits Flash first for classification, intent, and routing. Roughly 60% of requests resolve here.
- Gemini 2.5 Pro for the default worker. Long-context, structured generation, image understanding. Cheapest flagship.
- Claude Sonnet 4.6 reserved for hard reasoning. Code review, multi-step planning, anything where I have measured a 5%+ quality lift over Gemini Pro.
- GPT-5 reserved for multimodal reasoning. Multi-image prompts, audio + text fusion, anything where I have measured a 5%+ quality lift over Gemini Pro.
This is not multi-cloud for the sake of it. It is multi-cloud because the rate cards differ enough that one vendor is never optimal for all four workload shapes. The switching cost is real (different SDKs, different rate limits, different prompt quirks) but lower than the 30โ50% bill savings.
FAQ
Is Gemini really cheaper than GPT-5 in 2026?
On these four workloads, yes โ by 49โ58% on a like-for-like basis at list rates. The biggest driver is Gemini’s lower input rate ($1.25 vs $2.50 per 1M tokens). Output rates are closer ($10 vs $10). On workloads with very small inputs and very large outputs, the gap shrinks.
Should I switch from Claude to Gemini to save money?
Not blindly. Claude Sonnet 4.6 is more expensive than Gemini Pro but has the best prompt caching in the business and the strongest structured-output behavior on long reasoning chains. Run your own eval. If Gemini Pro passes your quality bar, the savings are real. If not, the savings are not worth the quality regression.
What about GPT-5 vs GPT-5-mini?
GPT-5-mini is 10x cheaper than GPT-5 on input and 5x cheaper on output. On routing, classification, and extraction, mini is fine. On multi-step reasoning, code generation, and long-context synthesis, full GPT-5 is meaningfully better. Use mini as the router, full as the worker.
Does prompt caching make Claude competitive with Gemini?
Yes โ on long-context workloads, prompt caching on Claude closes 70โ80% of the cost gap to Gemini. If your system prompt + retrieved context is reused across calls (and it usually is), caching is non-negotiable. See the full breakdown in the Claude rate card.
What about latency?
Latency was not the focus of this piece, but it matters in production. On the workloads above, median first-token latency was: GPT-5 420ms, Claude Sonnet 4.6 380ms, Gemini 2.5 Pro 510ms, Gemini 2.5 Flash 180ms. If you are doing real-time voice or chat UX, Flash’s 180ms is in a class of its own. If you are doing background processing, none of this matters.
What about rate limits?
On the workloads above, no vendor hit a rate limit. If you scale past 50M input tokens/day on a single project, you will hit OpenAI and Anthropic’s tier-2 limits first. Google is more generous at the same spend level. If you are at this scale, talk to all three account teams before committing.
Verdict
On raw cost across these four workloads, the order in July 2026 is Gemini < GPT-5 < Claude. Gemini 2.5 Pro is the cheapest flagship by a wide margin. GPT-5-mini and Gemini Flash are the cheap workhorses. Claude is the most expensive but has the best prompt caching and the most consistent structured-output behavior on long reasoning chains.
My recommendation for builders: do not pick one vendor. Use Gemini Pro or Flash as the default, route reasoning-heavy work to Claude Sonnet or GPT-5, and run the math against the AI API cost calculator at your actual volumes. For a deeper dive on Claude’s pricing specifically, see the Claude developer rate card. For agent cost modeling at scale, the next piece is how much it costs to run an AI agent 24/7.