Guilds AI / Blog

,

Claude API Pricing: Token Costs, Caching and Examples

Illustrative laptop dashboard representing Claude API token costs, prompt caching and code examples.

Claude API pricing starts at $0.10 per million input tokens and $0.50 per million output tokens for Haiku 5.5 requests with prompts of up to 100,000 tokens. Sonnet 5.5 costs $2 for input and $10 for output, Opus 5.5 costs $4 and $20, and Fable 5.2 costs $8 and $40, respectively. These are standard first-party API rates in US dollars, checked December 4, 2026. Your actual bill depends on token counts, cache usage, tools and the execution mode. To compare Claude’s rates with other model families, see our OpenAI API alternatives guide. Our Claude Code vs Claude Chat guide explains the differences between subscription access, API billing and repository work. For subscription overages rather than direct API billing, see our Claude Code credits guide. For a comparison of Claude rates with other providers and workload-based calculations, see how much AI tokens cost.

Claude API pricing per million tokens

Anthropic meters the input processed and output generated by each model. A million tokens is the billing unit, not the minimum purchase. Prompt caching has its own rates. The following figures are from Anthropic’s current pricing documentation, not an estimate derived from a Claude consumer subscription.

ModelInput ($/1M)Output ($/1M)5-minute cache write ($/1M)1-hour cache write ($/1M)Cache read ($/1M)
Fable 5.284010160.20
Opus 5.5420580.20
Sonnet 5.52102.5040.10
Haiku 5.5 (up to 100K prompt tokens)0.100.500.1250.200.01
Haiku 5.5 (over 100K prompt tokens)0.502.500.62510.05

Older applications may still use different models. The listed standard input/output rates per million tokens include Sonnet 5 at $2/$10, Sonnet 4.6 at $3/$15, Haiku 4.5 at $1/$5 and Opus 5 at $5/$25. Check the exact model ID and retirement schedule rather than assuming a name such as Sonnet identifies a single price. Some specialized models have restricted availability.

For API fundamentals, see our AI API guide. If you are setting up your first account, our Claude API key guide explains workspace and credential setup.

Claude Haiku API pricing and long prompts

Haiku 5.5 has two price bands. A request whose total prompt exceeds 100,000 tokens moves to the higher rates for the request, not just the tokens above the threshold. Input includes cached reads and writes when determining the band. Output and cache prices also follow that band.

For example, an uncached request with 90,000 input tokens and 1,000 output tokens costs $0.0095. A request with 110,000 input tokens and 1,000 output tokens costs $0.0575. The difference is much larger than the increase in prompt length because the second request enters the higher band. The earlier request retains its original rate.

Fable 5.2, Opus 5.5 and Sonnet 5.5 do not have this Haiku-specific price threshold; their standard per-token rates apply across their supported context windows. Sending more tokens still increases the total cost.

How to calculate Claude API costs

Multiply the number of uncached input tokens by the input price per million, multiply the output count by the output price per million, add the two results and divide by one million. Add separate cache and tool charges if applicable. Reasoning and tool activity can affect the number of billable tokens, so the visible length of a response is not always a complete measure.

ModelOne request: 2,000 input + 500 output tokens10,000 identical requests
Haiku 5.5 (lower band)$0.00045$4.50
Sonnet 5.5$0.009$90
Opus 5.5$0.018$180
Fable 5.2$0.036$360

These examples exclude tax, tools, caching and retries. For Sonnet 5.5, the input component is 2,000 × $2 ÷ 1,000,000 = $0.004 and the output component is 500 × $10 ÷ 1,000,000 = $0.005. At 10,000 requests the sum is $90.

A lower price per token does not necessarily mean a lower price per completed task. Anthropic notes that newer tokenizers can count more tokens for the same source text. Count the prompt using the intended model’s token-counting endpoint, then reconcile estimates against the response usage fields. For an agent, include repeated calls, tool results and generated reasoning in the recorded total.

Prompt caching and Batch API discounts

Prompt caching can help when many requests begin with the same large instructions or document. For a Sonnet 5.5 example, suppose each of 20 requests uses a reusable 50,000-token prefix and 1,000 uncached input tokens, with 500 output tokens per request. Assume one five-minute cache write and 19 successful cache hits within its lifetime.

Cost componentWithout cachingWith caching
Reusable prefix$2.00$0.125 write + $0.095 reads
Other input$0.04$0.04
Output$0.10$0.10
Total$2.14$0.36

The calculated saving is $1.78, approximately 83.2% for this workload. Actual results depend on prefix eligibility, expiration, model, and how frequently requests reuse the cache. A write can cost more than ordinary input; a single request that never reads its cached prefix may not save money. Sonnet 5.5 and Opus 5.5 cache reads cost 5% of their standard input price, while Fable 5.2 cache reads cost 2.5%. Haiku’s cache read cost is 10% of the applicable input rate.

For offline work, the Batch API reduces standard input and output token charges by half. The 10,000-request Sonnet example above would cost $45 at batch rates, assuming it qualifies and no other fees apply. Use batch processing for tasks such as offline classification or document evaluation, not when an interactive user needs an immediate answer. Eligible batch and caching modifiers can be combined; fast mode cannot be combined with batch.

Extra charges and billing differences

A model’s token rates are not the complete price of an agent or application. Anthropic’s current pricing documentation lists the following additional charges and modifiers for relevant first-party services.

FeatureAdditional charge or adjustment
Web search$10 per 1,000 searches, plus token usage
Managed Agents$0.08 per hour of active session runtime, plus tokens
US-only inference1.1× applicable token rates for supported models
Fast mode2× standard token rates for Fable 5.2 and Opus 5.5

For instance, 2,000 web searches add $20 before accounting for the tokens required to process results. A two-hour Managed Agents session adds $0.16 in runtime charges before token or search costs. Managed Agents does not receive the Batch API discount. Partner-operated services may have separate pricing and marketplace billing rules.

A Claude subscription is different from direct API billing. Some eligible Max, Ultra and Team subscriptions include API-credit benefits under specific terms, but ordinary conversational usage allowances are not unlimited developer API access. Confirm whether an API credit applies to your organization and workload. Our Claude Code API key and billing guide explains why authentication matters when using Claude Code.

How to reduce Claude API spending

Begin with a representative workload and a spending limit. Try a less expensive model on deterministic classification or extraction, then route difficult cases to a stronger model only if tests justify the extra spend. Keep repeated instructions stable to improve cache reuse. Limit response length where the task allows it, and include realistic reasoning and tool usage in your budget.

Review usage by workspace, model and feature. Monitor unexpectedly high requests and control automated retries. Check billing and auto-recharge settings before enabling an unattended agent. Restrict credentials to the intended project and apply the controls in our AI API security guide. DataCamp’s API setup guide and Helicone’s pricing calculator also illustrate why budget controls and token estimates matter. Use current official rates rather than copying older third-party price tables.

Frequently asked questions

Is the Claude API free? API usage is normally metered. Eligibility for trial or subscription-linked credits depends on account terms. Free access to the conversational Claude app does not establish free API usage.

How much does one million Claude API tokens cost? It depends on the model and whether those tokens are input, output or cached. One million uncached Sonnet 5.5 input tokens cost $2; one million output tokens cost $10 at standard rates.

What is the cheapest Claude API model? Haiku 5.5 has the lowest standard rates among the current general-purpose lineup shown here, starting at $0.10 input and $0.50 output per million for prompts within its lower band.

Does prompt caching reduce output cost? No. Cache prices apply to eligible input tokens. Batch processing can reduce both standard input and output token charges.

How often do prices change? There is no fixed schedule. Verify current rates, model IDs and account eligibility before estimating a production budget.