Skip to content
InnovateTechie
Claude API

Claude API Pricing (2026): Every Model's Token Cost

EdithBy Edith11 min read
Share
Claude API pricing compared across Opus 5, Sonnet 5, and Haiku 4.5 models per million tokens

Part ofClaude Models Explained: Opus vs Sonnet vs Haiku

Quick answer

Claude API pricing per million tokens: Opus 5, Sonnet 5 and Haiku 4.5 rates, batch's 50% cut, prompt caching, and worked cost examples.

Claude API pricing is pay-as-you-go by the token, with no monthly fee: Claude Haiku 4.5 costs $1/$5 per million input/output tokens, Claude Sonnet 5 costs $3/$15, and Claude Opus 5 costs $5/$25. Output is billed at 5× input across every model, and batching or prompt caching can cut effective costs by up to 95%.

Rates verified 9 August 2026 against Anthropic's published pricing. Prices change when new models launch — re-check before you budget.

We run this site's content pipeline on the Claude API, so we watch these numbers closely. The good news for anyone budgeting a project: the whole system is per-token and transparent — no seat license, no minimum spend, no surprise tiers. This guide breaks down every model's per-token rate, the three discount levers that matter most, worked cost examples you can copy, and a simple rule for picking a model by budget.

Key takeaway

Claude API pricing is pure pay-as-you-go per token: Haiku 4.5 costs $1/$5, Sonnet 5 costs $3/$15, and Opus 5 costs $5/$25 per million input/output tokens, with batching and prompt caching cutting effective cost by up to 95%.

How Claude API pricing works

Every request bills input and output tokens separately, per million tokens, with output at 5× input. There is no monthly floor — you pay only for what you consume.

Input tokens are your prompt, system message, and any documents; output tokens are everything the model generates. Anthropic publishes the current rates per model, and they change only when a new model launches.

Roughly four characters equal one token, so a 750-word page is about 1,000 tokens. To estimate a bill before you're charged, multiply expected input and output tokens by the model's rate; to track real spend, read the usage object returned in every API response, which reports exact input and output counts per call. That habit — estimate, then reconcile against usage — is how you keep costs from surprising you.

Here is the full table across the current lineup, including both discount columns:

ModelInput / Output (per MTok)Batch (−50%)Cached input read (−90%)
Claude Fable 5$10 / $50$5 / $25$1
Claude Opus 5$5 / $25$2.50 / $12.50$0.50
Claude Opus 4.8 (legacy)$5 / $25$2.50 / $12.50$0.50
Claude Sonnet 5 (standard)$3 / $15$1.50 / $7.50$0.30
Claude Sonnet 5 (intro, through 31 Aug 2026)$2 / $10$1 / $5$0.20
Claude Haiku 4.5$1 / $5$0.50 / $2.50$0.10

Two things stand out. First, across the three mainstream tiers the spread is only 5× — Haiku 4.5 to Opus 5 — so choosing among them is about fit, not affordability; the premium Claude Fable 5 sits above at $10/$50 for the rare task that outruns Opus, stretching the top-to-bottom range to 10×. Second, Opus 5 costs exactly what Opus 4.8, 4.7, and 4.6 cost before it — four consecutive releases at the same rate, so upgrading the Opus line has been free every time. For a deeper tour of what each tier is built for, our Claude models explained guide covers the whole lineup.

The three levers that cut your Claude API cost

Batch processing takes 50% off, cached input reads cost 10% of standard rate, and the 1M context window carries no surcharge. Stacked, they matter far more than the base rates.

LeverDiscountWhen it appliesBest for
Batch API−50% flatAsync jobs, results within 24hNightly and bulk non-interactive work
Prompt caching (read)−90% on cached inputRepeated, stable prefixAgents, chatbots, long system prompts
1M context windowNo surchargeOpus 5, Opus 4.8, Sonnet 5, Sonnet 4.6Whole-codebase and large-document requests

Batch processing takes 50% off every token when you submit jobs asynchronously and accept results within 24 hours. Any pipeline that isn't interactive — nightly summarization, bulk classification, report generation — should default to the batch API. Half price for changing one endpoint is the easiest win available.

Prompt caching is the bigger lever for chat and agent apps. When requests share a long, stable prefix — a system prompt, a codebase snapshot, a document under discussion — prompt caching lets you reuse it. Cache reads cost 10% of the standard input price, a 90% discount, while the one-time cache write costs 1.25× input for a 5-minute cache or 2× for a 1-hour cache. Agents re-send that prefix on every turn, so the saving compounds fast. One detail worth checking on Opus 5: the minimum cacheable prefix drops to 512 tokens, half what Opus 4.8 required, so short prompts you had written off as uncacheable may now qualify with no code change.

The 1M-token context window carries no surcharge. Claude Opus 5, Opus 4.8, and Sonnet 5 support the full million-token context at flat standard rates — a 900K-token request pays the same per-token price as a 9K-token request. You still pay for the tokens you send, so filling a 1M window with Opus costs about $5 in input before output; caching exists precisely so you don't pay that repeatedly for the same material.

Claude API pricing comparison of Opus, Sonnet, and Haiku token costs with batch and cache discounts

Worked Claude API pricing examples

Five representative workloads with the arithmetic done, at list prices with no discounts unless the row says otherwise.

WorkloadModelInputOutputApprox. cost
Summarize a 10K-token docHaiku 4.510,000500$0.013
Review a 50K-token codebaseSonnet 550,0002,000$0.18
Same review on the flagshipOpus 550,0002,000$0.30
900K-token whole-repo requestOpus 5900,0004,000$4.60
Chatbot turn, 20K cached prefixSonnet 51K + 20K cached800$0.021

The pattern to internalize: input dominates on document-heavy tasks, output dominates on generation-heavy ones, and caching flips the math on anything conversational. The chatbot row shows a cached 20K-token prefix costing $0.006 to read instead of $0.06 to reprocess cold — a 90% cut on the largest part of the request. Run those same batches asynchronously and every figure in the table halves again.

One budgeting caveat specific to Opus 5: thinking is on by default, and max_tokens caps thinking plus response text together. A route that never set thinking explicitly will generate more output tokens than the same request did on Opus 4.8, so re-baseline your output estimates rather than carrying them across.

How to pick a Claude model by budget

Ask what a slightly wrong answer costs you. If mistakes are cheap to catch, buy speed and volume. If they compound invisibly, buy reasoning.

  • Tight budget, verifiable outputs — classification, extraction, tagging, routing — use Claude Haiku 4.5 at $1/$5 and batch it. This is the cheapest token pricing on offer, and errors surface immediately.
  • Everyday coding and writing — use Claude Sonnet 5 at $3/$15, against Opus at $5/$25. It delivers most of Opus's coding quality for 60% of the price, and the introductory rate makes it cheaper still through 31 August 2026.
  • Hardest reasoning and large refactors — use Claude Opus 5. Reserve it for tasks where the failure cost justifies the premium.

Our standing rule is start on Sonnet, escalate to Opus only when Sonnet measurably fails, and downgrade to Haiku wherever outputs are mechanically verifiable. The Claude Sonnet vs Opus breakdown has the benchmark data and full cost math behind that call. If you weigh Claude against rival assistants on value rather than sticker rate, our Claude vs ChatGPT comparison shows where each one earns its price. Note that Claude Code — Anthropic's agentic coding tool — bills differently: it needs a paid subscription or API credits, as covered in What is Claude Code?.

Claude API cost breakdown showing how batch processing and prompt caching lower the effective token price

Add-on and tool costs

Server-side tools bill on top of standard token rates. For most projects they're a rounding error; at scale they're the line teams most often forget to forecast.

Add-onPriceNotes
Web search$10 per 1,000 searchesResult-processing tokens billed separately
Code execution1,550 free hours/month per org, then $0.05/hourFree when paired with web search or fetch
Batch processing−50% on all tokensResults returned within 24 hours
Prompt cache write1.25× input (5-min) / 2× (1-hour)One-time write premium before reads
Fast mode (Opus 5)$10 / $50 per MTokClaude API only; research preview

Web search costs $10 per 1,000 searches, with the tokens for processing results billed separately at the model's normal input rate. Code execution includes roughly 1,550 free hours monthly per organization — and is free entirely when paired with web search or web fetch — then $0.05 per hour beyond that. Fast mode on Opus 5 runs the same model at higher output speed for double the token rate, and is a Claude API research preview only, unavailable on Bedrock, Google Cloud, or Microsoft Foundry.

Claude pricing at a glance

Subscriptions and API billing are separate systems — a Pro or Max plan never includes API credits, and API spend never touches your plan.

PlanPrice
Free$0
Pro$20 / month
Maxfrom $100 / month
APIPay per token

For the full breakdown of every plan, see our how much Claude costs guide.

Frequently Asked Questions

Pricing is per million tokens, billed input and output separately. Current rates are Claude Haiku 4.5 at $1/$5, Claude Sonnet 5 at $3/$15, and Claude Opus 5 at $5/$25. Output runs 5× input across every model. There's no monthly fee — you pay only for the tokens you consume.

There's no perpetual free tier, but new API accounts get starter credits to test with — enough to get an API key and make your first call — and code execution includes roughly 1,550 free hours monthly per organization. Beyond those credits it's strictly usage-based, with no monthly minimum. The claude.ai chat app has a separate free plan, but the API itself is pay-per-token.

Claude Haiku 4.5 is cheapest at $1/$5 per million tokens for high-throughput work. Claude Sonnet 5 balances quality and price at $3/$15, and Claude Opus 5 is the flagship at $5/$25. Output is 5× input on all three, so the real spread is only 5× from cheapest to most expensive.

Three levers, best stacked together: use prompt caching (cache reads cost 10% of input, a 90% discount), submit non-urgent work through the Batch API for a flat 50% off, and pick a cheaper model where quality allows. Combining caching and batching can cut effective costs by up to 95%.

No surcharge. Claude Opus 5, Opus 4.8, and Sonnet 5 support the full 1M-token context at flat standard rates — a 900K-token request pays the same per-token price as a 9K-token request. You still pay for every token sent, so large contexts get expensive fast even without a premium.

Cache reads cost 10% of the standard input price — a 90% discount. Cache writes carry a one-time premium: 1.25× the base input rate for a 5-minute cache or 2× for a 1-hour cache. It pays off fastest on repeated, stable context like system prompts and long documents. On Opus 5 the minimum cacheable prefix is 512 tokens, down from 1024 on Opus 4.8.

It depends on usage. The API has no monthly fee and bills per token, so light or programmatic use is often cheaper. Heavy daily interactive use can be cheaper on a flat Claude Pro ($20) or Max ($100–200) plan than paying per token. Match the pricing model to how you actually work.
Edith

Written by

Edith

Writing about Claude and the Anthropic toolkit — models, Claude Code, pricing, features, and fixes, in clear, practical, hands-on guides tested by daily use.

View all posts →