Handbooks  /  LLM API Pricing
AI~10 min readData Reference
Data Reference

LLM API pricing, in one place

Every provider publishes its own pricing page, in its own format, with its own naming scheme — and a search for "GPT pricing" or "Claude pricing" mostly surfaces aggregator blogs that get the model names and numbers wrong. This page pulls current pricing directly from each provider's official docs, normalized into one comparable table.

Direct answer

As of July 21, 2026: Anthropic's cheapest current model is Claude Haiku 4.5 at $1/$5 per million input/output tokens; OpenAI's is gpt-5.4-nano at $0.20/$1.25; Google's is Gemini 2.5 Flash-Lite at $0.10/$0.40. At the flagship tier, Claude Opus 4.8 is $5/$25, gpt-5.6-sol is $5/$30, and Gemini 2.5 Pro is $1.25/$10 (≤200K context). All three providers offer roughly a 50% discount for asynchronous batch processing and up to 90% off for cached, repeated input tokens.

Pricing as of July 21, 2026 — verify against provider docs before budgeting, prices change often
01

Methodology — why this table exists

Researching this page meant running the obvious searches — "Claude API pricing", "OpenAI API pricing per million tokens" — and the results were a mess: aggregator sites citing model names that don't exist, prices attributed to the wrong tier, and numbers contradicting each other across the first page of results. That's not a knock on any one site; it's what happens when pricing changes every few months and nobody re-verifies the scraped table.

Every number on this page was pulled directly from each provider's own current pricing documentation, not a third-party summary. Where a provider's docs give conflicting numbers for the same model (introductory vs. standard pricing, context-length tiers), both are shown with the condition that applies.

Sources
Official provider docs only, no aggregators
Fetched
July 21, 2026
Unit
USD per 1M tokens
Scope
Anthropic, OpenAI, Google — current models
→ Prices change — this page is a snapshot

Every provider here has changed pricing multiple times in the past year. Treat this table as a snapshot dated July 21, 2026, verify against the linked official docs before budgeting a production system, and don't trust a pricing number that doesn't cite where it came from — including this one.

02

Anthropic — Claude API pricing

Cache read pricing is 10% of the base input rate — a cache hit costs a tenth of processing that same content fresh. Cache writes cost more than base input (1.25x for a 5-minute cache, 2x for a 1-hour cache), so caching only pays off once content is actually reused across calls, not on a single-shot prompt. Source: Anthropic's official pricing docs.

ModelInputOutputBatch (in/out)Cache read
Claude Fable 5$10/MTok$50/MTok$5 / $25$1/MTok
Claude Opus 4.8$5/MTok$25/MTok$2.50 / $12.50$0.50/MTok
Claude Sonnet 5 (through Aug 31, 2026)$2/MTok$10/MTok$1 / $5$0.20/MTok
Claude Sonnet 5 (from Sep 1, 2026)$3/MTok$15/MTok$1.50 / $7.50$0.30/MTok
Claude Haiku 4.5$1/MTok$5/MTok$0.50 / $2.50$0.10/MTok
03

OpenAI — API pricing

The Batch API cuts every model's pricing above by 50%, for requests that can tolerate asynchronous processing instead of a live response. The -pro tier (gpt-5.5-pro, and gpt-5.4-pro at the same rate) is a distinct, much more expensive reasoning tier — 6x the input cost and 6x the output cost of the standard flagship. Source: OpenAI's official pricing docs.

ModelInputCached InputOutput
gpt-5.6-sol$5/MTok$0.50/MTok$30/MTok
gpt-5.5-pro$30/MTok$180/MTok
gpt-5.6-terra$2.50/MTok$0.25/MTok$15/MTok
gpt-5.4$2.50/MTok$15/MTok
gpt-5.4-mini$0.75/MTok$0.075/MTok$4.50/MTok
gpt-5.6-luna$1/MTok$0.10/MTok$6/MTok
gpt-5.4-nano$0.20/MTok$0.02/MTok$1.25/MTok
04

Google — Gemini API pricing

Gemini's Pro-tier models step to a higher rate once a request exceeds 200K input tokens — a context-length premium neither Anthropic nor OpenAI applies the same way on their current flagships. Batch processing is 50% off across all models. Gemini 2.5 Flash-Lite (the cheapest row above) is scheduled for retirement on October 16, 2026, after which Gemini 3.1 Flash-Lite becomes the budget floor at $0.25/$1.50.

ModelInputCacheOutput
Gemini 3.1 Pro Preview (≤200K)$2.00/MTok$12.00/MTok
Gemini 3.1 Pro Preview (>200K)$4.00/MTok$18.00/MTok
Gemini 2.5 Pro (≤200K)$1.25/MTok$10.00/MTok
Gemini 3.5 Flash$1.50/MTok$0.15/MTok$9.00/MTok
Gemini 2.5 Flash$0.30/MTok$2.50/MTok
Gemini 3.1 Flash-Lite$0.25/MTok$1.50/MTok
Gemini 2.5 Flash-Lite$0.10/MTok$0.40/MTok
05

Cross-provider tier comparison

Normalizing three different naming schemes into one table by capability tier:

TierAnthropicOpenAIGoogle
Frontier / reasoningClaude Fable 5 — $10/$50gpt-5.5-pro — $30/$180Gemini 3.1 Pro Preview — $2/$12
FlagshipClaude Opus 4.8 — $5/$25gpt-5.6-sol — $5/$30Gemini 2.5 Pro — $1.25/$10
BalancedClaude Sonnet 5 — $2/$10*gpt-5.6-terra — $2.50/$15Gemini 3.5 Flash — $1.50/$9
Fast / budgetClaude Haiku 4.5 — $1/$5gpt-5.4-mini — $0.75/$4.50Gemini 2.5 Flash — $0.30/$2.50
Ultra-budgetgpt-5.4-nano — $0.20/$1.25Gemini 2.5 Flash-Lite — $0.10/$0.40
→ Read prices carefully

*Sonnet 5's $2/$10 is introductory pricing through August 31, 2026, stepping to $3/$15 after. This table exists to make providers comparable — it does not mean the models perform equivalently at each tier; check the evals, not just the price, before picking one.

06

A fully worked cost example

Take a concrete workload: a RAG chatbot serving 10,000 queries/day, averaging 2,000 input tokens (retrieved context + question) and 400 output tokens per query. That's 20M input tokens and 4M output tokens per day. Using Anthropic's published rates (the same math applies to any provider's published rates):

ModelNo cachingWith caching*Savings
Claude Haiku 4.5$40.00/day$26.50/day34% ($4,928/yr)
Claude Sonnet 5$80.00/day$53.00/day34% ($9,855/yr)
Claude Opus 4.8$200.00/day$132.50/day34% ($24,638/yr)
→ *The caching assumption

Assumes 1,500 of each query's 2,000 input tokens are a reused system prompt + retrieved context (cached at 0.1× base input price), with the remaining 500 tokens unique per query. The ~34% savings holds across every tier because it's driven by the fixed cached-token fraction, not the model's price — caching helps proportionally regardless of which model you're running.

07

The trend: capability per dollar, not price per token

It's tempting to say "token prices always fall" — the data doesn't cleanly support that as a straight line. In July 2024, OpenAI's GPT-4o mini launched at $0.15/$0.60 per million tokens, about 60% cheaper than GPT-3.5 Turbo's blended rate a year earlier (~$2/MTok blended, per contemporaneous reporting on the launch). Today's cheapest OpenAI tier, gpt-5.4-nano, is priced at $0.20/$1.25 — higher on input than 2024's GPT-4o mini was.

The more accurate claim is narrower and more useful: capability per dollar has risen sharply, even where the literal cheapest-tier list price hasn't kept falling in a straight line. gpt-5.4-nano in 2026 is a meaningfully more capable model than GPT-4o mini was in 2024, at a price in the same order of magnitude — the honest framing is "similar spend buys much more," not "spend keeps shrinking."

Frequently asked

Quick answers

Which LLM API is cheapest?

At the ultra-budget tier, Google’s Gemini 2.5 Flash-Lite is currently cheapest at $0.10/$0.40 per million input/output tokens, followed by OpenAI’s gpt-5.4-nano at $0.20/$1.25. Anthropic doesn’t currently offer a model in that tier — its cheapest is Claude Haiku 4.5 at $1/$5.

How much does prompt caching actually save?

It depends on what fraction of your input is reused across calls, but cache reads cost 10% of the base input rate on both Anthropic and OpenAI. In the worked example on this page, a 75%-cached-input chatbot workload saw a consistent ~34% total cost reduction across every model tier.

Is the Batch API worth using?

For any workload that doesn’t need a live response — nightly summarization, bulk classification, offline evals — yes: it’s a flat 50% discount on both input and output tokens across all three providers, with no other trade-off besides asynchronous delivery.

Why do third-party pricing pages often show wrong numbers?

Pricing changes every few months across a rapidly expanding set of model names, and most aggregator content is written once and rarely re-verified — several sources checked while researching this page cited model names or prices that didn’t match the providers’ own current documentation.

LLM API Pricing · Vibe Engines · 2026
Finished this one? 0 / 115 Handbooks done

Explore the topic

See this alongside everything else on the same subject — handbooks, system designs, challenges and tools, in one place.