Skip to content
InnovateTechie
Claude API

Claude API Pricing: Every Model Token Cost Explained

InnovateTechieBy InnovateTechie10 min read
Share
Claude API Pricing: Every Model Token Cost Explained

Part ofClaude Models Explained: Opus vs Sonnet vs Haiku

Claude API pricing per million tokens: Opus 4.8, Sonnet and Haiku 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 4.6 costs $3/$15, and Claude Opus 4.8 costs $5/$25. Output is billed at 5x input across every model, and batching or prompt caching can cut effective costs by up to 95%.

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 Claude API pricing 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.

How Claude API pricing works

Every request bills two token streams separately: input tokens (your prompt, system message, and any documents) and output tokens (everything the model generates). Both are priced per million tokens — abbreviated MTok — and output always costs 5x input on current models. There is no monthly floor; you pay only for what you consume, which is what makes Anthropic API pricing predictable to forecast. 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 Claude API cost from surprising you.

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

ModelInput / Output (per MTok)Batch (−50%)Cached input read (−90%)
Claude Opus 4.8$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 Aug 31)$2 / $10$1 / $5$0.20
Claude Sonnet 4.6$3 / $15$1.50 / $7.50$0.30
Claude Haiku 4.5$1 / $5$0.50 / $2.50$0.10

Two things stand out. First, the spread between the cheapest and most expensive model is only 5x, so model choice is about fit, not affordability. Second, Claude Sonnet 5 ships with an introductory rate of $2/$10 per million tokens through August 31, after which it settles to the standard $3/$15 — the same as Claude Sonnet 4.6. 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

Base rates matter less than the discounts for any real workload — they are only half the Claude API pricing story. Three levers do the heavy lifting, and stacking them is where the savings compound.

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 4.8, Opus 4.7, 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 in Claude API pricing.

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.25x input for a 5-minute cache or 2x for a 1-hour cache. Agents re-send that prefix on every turn, so caching routinely cuts effective input cost by 60–80% in our own logs.

The 1M-token context window carries no surcharge. Claude Opus 4.8, Claude Opus 4.7, and Claude 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 $4.50 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

Rates in the abstract are hard to feel. Here are five representative workloads with the arithmetic done, so you can anchor your own estimates. Each uses list prices with no discounts applied unless the row says otherwise.

WorkloadModelInputOutputApprox. cost
Summarize a 10K-token docHaiku 4.510,000500$0.013
Review a 50K-token codebaseSonnet 4.650,0002,000$0.18
Same review on the flagshipOpus 4.850,0002,000$0.30
900K-token whole-repo requestOpus 4.8900,0004,000$4.60
Chatbot turn, 20K cached prefixSonnet 4.61K + 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 Claude API pricing figure in the table halves again.

How to pick a Claude model by budget

Claude API pricing rewards matching the model to the job, and the decision reduces to one question: what does a slightly wrong answer cost 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 Claude token pricing on offer, and errors surface immediately.
  • Everyday coding and writing — use Claude Sonnet 5 (or 4.6). It delivers most of Opus's coding quality at roughly 40% of the price, and the introductory rate makes it cheaper still.
  • Hardest reasoning and large refactors — use Claude Opus 4.8, which leads SWE-bench Pro at 69.2%. 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

Beyond text generation, a few server-side tools carry their own Claude API price per token or per use. These sit outside standard token rates and are billed on top of them.

Add-onPriceNotes
Web search$10 per 1,000 searchesResult-processing tokens billed separately
Code execution50 free hours/day 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.25x input (5-min) / 2x (1-hour)One-time write premium before reads

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 50 free hours daily per organization — and is free entirely when paired with web search or web fetch — then $0.05 per hour beyond that. For most projects these add-ons are a rounding error next to token spend, but they matter at scale, and they are the part of Claude API pricing teams most often forget to forecast.

Claude pricing at a glance

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

Claude API pricing is per million tokens, billed input and output separately. Current rates are Claude Haiku 4.5 at $1/$5, Claude Sonnet 4.6 at $3/$15, and Claude Opus 4.8 at $5/$25. Output runs 5x 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](/claude-api-getting-started) — and code execution includes 50 free hours daily 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 4.6 balances quality and price at $3/$15, and Claude Opus 4.8 is the flagship at $5/$25. Output is 5x input on all three, so the real spread is only 5x 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 4.8, Claude Opus 4.7, and Claude 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.25x the base input rate for a 5-minute cache or 2x for a 1-hour cache. It pays off fastest on repeated, stable context like system prompts and long documents.

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.
InnovateTechie

Written by

InnovateTechie

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 →