Provider pricing hub
Claude API Pricing (July 2026)
The Claude API costs $5/$25 per million input/output tokens for Claude Opus 4.8, $3/$15 for Sonnet 5 ($2/$10 intro through August 31, 2026), $1/$5 for Haiku 4.5, and $10/$50 for the Mythos-class Claude Fable 5. Prompt caching cuts input costs up to 90%; the Batch API halves everything.
Anthropic's pricing is the most predictable of the major providers: every workhorse tier keeps a 5x output-to-input ratio, and Opus pricing has been unchanged since Opus 4.5. The table below lists every Anthropic model in BenchLM's pricing registry — synced automatically from Anthropic's official model pages and launch announcements — with cached-input and Batch API rates alongside the headline numbers.
How these models actually perform for the money is a different question: see the Claude model rankings, price-vs-performance view, and the Claude pricing deep divefor the "is the premium worth it?" analysis.
Every Claude API price per 1M tokens
| Model | Input $/M | Cached input $/M | Output $/M | Batch input $/M | Batch output $/M | Context |
|---|---|---|---|---|---|---|
| Claude 3 Opus | $15 | $1.5 | $75 | $7.5 | $37.5 | 200K |
| Claude 4.1 Opus | $15 | $1.5 | $75 | $7.5 | $37.5 | 200K |
| Claude Fable 5 | $10 | $1 | $50 | $5 | $25 | 1M+ |
| Claude Mythos 5 | $10 | $1 | $50 | $5 | $25 | 1M+ |
| Claude Opus 4.5 | $5 | $0.5 | $25 | $2.5 | $12.5 | 200K |
| Claude Opus 4.6 | $5 | $0.5 | $25 | $2.5 | $12.5 | 1M |
| Claude Opus 4.7 | $5 | $0.5 | $25 | $2.5 | $12.5 | 1M |
| Claude Opus 4.7 (Adaptive) | $5 | $0.5 | $25 | $2.5 | $12.5 | 1M |
| Claude Opus 4.8 | $5 | $0.5 | $25 | $2.5 | $12.5 | 1M |
| Claude 3.5 Sonnet | $3 | $0.3 | $15 | $1.5 | $7.5 | 200K |
| Claude 4 Sonnet | $3 | $0.3 | $15 | $1.5 | $7.5 | 200K |
| Claude Sonnet 4.5 | $3 | $0.3 | $15 | $1.5 | $7.5 | 200K |
| Claude Sonnet 4.6 | $3 | $0.3 | $15 | $1.5 | $7.5 | 200K |
| Claude Sonnet 5 | $2 | $0.2 | $10 | $1 | $5 | 1M |
| Claude Haiku 4.5 | $1 | $0.1 | $5 | $0.5 | $2.5 | 200K |
| Claude 3 Haiku | $0.25 | $0.025 | $1.25 | $0.125 | $0.625 | 200K |
Cached input shown at Anthropic's documented 10% cache-read rate where no explicit price is listed (cache writes bill at 1.25x). Batch columns apply Anthropic's flat 50% Batch API discount. Long-context and regional (US-only 1.1x) surcharges are not included.
Estimate your monthly Claude API bill
| Model | Est. monthly cost |
|---|---|
| Claude 3 Opus | $300 |
| Claude 4.1 Opus | $300 |
| Claude Fable 5 | $200 |
| Claude Mythos 5 | $200 |
| Claude Opus 4.5 | $100 |
| Claude Opus 4.6 | $100 |
| Claude Opus 4.7 | $100 |
| Claude Opus 4.7 (Adaptive) | $100 |
Estimates use Claude's standard per-token rates from the table above. For task-level presets and cross-provider comparison, use the full AI cost calculator.
Cache and batch savings: the two levers that matter
Before comparing tiers, turn on the discounts. Prompt caching bills cache reads at roughly 10% of the standard input rate — on Claude Fable 5 Anthropic documents a 90% input-token discount explicitly. If your application repeats a system prompt, tool definitions, or a document prefix across requests, the cached share of your input bill drops by an order of magnitude. Cache writes cost 1.25x standard input, so caching pays for itself after the first reuse.
Batch processing takes a flat 50% off both input and output for asynchronous workloads — nightly document runs, bulk classification, evals. The two levers stack: a cached, batched Sonnet 5 workload can land near Haiku list price while keeping Sonnet quality. Model both with the cost calculator.
Claude Code API pricing
Claude Code has no separate API price list — it consumes standard Claude API tokens. When you run Claude Code with an API key, every request bills at the per-token rate of the model it uses: Sonnet 5 at $3/$15, Opus 4.8 at $5/$25, Haiku 4.5 at $1/$5, or Fable 5 at $10/$50 per million input/output tokens.
Two things make agentic coding sessions cheaper than the headline rates suggest. First, Claude Code caches aggressively — long sessions reuse the same repository context, so most input tokens bill at the ~10% cache-read rate. Second, subscription plans (Pro/Max) include Claude Code usage without per-token billing; the API path is for CI, automation, and teams that want usage-based costs. For a typical active coding session, budget a few dollars per hour on Sonnet-class models, several times that on Opus or Fable — and check the calculator with your real token volumes.
Claude vs OpenAI pricing
Flagship-for-flagship, the two providers now mirror each other: Claude Opus 4.8 at $5/$25 sits right next to GPT-5.6 Sol and GPT-5.5 at $5/$30 — Anthropic is slightly cheaper on output. Mid-tier, Sonnet 5 ($3/$15, or $2/$10 intro) runs against GPT-5.6 Terra ($2.50/$15). Budget tier, Haiku 4.5 ($1/$5) faces GPT-5.6 Luna ($1/$6). Above them all, Claude Fable 5 ($10/$50) undercuts GPT-5.5 Pro ($30/$180) by 3–3.6x at the frontier tier.
Prices this close make benchmarks the tiebreaker. See the full OpenAI API pricing table, or the head-to-head Opus 4.8 vs GPT-5.6 Sol comparison on the compare hub.
Which Claude tier should you pay for?
Start at the bottom and escalate on evidence. Haiku 4.5 ($1/$5) clears the bar for classification, routing, extraction, and most summarization. Sonnet 5 ($3/$15) is the production default — coding, reasoning, customer-facing content — and its intro pricing makes the upgrade nearly free through August. Opus 4.8 ($5/$25) earns its 1.67x premium when instruction-following precision or long-context work measurably reduces rework. Fable 5 ($10/$50) is for the slice of work where you have measured that even Opus falls short — it currently holds the top overall score on BenchLM's leaderboard.
A routing strategy beats a single tier: send 60% of traffic to Haiku, 35% to Sonnet, and the last 5% to Opus or Fable, and the blended rate lands 30–40% below running everything on Sonnet.
Claude API pricing FAQ
How much does the Claude API cost?
Claude API pricing runs from $1/$5 per million input/output tokens (Haiku 4.5) through $3/$15 (Sonnet 5) and $5/$25 (Opus 4.8) to $10/$50 (Claude Fable 5). Prompt caching discounts cached input by up to 90% and the Batch API halves both input and output.
What is Anthropic API pricing per million tokens?
Anthropic bills the Claude API per million tokens, with separate input and output rates per model — the full table above lists every current and legacy model. Every current workhorse tier keeps a 5x output-to-input ratio, which makes budgeting simple: know your input cost, multiply by five for output.
How much does the Claude Code API cost?
Claude Code bills standard Claude API token rates for the model it runs — there is no separate Claude Code price sheet. Sessions lean heavily on prompt caching, so effective input costs usually land well below list price. See the Claude Code pricing section above.
Is there a free tier for the Claude API?
Anthropic does not offer a standing free API tier; new accounts typically receive limited trial credits. The cheapest sustained path is Haiku 4.5 at $1/$5 with caching and batch enabled. The Claude.ai consumer app has a free plan, but that is separate from API access.