Anthropic Claude API Pricing Guide: Opus 4.8, Sonnet, & Haiku

Complete guide to Claude API pricing in 2026. Review pricing for Claude Opus 5, Claude Sonnet 5, Claude Fable 5.1, Claude Haiku 4.5, the legacy models, and prompt caching discounts. Sourced from official docs.

By benchr Editorial Team · · Figures verified against official sources, June 6, 2026 · View changelog

Anthropic Claude API Pricing Guide: Opus 4.8, Sonnet, & Haiku: warm clay layers and branching decision routes.
Benchr editorial field plate Anthropic Claude API Pricing Guide Layered reasoning · Anthropic family
AnthropicAnthropic Claude API Pricing Guide: Opus 4.8, Sonnet, & Haiku is framed by warm clay layers and branching decision routes.

Anthropic's Claude lineup is renowned for its high quality in coding, reasoning, and writing. The pricing structure is segmented cleanly across four model families, from Haiku to Fable. Below is the live pricing table for the Anthropic Claude API family, sourced dynamically from our index.

Model ID Input / 1M Output / 1M Cached Input / 1M Max Tokens
claude-fable-5-1$10.00$50.00$0.2501,000,000
claude-opus-5$5.00$25.00$0.5001,000,000
claude-sonnet-5$2.00$10.00$0.2001,000,000
claude-haiku-4-5$1.00$5.00$0.100200,000
claude-opus-4-8 (legacy)$5.00$25.00$0.5001,000,000
claude-opus-4-7 (legacy)$5.00$25.00$0.5001,000,000
claude-sonnet-4-6 (legacy)$3.00$15.00$0.3001,000,000

The first four rows are Anthropic's current lineup. The rows marked legacy still answer API calls but have successors: Claude Opus 5 replaced Claude Opus 4.8 at the same $5 / $25; Claude Sonnet 5 replaced Claude Sonnet 4.6, cutting Claude Sonnet 4.6's $3 / $15 to $2 / $10; and Claude Fable 5.1 replaced Claude Fable 5 at the same $10 / $50 base price, with Claude Fable 5.1's cache reads down from $1.00 to $0.25 per 1M. The Opus 4.8 and Sonnet 4.6 prices this guide published on June 6, 2026 haven't changed. What changed is which model a new project should start on.

How much prompt caching can save

Anthropic was a pioneer in offering Prompt Caching on public APIs. If you have long, static system instructions, documents, or context history, you can tag them to be cached. This yields significant savings:

  • 90% Off Input Cost (97.5% on Fable 5.1): Cached input reads cost only 10% of the standard input rate (e.g. $0.50/1M for Claude Opus 5 instead of $5.00/1M). On Claude Fable 5.1 the discount goes deeper: cache reads cost 2.5% of base input, $0.25/1M against Claude Fable 5.1's $10.00/1M.
  • Fast Retrieval: Caching drastically reduces first-token latency (time-to-first-token) for long documents, which is ideal for real-time applications.
  • Simple API Integration: Simply add "cache_control": {"type": "ephemeral"} to block headers in your messages list.

For cross-provider comparison, read the global AI Model Pricing Comparison, or calculate custom usage via the Cost Calculator.

The Claude cost lever: cached context

Claude pricing is easiest to misunderstand when you look only at standard input. The practical question is how much of your prompt is repeated. Long system prompts, policy manuals, codebase summaries, and retrieval packets can become dramatically cheaper once cached.

For agents, measure cold-start calls separately from warm-cache calls. A model that looks expensive on the first request can become competitive when most of the repeated context is billed at the cached rate. If every request is unique, use the standard input and output rates instead.

Choosing between Haiku, Sonnet, and Opus

Use Haiku when the task is narrow and verifiable: routing, extraction, tagging, short summaries, and first-pass support triage. Use Sonnet when the task needs stronger writing, coding, or reasoning but still has a human or automated check. Use Opus when failure is expensive enough that a higher success rate pays for itself.

The cleanest architecture is tiered: Haiku tries the easy work, Sonnet handles the default path, and Opus receives only the difficult or high-risk calls. That structure usually beats sending every request to one model, because it protects quality without paying flagship prices for trivial calls.

Two notes on the current lineup change that math. Sonnet 5 costs less than the Sonnet 4.6 it replaced, so the default path got cheaper without giving up Anthropic's published coding figure (SWE-bench Verified 89.4 for Sonnet 5 against 79.6 for Sonnet 4.6). And Anthropic's own advice is to start with Opus 5 for most workloads if you're unsure, so a tiered design that treats Opus as a rare escalation is benchr's cost-first choice, not Anthropic's default. Above Opus sits Fable 5.1 at $10 / $50, which Anthropic points at demanding reasoning and long-horizon agentic work; it returns HTTP 400 on a forced tool_choice, so check your agent code before routing to it.

Claude's economics are especially sensitive to document workflows. If users repeatedly ask questions over the same policy, contract, or codebase, cache-aware design can make a stronger model affordable. If every request brings unrelated context, the same model may need stricter routing to stay within budget.

For procurement, document why a request goes to each Claude tier. That one note makes future cost reviews easier: if a call goes to Opus, there should be a measurable reason such as lower review burden, fewer failed tool calls, or better long-document consistency.

Keep those routing decisions visible in product analytics. When a feature becomes expensive, you want to know whether the cause is more users, longer prompts, more failed attempts, or too many calls being sent to Opus. Without that split, optimization turns into guesswork.

Frequently asked

How much does Claude 3.5 Sonnet cost vs Claude Sonnet 4.6?

Claude Sonnet 4.6 costs $3.00 per million input tokens and $15.00 per million output tokens. Compare that rate with the exact Claude 3.5 Sonnet snapshot in your configuration, then test request compatibility and output quality before migrating. Sonnet 4.6 is now a legacy model; its successor, Claude Sonnet 5, costs $2.00 per million input tokens and $10.00 per million output tokens, so compare against that rate if you're migrating today.

How does prompt caching work on the Claude API?

Anthropic Claude supports prompt caching on all models. By adding a cache breakpoint to your system prompt or messages list, subsequent calls that hit the cache pay only 10% of the normal input token cost (a 90% discount). On Claude Fable 5.1, cache reads cost 2.5% of base input instead.

Does Anthropic support Batch pricing?

Yes. Anthropic supports Message Batches via /v1/messages/batches. This provides a flat 50% discount on input and output tokens for asynchronous jobs completing within 24 hours, matching OpenAI's batch discount.

Changelog

  • — Added Anthropic's current lineup to the price table and short answer: Claude Opus 5 ($5/$25), Claude Sonnet 5 ($2/$10) and Claude Fable 5.1 ($10/$50, with $0.25 cache reads). Marked Opus 4.8, Opus 4.7 and Sonnet 4.6 as legacy with their June prices unchanged; added the Fable 5.1 cache rate and Anthropic's advice to start with Opus 5.
  • — Published. Opus 4.8, Sonnet 4.6, and Haiku 4.5 prices verified against docs.anthropic.com.

Sources