Claude API Pricing in 2026: How Much Does Anthropic Cost?
Complete breakdown of Claude Opus 4.7 and Claude Haiku 4.5 API pricing, including Anthropic's aggressive prompt caching that can cut bills by 90%.
๐ Prices on this page are live โ pulled from the site's dataset at build time, last verified 2026-09-13. Worked examples further down use fixed illustrative rates (stated inline) so the arithmetic stays checkable; the reference tables are always current.
Anthropic's Claude family has the most complex but also the most rewarding pricing structure in the LLM market. The headline numbers โ $5.00 input / $25.00 output per 1M tokens for Claude Opus 4.7 โ make Claude look expensive next to GPT-5 mini or DeepSeek V3.2. But that's the wrong comparison.
The right question is: what does Claude actually cost when you use it correctly? And the answer can be 10ร lower than the headline rates if your workload is cache-friendly.
Here's how Claude's 2026 pricing works and where the leverage lives.
Claude's 2026 lineup
| Model | Input ($/1M) | Output ($/1M) | Cached read | Context | Strengths |
|---|---|---|---|---|---|
| Claude Opus 4.7 | $5.00 | $25.00 | $0.50 | 1M | Deep reasoning, coding, long context |
| Claude Haiku 4.5 | $1.00 | $5.00 | $0.10 | 200K | Fast everyday tasks |
Note the cache read prices โ these are the magic numbers.
Anthropic's caching is different (and better)
Most providers (OpenAI, Gemini) implement caching as automatic prefix matching: if you happen to send the same prefix within a few minutes, it gets discounted. You have limited control.
Anthropic implemented caching as an explicit, controllable system with two prices:
- Cache write: 1.25ร standard input rate ($6.25/1M for Opus, $1.25/1M for Haiku)
- Cache read: 0.10ร standard input rate ($0.50/1M for Opus, $0.10/1M for Haiku)
That cache read price is the key. A cached read on Claude Opus 4.7 ($0.50/1M) now costs less than standard input on Claude Haiku 4.5 ($1.00/1M). Translated: if you reuse cached prompts heavily, the frontier model is priced below the small one.
How it works in practice
You explicitly mark portions of your prompt as cacheable:
messages = [
{
"role": "system",
"content": [
{
"type": "text",
"text": LONG_SYSTEM_PROMPT,
"cache_control": {"type": "ephemeral"}
}
]
},
{"role": "user", "content": "..."}
]
The cache lasts ~5 minutes (refreshed on each hit). First call writes the cache (1.25ร cost). Subsequent calls within the window read from cache (0.10ร cost).
When this matters: a worked example
The arithmetic below uses illustrative round rates โ $5.00 input / $25.00 output per 1M, with cache write at 1.25ร input and cache read at 0.10ร input. Real current rates are in the table above (they are pulled live); this example is fixed so the numbers stay checkable.
Suppose you're building a code review agent that ships a 5,000-token system prompt + tool spec on every call. You make 1,000 calls / day, averaging 1,000 output tokens.
Without caching:
- Input: 1,000 ร 5,000 / 1M ร $5.00 = $25.00/day
- Output: 1,000 ร 1,000 / 1M ร $25.00 = $25.00/day
- Total: $50.00/day = $1,500/month
With caching (95% hit rate after warmup, cache write $6.25/1M, cache read $0.50/1M):
- 5% cache writes: 1,000 ร 5,000 ร 0.05 / 1M ร $6.25 = $1.56/day
- 95% cache reads: 1,000 ร 5,000 ร 0.95 / 1M ร $0.50 = $2.38/day
- Output unchanged: $25.00/day
- Total: $28.94/day = $868/month
Savings: ~$632/month, 42%.
The 42% is the part worth remembering โ it barely moves when prices change, because it is set by your input/output ratio and hit rate, not by the absolute rate. Plug your own numbers into the calculator for current pricing.
The savings are dramatic but bounded by output cost, which doesn't get cached. For input-heavy workloads (RAG, document analysis), the savings are even larger.
Batch API: 50% off, simpler
Anthropic also offers a Batch API at standard 50% off:
| Model | Batch input / output per 1M |
|---|---|
| Claude Opus 4.7 | $2.50/$12.50 |
| Claude Haiku 4.5 | $0.50/$2.50 |
Same model, same quality, half the price โ but 24-hour turnaround. The trade-off is identical to OpenAI's Batch API: only useful for non-realtime workloads.
When Claude is worth it
Claude's pricing premium over GPT-5 mini ($0.25/$2.00) or Haiku 4.5 ($1.00/$5.00) is real. Here's when it's worth it:
1. Long context (>500K tokens)
Claude Opus 4.7's 1M token context is the largest among major frontier models, with cleaner long-context performance than alternatives. If you're doing book-length analysis or whole-codebase review, the alternatives don't really compete.
2. Extended thinking on hard problems
Claude's extended thinking mode (where you give the model thinking budget) consistently outperforms competitors on multi-step reasoning, complex code refactors, and dense legal/medical analysis. The output cost is high โ but for tasks where one good answer beats five mediocre ones, the math works.
3. Tool use reliability
Claude's tool-use behavior is exceptionally consistent โ fewer hallucinated function calls, better adherence to schemas. For agent loops where errors compound, this matters.
4. Coding tasks
Anthropic has consistently led on coding benchmarks since Claude 3.5. If you're building a coding assistant, Claude is rarely the wrong call โ and with caching on a stable system prompt, the cost gap to alternatives shrinks substantially.
When Haiku 4.5 wins
For high-volume everyday tasks, Claude Haiku 4.5 is one of the best price/performance models in the market in 2026:
- $1.00 input / $5.00 output per 1M tokens (cheaper than GPT-5 mini's $0.25/$2.00? No โ but stronger reasoning per dollar)
- $0.10 cached input โ among the most aggressive cached rates of any frontier model
- Same 200K context as the small competition
- Vision support included
- Often beats GPT-5 mini on tasks requiring nuance
Cost comparison: Claude vs alternatives
For a typical 1,000 input + 500 output token call:
| Model | Single-call cost | Notes |
|---|---|---|
| GPT-5 mini | $0.00125 | Cheapest competitive small |
| Gemini 3 Flash | $0.00200 | Good multimodal alternative |
| Claude Haiku 4.5 | $0.00350 | Pricier than the small alternatives โ caching is what makes up for it |
| GPT-5.6 | $0.01400 | OpenAI flagship |
| Gemini 3.1 Pro | $0.00800 | Long-context option |
| Claude Opus 4.7 | $0.01750 | Frontier reasoning tier |
Use the calculator to plug in your actual token mix and toggle caching to see how the numbers change.
Practical optimization checklist
If you're running production Claude workloads:
- Mark stable prefixes as cacheable with
cache_controlโ this is non-negotiable for production - Profile your cache hit rate โ if it's <70%, your prompts are probably mutating too much
- Use Haiku for first-pass classification, escalate to Opus only when needed (a "router" pattern)
- Batch any non-realtime work โ analysis pipelines, data enrichment, content generation queues
- Bound output with stop sequences and max_tokens โ output is 5ร more expensive than input, and ungenerated tokens are saved tokens
Bottom line
Claude looks expensive on the pricing page and is expensive if you use it naively.
With caching enabled and prompts structured for cache hits, Claude Opus 4.7 can cost less per call than GPT-5.5 โ and Haiku 4.5 with caching beats almost everything in its tier on cost-per-quality.
The leverage is real but it requires you to architect for it. If you're not measuring your cache hit rate, you're leaving 50%+ on the table.
Plug your workload into the calculator โ toggle the caching slider and see the gap.
Pricing reflects Anthropic's published rates as of May 2026. Verify with Anthropic's pricing page before committing budget.