Claude API Pricing 2026: Fable 5.2, Opus 5.5, Sonnet & Haiku
2026 Claude API pricing reference for Fable 5.2, Fable 5.1, Opus 5.5, Sonnet 5.5, and Haiku 5.5 on Anthropic direct vs TokLab, with caching and workload math.
Read as MarkdownBudgeting a Claude integration from headline input prices is a reliable way to miss your monthly forecast by a factor of three. Across Anthropic's 2026 Claude 5.x lineup, output tokens cost exactly five times as much as input tokens, adaptive thinking tokens bill at the output rate, prompt-cache writes carry a 1.25x or 2x multiplier, and Haiku 5.5 jumps fivefold the instant a prompt crosses 100,000 tokens.
On top of those mechanics, where you buy your tokens now matters as much as which tier you pick. Anthropic's direct API sets the official list baseline and offers a 50%-off asynchronous Batch API, while gateways like TokLab expose the same Anthropic Messages contract (POST https://api.toklab.ai/v1/messages) at substantially lower synchronous token rates, sitting 65% below Anthropic's published list across the current Claude 5.x family.
This reference lays out the full 2026 Claude rate card side by side, explains how prompt caching and long-context rules actually bill, and works through four production workloads so you can estimate your real monthly invoice before shipping.
2026 Claude API pricing: Anthropic list vs TokLab live rates
All rates below are in USD per million tokens (MTok) for standard synchronous requests. Anthropic direct figures reflect published list pricing; TokLab figures reflect verified live rates on toklab.ai/pricing. Always confirm live rates in your account before locking an annual budget.
| Model ID | Context / Max Output | Anthropic Direct (In / Out) | TokLab Live (In / Out) | TokLab vs Direct |
|---|---|---|---|---|
claude-fable-5-2 | 1M / 128K | $8.00 / $40.00 | $2.80 / $14.00 | −65% |
claude-fable-5-1 | 1M / 128K | $10.00 / $50.00 | $3.50 / $17.50 | −65% |
claude-opus-5-5 | 1M / 128K | $4.00 / $20.00 | $1.40 / $7.00 | −65% |
claude-sonnet-5-5 | 1M / 128K | $2.00 / $10.00 | $0.70 / $3.50 | −65% |
claude-haiku-5-5 (≤100K prompt) | 200K+ / 128K | $0.10 / $0.50 | $0.035 / $0.175 | −65% |
claude-haiku-5-5 (above 100K prompt) | Long-context tier | $0.50 / $2.50 | $0.175 / $0.875 | −65% |
Three structural details jump out of this table:
- The 5:1 output-to-input ratio is universal. Every single Claude 5.x model prices output tokens at five times its base input rate. A verbose prompt that triggers 4,000 tokens of adaptive thinking plus 1,500 tokens of prose costs the same on the output side as 27,500 uncached input tokens.
- Fable 5.2 undercuts Fable 5.1 by 20%. On TokLab,
claude-fable-5-2lists at $2.80/$14.00 per million tokens versus $3.50/$17.50 forclaude-fable-5-1, giving teams a cheaper default whenever they need Fable-class reasoning. - Opus 5.5 is half the price of Fable 5.2 and twice Sonnet 5.5. That clean 1x → 2x → 4x ladder (
sonnet-5-5→opus-5-5→fable-5-2) makes tiered routing straightforward to model in a spreadsheet.
Picking the right Claude 5.x tier for your workload
Claude Fable 5.2 (claude-fable-5-2) and Fable 5.1 (claude-fable-5-1)
Fable 5.2 is built for long-horizon agentic coding, deep architectural debugging, and dense multi-document synthesis where a failed attempt costs more engineering time than the extra token rate. It runs adaptive thinking by default at high effort across a 1M-token context window and 128K max output. Keep claude-fable-5-1 only for pinned regression baselines or workflows already validated on 5.1; for new deployments, claude-fable-5-2 delivers newer behavior at 20% lower token cost ($2.80/$14.00 on TokLab).
Claude Opus 5.5 (claude-opus-5-5)
Opus 5.5 is the workhorse default for interactive coding agents (including Claude Code), complex RAG synthesis, and multi-step tool calling. At $1.40/$7.00 per million tokens on TokLab ($4/$20 on Anthropic direct), it delivers a 20% price cut over the older Opus 4.7 generation ($5/$25) while handling the vast majority of engineering tasks on the first pass.
Claude Sonnet 5.5 (claude-sonnet-5-5)
Sonnet 5.5 ($0.70/$3.50 on TokLab; $2/$10 direct) sits in the sweet spot for customer-facing SaaS copilots, PR summaries, structured extraction, and high-throughput document review. Before defaulting an entire product to Opus 5.5, run a 50-example eval on Sonnet 5.5. Whenever pass rates match within 1–2%, Sonnet cuts your bill in half immediately.
Claude Haiku 5.5 (claude-haiku-5-5)
At $0.035/$0.175 per million tokens on TokLab ($0.10/$0.50 direct) for prompts up to 100K tokens, Haiku 5.5 is twenty times cheaper than Sonnet 5.5 and forty times cheaper than Opus 5.5. It is the right engine for intent routers, log classification, background conversation summarization, and parallelized subagents that inspect individual files before handing a compact brief to Opus or Fable.
Prompt caching economics: 5-minute vs 1-hour writes
Prompt caching is the single biggest cost lever on Anthropic's Messages API, especially for coding agents, tool-heavy assistants, and multi-turn document Q&A where 70% to 90% of the prompt prefix repeats across turns.
On Anthropic's standard cache multiplier rules:
- 5-minute ephemeral cache write:
1.25xbase input rate (a 25% surcharge on the initial write). - 1-hour ephemeral cache write:
2.0xbase input rate (a 100% surcharge on the initial write). - Cache reads: deeply discounted at
0.10xbase input (90% off) on Haiku 5.5 and earlier Claude 4.x models,0.05x(95% off) on Opus 5.5 and Sonnet 5.5, and as low as0.025x(97.5% off) on Fable 5.1 on Anthropic's direct schedule.
When does paying for a 1-hour cache write beat a 5-minute write? The break-even math is simple. Paying 2.0x instead of 1.25x adds 0.75x upfront. Every time a 5-minute cache expires and forces a fresh write, you pay 1.25x again, versus 0.05x to 0.10x for a cache hit. That means a single avoided cache expiration within the hour already pays for the 1-hour TTL (2.0x + 0.05x = 2.05x versus 1.25x + 1.25x = 2.50x).
Use 5-minute TTL for rapid-fire agent loops where turns arrive every 5–30 seconds. Switch to 1-hour TTL (cache_control: {"type": "ephemeral", "ttl": "1h"}) for interactive user chats, IDE assistants, or periodic webhook workers where requests arrive 6 to 45 minutes apart.
Long-context surcharges and adaptive thinking gotchas
Two billing traps catch teams off guard during their first month at scale:
- Haiku 5.5's 100K cliff applies to the entire request. For
claude-haiku-5-5, prompt length includes both uncached input and cached input (reads and writes). Once total prompt tokens exceed 100,000, the entire request (including output tokens) steps up 5x from $0.10/$0.50 to $0.50/$2.50 on Anthropic direct ($0.035/$0.175 to $0.175/$0.875 on TokLab). Never use Haiku 5.5 to dump 150K-token repositories; either chunk the input below 100K or route directly to Sonnet 5.5. - Adaptive thinking bills at the output rate. Claude 5.x models emit internal thinking tokens inside
max_tokensand charge them at the output token rate. Leavingoutput_config.effortathighormaxon simple classification tasks can triple your output token count without improving accuracy. Dialeffortdown tolowfor deterministic extraction andmediumfor routine coding. - Tokenizer changes matter when migrating from older Claude 4.x models. Anthropic's newer tokenizer used across recent generations can produce roughly 20–30% more tokens for the exact same source text compared to legacy Claude 4.5/4.6 snapshots. Even when headline per-million rates drop (such as moving from Opus 4.7 at $5/$25 to Opus 5.5 at $4/$20 direct or $1.40/$7.00 on TokLab), always replay 50 real production prompts and measure billed tokens per completed task rather than multiplying old token counts by new rates.
Worked cost math across four real production workloads
To translate per-million rates into real dollars, the table below prices four common engineering workloads using standard cache assumptions (90% cache read discount on cached input for conservative budgeting) across Anthropic direct list rates and TokLab live rates.
| Workload | Monthly token volume | Model | Anthropic Direct | TokLab Live | Monthly savings |
|---|---|---|---|---|---|
| 1. Coding agent (1,000 turns/mo, warm cache) | 50M cached in, 10M uncached in, 3M out | claude-opus-5-5 | $120.00 | $42.00 | $78.00 |
| 2. SaaS support copilot (20K chats/mo) | 40M cached in, 20M uncached in, 8M out | claude-sonnet-5-5 | $128.00 | $44.80 | $83.20 |
| 3. High-volume triage (100K docs/mo, ≤100K each) | 80M uncached in, 10M out | claude-haiku-5-5 | $13.00 | $4.55 | $8.45 |
| 4. Deep architecture audits (200 runs/mo) | 20M uncached in, 2M out | claude-fable-5-2 | $240.00 | $84.00 | $156.00 |
Across a realistic mid-sized engineering team running all four workloads together, the combined monthly bill drops from $501.00 on direct list rates to $175.35 on TokLab, using the exact same Anthropic Messages request payloads and model IDs.
Five levers to cut your Claude API bill further
- Lock your prompt prefix order. Put static system instructions, tool schemas, and unchanging reference docs at the very top of every request, and place dynamic timestamps, user IDs, or retrieved snippets at the end. Changing a single character near the top invalidates the entire prompt cache.
- Tune
output_config.effortper endpoint. Do not runhigheffort globally. Uselowfor JSON extraction,mediumfor standard feature edits, and reservehighorxhighfor complex debugging. - Route by verifier, not by habit. Run high-volume classification on
claude-haiku-5-5, everyday generation onclaude-sonnet-5-5, and escalate toclaude-opus-5-5orclaude-fable-5-2only when a schema check, linter, or unit test fails. - Use Anthropic's Batch API for 24-hour offline jobs, or cross-shop GPT-6.2. If you call Anthropic directly for non-urgent overnight evals, the Batch API cuts direct list rates by 50% (making Opus 5.5 $2/$10 direct). For synchronous traffic, TokLab's live rate ($1.40/$7.00 for Opus 5.5) beats even direct Batch pricing with real-time streaming. And for workloads that do not require Claude's specific prose style, benchmark GPT-6.2 Sol ($0.20/$1.00 on TokLab) and GPT-6.2 Astra ($0.80/$4.00 on TokLab) behind the same API key.
- Audit token usage by feature alongside total spend. Pass
metadata.user_idor split API keys per microservice so you can inspect per-feature burn inside your TokLab usage logs and catch runaway retry loops before they burn a week's budget.
Billing edge cases and developer FAQ
Why do my cache-write bills spike even when prompt caching is enabled?
Cache invalidation happens at the very first differing byte in the prefix. Two subtle bugs cause constant cache misses in production agent frameworks: injecting a current UTC timestamp or request UUID into the system prompt, and serializing tool definitions from an unordered map whose key order shifts between deploys. Freeze your system prompt text, sort tool schemas deterministically, and inspect cache_creation_input_tokens versus cache_read_input_tokens in response usage objects. Healthy multi-turn loops should show reads outnumbering writes by at least five to one.
Do server-side tools add charges beyond token rates?
Yes on direct Anthropic billing. When you enable hosted server-side tools such as web search or code execution on Anthropic's direct API, tool invocations can carry separate per-call or container charges in addition to the tokens they return into context. Always check whether a workflow actually needs a hosted server tool or can run a lightweight local/client tool that only bills standard message tokens.
Is Claude Opus 5.5 always 20% cheaper than Opus 4.7 in practice?
On headline rates, yes: Opus 5.5 drops from $5/$25 to $4/$20 on Anthropic direct (and $1.40/$7.00 on TokLab). In real production traffic, however, task cost also depends on how many adaptive thinking tokens the model emits and how many retries a workflow needs. Measure cost per completed job across 50 representative prompts rather than assuming a flat 20% invoice drop on day one.
Is there a free Claude API tier?
Anthropic's standard API is usage-based rather than a permanent free tier, though new accounts occasionally receive limited promotional credits with expiry dates. On TokLab, balances are prepaid pay-as-you-go, never expire, and failed requests are never billed.
Sources
- Anthropic API Pricing Documentation — Official input, output, prompt caching (5m/1h writes and reads), Batch API, and Haiku 5.5 100K threshold rules.
- TokLab Pricing and Model Catalog — Live per-million-token rates for
claude-fable-5-2,claude-fable-5-1,claude-opus-5-5,claude-sonnet-5-5, andclaude-haiku-5-5. - TokLab Claude Fable 5.2 Documentation — Anthropic Messages contract, adaptive thinking effort levels, and billing dimensions on
api.toklab.ai. - TokLab GPT-6.2 Sol and GPT-6.2 Astra — Cross-vendor pricing comparison on the same TokLab API key.


