Claude API Pricing (August 2026)
Last syncedThe Claude API is Anthropic's developer interface for sending messages, images, tools, and documents to Claude from an application. The current self-serve model IDs are claude-fable-5, claude-opus-5, claude-sonnet-5, and claude-haiku-4-5-20251001. The table keeps those current rows ahead of previous models and links every verified rate to Anthropic's first-party price sheet.
For capability per dollar, use the Claude model rankings, price-vs-performance view, or the Claude pricing analysis.
Claude model pricing per 1M tokens
| Model | API model ID | Input $/M | Cached input $/M | Output $/M | Batch input $/M | Batch output $/M | Context | Effective | Price source |
|---|---|---|---|---|---|---|---|---|---|
| Claude Fable 5 | claude-fable-5Current | $10 | $1 | $50 | $5 | $25 | 1M | June 9, 2026 | Claude API pricing |
| Claude Opus 5 | claude-opus-5Current | $5 | $0.5 | $25 | $2.5 | $12.5 | 1M | July 24, 2026 | Claude API pricing |
| Claude Sonnet 5 | claude-sonnet-5Current | $2 | $0.2 | $10 | $1 | $5 | 1M | Through Aug 31, 2026 | Claude API pricing |
| Claude Haiku 4.5 | claude-haiku-4-5-20251001Current | $1 | $0.1 | $5 | $0.5 | $2.5 | 200K | — | Claude API pricing |
| Claude Mythos 5 | claude-mythos-5Limited access | $10 | $1 | $50 | $5 | $25 | 1M | June 9, 2026 | Claude API pricing |
| Claude Opus 4.8 | —Previous | $5 | — | $25 | $2.5 | $12.5 | 1M | — | — |
| Claude Opus 4.7 | —Previous | $5 | — | $25 | $2.5 | $12.5 | 1M | — | — |
| Claude Opus 4.6 | —Previous | $5 | — | $25 | $2.5 | $12.5 | 1M | — | — |
| Claude Opus 4.5 | —Previous | $5 | — | $25 | $2.5 | $12.5 | 200K | — | — |
| Claude Sonnet 4.6 | —Previous | $3 | — | $15 | $1.5 | $7.5 | 200K | — | — |
| Claude Sonnet 4.5 | —Previous | $3 | — | $15 | $1.5 | $7.5 | 200K | — | — |
| Claude Mythos Preview | claude-mythos-previewDeprecated limited access | $25 | — | $125 | $12.5 | $62.5 | — | April 7, 2026 | Anthropic Project Glasswing |
| Claude 3 Opus | —Legacy | $15 | — | $75 | $7.5 | $37.5 | 200K | — | — |
| Claude 4.1 Opus | —Legacy | $15 | — | $75 | $7.5 | $37.5 | 200K | — | — |
| Claude 3.5 Sonnet | —Legacy | $3 | — | $15 | $1.5 | $7.5 | 200K | — | — |
| Claude 4 Sonnet | —Legacy | $3 | — | $15 | $1.5 | $7.5 | 200K | — | — |
| Claude 3 Haiku | —Legacy | $0.25 | — | $1.25 | $0.125 | $0.625 | 200K | — | — |
Current Claude API base rates are shown in USD per million tokens. Cache hits cost 0.1x base input; 5-minute and 1-hour cache writes cost 1.25x and 2x. Batch columns apply Anthropic's 50% discount. US-only inference on Claude 4.6 and later adds 10%; fast-mode rates and tool charges are not included.
Claude API pricing calculator
| Model | Est. monthly cost |
|---|---|
| Claude Fable 5 | $200 |
| Claude Opus 5 | $100 |
| Claude Sonnet 5 | $40 |
| Claude Haiku 4.5 | $20 |
Estimates use Claude's standard per-token rates from the table above. For token-level presets and cross-provider comparison, use the full LLM API pricing calculator.
Claude API quickstart: keys, model IDs, and docs
Start in the Claude Console, create an API key, then send a request to https://api.anthropic.com/v1/messages. Anthropic's official quickstart includes cURL, Python, and TypeScript examples. The API key has no subscription fee; the selected model, token counts, tools, and pricing modifiers determine the bill.
Use claude-opus-5 for the current Opus tier, claude-sonnet-5 for Sonnet, and claude-fable-5 for Fable. Haiku's pinned ID is claude-haiku-4-5-20251001; claude-haiku-4-5 is its convenience alias. Anthropic says dateless IDs from the 4.6 generation onward are pinned snapshots, not pointers that silently move to a later model. The Models API returns the models available to your account.
Claude prompt caching and Batch API pricing
Prompt caching separates writes from reads. A 5-minute cache write costs 1.25x the model's base input rate, a 1-hour write costs 2x, and each cache hit costs 0.1x. On Opus 5 that means $6.25/M for a 5-minute write, $10/M for a 1-hour write, and $0.50/M for reused input. Cache the stable system prompt, tool definitions, or document prefix when the same content will be read again.
Batch processing halves input and output for asynchronous jobs. Anthropic states that the Batch discount stacks with prompt-cache pricing, so a batched Opus 5 cache hit costs $0.25/M and batched output costs $12.50/M. Fast mode does not work with Batch. The calculator above supports cache and Batch together; compare providers with the LLM API pricing calculator.
Claude Code API pricing is separate from Claude plans
Claude Free, Pro, Max, Team, and Enterprise are subscription products. They do not create a shared pool of standard Claude API tokens. API usage is metered through a developer account and billed from input, cached-input, output, and any paid server-side tool usage.
Claude Code can run under an eligible subscription for interactive use or with API credentials for usage-based automation. When Claude Code uses an API key, the selected model's token rates apply. Use the table and calculator for API-key workloads; use the consumer plan page for a seat or subscription decision.
Which Claude API model should you pay for?
Haiku 4.5 ($1/$5) is the low-cost tier for classification, extraction, routing, and short summaries. Sonnet 5 is the faster general-purpose tier at $2/$10 through August 31, then $3/$15. Opus 5($5/$25) is Anthropic's recommended starting point for complex agentic coding and enterprise work. Fable 5 ($10/$50) is the highest-cost self-serve tier for workloads where an evaluation proves the extra capability pays back.
The limit matters: the newest expensive model is not automatically the cheapest system. A routed workload can keep routine traffic on Haiku or Sonnet and escalate only failures to Opus or Fable. Fable loses when its quality gain does not offset a 2x input and output premium over Opus.
Claude vs OpenAI and Gemini API pricing
At the flagship tier, Claude Opus 5 costs $5/$25 per million input/output tokens. That matches GPT-5.6 Sol on input and is cheaper than its $30/M output rate. Sonnet 5's temporary $2/$10 rate undercuts GPT-5.6 Terra at $2/$12 on output, while Gemini 3.1 Pro lists at $2/$12 on prompts up to 200K tokens.
List price does not settle model quality, context behavior, or tokenization. Claude 4.7 and later use a tokenizer that Anthropic says produces about 30% more tokens for the same text, depending on the workload. Compare the full OpenAI and Gemini price tables, then rerun cost math with tokens measured from the model you plan to deploy.
Claude API pricing FAQ
How much does the Claude API cost?
Claude API pricing is $1/$5 per million input/output tokens for Haiku 4.5, $2/$10 for Sonnet 5 through August 31, 2026, $5/$25 for Opus 5, and $10/$50 for Fable 5. Cache hits cost 10% of base input, while Batch requests receive a 50% discount.
What is the Claude API?
The Claude API is Anthropic's developer interface for adding Claude to applications and agents. Developers create a key in the Claude Console and call the Messages API with a model ID such asclaude-opus-5 or claude-sonnet-5. Usage is billed by tokens and paid tools, separately from Claude subscriptions.
What is Claude token pricing per million tokens?
Claude token pricing separates input, cache reads and writes, and output. Standard input/output rates range from Haiku 4.5 at $1/$5 per million tokens to Fable 5 at $10/$50. A cache hit costs one-tenth of base input; 5-minute and 1-hour cache writes cost 1.25x and 2x.
Is Claude API pricing included with Claude Pro or Max?
No. Claude Pro and Max are subscriptions for Claude's consumer and interactive coding surfaces; they do not supply a general pool of Claude API tokens. Requests made with an API key are metered separately at the model rates above. Claude Code can use a subscription or API credentials, depending on how it is configured.
Is there a free Claude API tier?
Anthropic's official API price sheet does not list a standing free production tier. The key itself has no monthly fee, but requests consume paid usage credits. Limited promotional or trial credits may appear for eligible accounts. Claude's free consumer plan is a separate product and does not provide general API access.