Featured
Launch your own OpenClaw agent in one click
Sponsored placement
SetupClaw: done-for-you OpenClaw for founders & exec teams
Sponsored
One API to scrape, enrich, and extract the internet.
Sponsored placement
CLN.Work — Stop prompting, start hiring AI employees
Limited-time offer
Launch OpenClaw or Hermes on Hostinger in 60 seconds
Featured
Launch your OpenClaw wrapper and start making money today
Free tool
Claude API Cost Calculator
Estimate your monthly Claude API bill from real workload numbers: requests per day, token counts, and prompt-cache hit rate. Compare every model and see when a flat-rate subscription beats per-token billing.
Your workload
Cache reads are billed at roughly 0.1x the input rate. Hit rates are approximate: coding sessions and agents with stable system prompts often cache 60 to 90 percent of input tokens, one-off requests cache nothing.
Estimated monthly bill
$215/mo
Claude Sonnet 5 at $3 input / $15 output per 1M tokens, 6,000 requests per month
At the introductory $2/$10 rate (through Aug 31, 2026): $143/mo
Same workload, every model
| Model | $ in / out per 1M | Est. / month |
|---|---|---|
| Claude Opus 4.8 | $5 / $25 | $358 |
| Claude Sonnet 5 | $3 / $15 | $215$143 intro |
| Claude Haiku 4.5 | $1 / $5 | $71.64 |
| Claude Fable 5 | $10 / $50 | $716 |
Honest verdict
At roughly $215/mo for interactive use, a Claude Max subscription ($100 or $200/mo) may be cheaper. The API bills per token with no ceiling; Max is a flat rate that covers claude.ai and Claude Code. The API still wins for anything programmatic, since subscriptions include zero API tokens.
Local models cost $0 in API fees. If your workload tolerates smaller open models, check what your machine can run with our local LLM hardware checker and our Ollama guide.
How the Claude API cost calculator works
This is a monthly bill estimator, not a token counter. You describe a workload (how many requests per day, how many input and output tokens each request uses, and roughly how much of the input is served from the prompt cache) and the calculator multiplies it out against Anthropic's published per-token pricing. As of July 2026 that is $5 input / $25 output per million tokens for Claude Opus 4.8, $3/$15 for Claude Sonnet 5 (with an introductory $2/$10 rate through August 31, 2026), $1/$5 for Claude Haiku 4.5, and $10/$50 for Claude Fable 5. Our Claude API key guide covers the full pricing table and rate-limit tiers.
The math is shown line by line: input cost plus output cost minus caching savings. Prompt caching bills repeated context at roughly a tenth of the input rate, which is why the cache hit rate slider moves the estimate so much. Coding assistants and long-running agents that resend the same system prompt and conversation history on every request routinely cache 60 to 90 percent of their input tokens; one-off requests cache nothing. Treat the hit rate as an approximation and check your real numbers in the Anthropic Console after a week of traffic.
The verdict block is deliberately honest. If your estimate is high and your usage is interactive, a flat-rate subscription such as Claude Max or Claude Pro is often the better deal, because the API bills per token with no ceiling. If your workload is programmatic, subscriptions are not an option and the levers are caching, the Batch API, and picking the cheapest model that still succeeds at the task; our Opus vs Sonnet comparison covers that decision in depth.
Frequently asked questions
How is the monthly cost calculated?
Requests per day times 30 gives monthly requests. Input tokens are billed at the model's input rate, output tokens at the output rate, and the cached share of input tokens is billed at roughly 0.1x the input rate. The total is input cost plus output cost minus caching savings. Batch API discounts (50 percent for asynchronous jobs) are not applied automatically, so batch-heavy workloads may come in lower than the estimate.
What do Claude models cost per million tokens?
As of July 2026: Claude Haiku 4.5 costs $1 input / $5 output per million tokens, Claude Sonnet 5 costs $3/$15 with an introductory $2/$10 rate through August 31, 2026, Claude Opus 4.8 costs $5/$25, and Claude Fable 5 costs $10/$50. Prompt caching and the Batch API reduce real-world bills substantially.
Is the API or a subscription cheaper?
It depends entirely on usage pattern. Interactive use (you, in Claude Code or claude.ai) is usually cheaper on a flat-rate plan once your API estimate passes roughly $100/mo, which is where Claude Max starts. Programmatic use (products, automation, agents) can only run on the API. The two billing worlds never mix: a $200 Max subscription includes zero API tokens, and API credits grant no app subscription.
What is a realistic prompt-cache hit rate?
For coding sessions and long-running agents that resend a stable system prompt plus growing conversation history, 60 to 90 percent of input tokens are commonly cache reads. For stateless request and response APIs with unique prompts, the rate is close to zero. When in doubt, start at 50 percent and refine with real Console usage data.
How accurate is this estimate?
It is a planning estimate, not a quote. Real bills vary with actual token counts, cache behavior, tool-use overhead, and retries. The per-token prices match Anthropic's published pricing as of July 2026, but always confirm current rates in the Anthropic Console before committing to a budget.



