Estimate costs for Claude Opus 4.5, Claude Sonnet 4.5, Claude Haiku 4.5, and newer Claude models from Anthropic.
| Model | Input $/1M | Output $/1M | Cache Read $/1M |
|---|---|---|---|
| Claude Opus 4.5 | $5.00 | $25.00 | $0.50 |
| Claude Sonnet 4.5 | $3.00 | $15.00 | $0.30 |
| Claude Haiku 4.5 | $1.00 | $5.00 | $0.10 |
Claude supports prompt caching for system prompts and long context. After the first request, cached tokens cost 90% less (cache read = 10% of full input price). For apps with large, repeated system prompts, this alone can cut total API costs by 50-80%.
A 5-minute cache write costs 1.25× normal input; a 1-hour cache write costs 2×. Cache reads cost 10% of the base input price. Sonnet 4.5, Haiku 4.5, and Opus 4.5 all support the full 1M-token context window at standard per-token rates.
Haiku is 3× cheaper on input and 3× cheaper on output than Sonnet. For straightforward tasks — extraction, classification, summarization — Haiku delivers excellent results. Use Sonnet (or Opus for the hardest problems) when you need complex reasoning, nuanced writing, or coding assistance.
Claude uses a similar tokenization scheme to GPT models — roughly 4 characters or 0.75 words per token. Anthropic recommends their anthropic.tokenizer Python library for exact counts. XML-style tags used in Claude prompts also count as tokens.
All current Claude 3 and 3.5 models support 200,000 token context windows. Claude's long context makes it well-suited for document analysis, but remember — all tokens in context are billed as input on each request.
Anthropic offers a small free tier with rate limits through their API console. After the free tier is exhausted, all usage is billed per token. Claude.ai (the web product) has a separate free plan that doesn't apply to API usage.
In 2026, a common budgeting mistake is treating all prompt tokens as full-price input. For Claude workloads with stable system prompts, policy blocks, tool schemas, or long retrieved context, prompt caching can dramatically change effective cost—but only if your calculator models cache writes and cache reads separately. Before trusting the estimate, verify whether llmcost.xyz lets you split first-request cost from repeated-request cost. If your app reuses the same 20k-token prefix across sessions, the difference between uncached and cache-hit pricing can be the biggest line item in your monthly total.
Prices change often and some figures on this page may be out of date. Confirm the current price on the provider's website before you decide. Company and product names belong to their owners and are used only to identify them; this site is not affiliated with them.