# Claude API cost calculator

[Calculate my cost →](https://apicostcheck.com/calculator/?model=claude-haiku-5-5&daily=10000&input=6000&output=500&cache=0&write=0&batch=0)[Compare Anthropic models side by side](https://apicostcheck.com/compare/?m=claude-haiku-5-5,claude-haiku-4-5,claude-sonnet-5-5,claude-opus-5-5)

At 10,000 requests a day (6,000 input and 500 output tokens each), the models below cost $255/mo to $25,500/mo without caching.

Anthropic bills Claude per token, with separate rates for input, output and the prompt cache. Caching is opt-in: you mark the shared prefix with cache_control, and writing it costs more than normal input, 1.25× the input price for the 5-minute cache and 2× for the 1-hour cache. Each later request that reuses the prefix reads it at 2.5%–10% of the input price, depending on the model, and every read restarts the cache lifetime.

The discounts stack. The Batch API takes 50% off input and 50% off output, and a cache read inside a batch costs 50% of the normal cache-read price, so batched jobs that share a prefix are the cheapest way to run Claude. Long prompts work the other way: long-context rates apply above 100K for Claude Haiku 5.5 (input 5×, output 5×), and then to the whole request. The threshold counts every input token, cached reads and writes included, so caching a large document does not keep a request under it. 

The table prices one workload on each model: 10,000 requests a day with 6,000 input and 500 output tokens per request. Columns: no caching; 70% of input read from the cache and 5% written to it; every request sent through the Batch API. For the same traffic [Claude Fable 5.1](https://apicostcheck.com/models/claude-fable-5-1/) costs 100× as much as [Claude Haiku 5.5](https://apicostcheck.com/models/claude-haiku-5-5/).

| Model | Standard 10,000 req/day · 6,000 in · 500 out [Calculate with your numbers → (Standard)](https://apicostcheck.com/calculator/?daily=10000&input=6000&output=500&cache=0&write=0&batch=0) | With prompt caching 10,000 req/day · 6,000 in · 500 out · cache 70% [Calculate with your numbers → (With prompt caching)](https://apicostcheck.com/calculator/?daily=10000&input=6000&output=500&cache=70&write=5&batch=0) | Batch API 10,000 req/day · 6,000 in · 500 out · Batch [Calculate with your numbers → (Batch API)](https://apicostcheck.com/calculator/?daily=10000&input=6000&output=500&cache=0&write=0&batch=100) |
| --- | --- | --- | --- |
| [Claude Haiku 5.5](https://apicostcheck.com/models/claude-haiku-5-5/) | $255/mo | $144/mo | $128/mo |
| [Claude Haiku 4.5](https://apicostcheck.com/models/claude-haiku-4-5/) | $2,550/mo | $1,438/mo | $1,275/mo |
| [Claude Sonnet 5.5](https://apicostcheck.com/models/claude-sonnet-5-5/) | $5,100/mo | $2,751/mo | $2,550/mo |
| [Claude Opus 5.5](https://apicostcheck.com/models/claude-opus-5-5/) | $10,200/mo | $5,502/mo | $5,100/mo |
| [Claude Fable 5.2](https://apicostcheck.com/models/claude-fable-5-2/) | $20,400/mo | $10,752/mo | $10,200/mo |
| [Claude Fable 5.1](https://apicostcheck.com/models/claude-fable-5-1/) | $25,500/mo | $13,440/mo | $12,750/mo |

Estimates from published per-token rates; check official pricing before budgeting. Data synced from the LiteLLM price list 2026-12-05 13:00 UTC. 

[All Anthropic API prices →](https://apicostcheck.com/providers/anthropic/) 

## Cost per 1,000 requests

For 1,000 requests of 6,000 input and 500 output tokens, [Claude Haiku 5.5](https://apicostcheck.com/models/claude-haiku-5-5/) costs $0.85 at standard rates, $0.48 with caching and $0.42 through the Batch API; [Claude Fable 5.1](https://apicostcheck.com/models/claude-fable-5-1/) costs $85.00, $44.80 and $42.50. Multiply by your own request count, or put your traffic into the calculator. 

## How to cut the bill, in order
- Put instructions, tool definitions and reference documents first and mark the end of that block with cache_control; only the tail of the prompt should change between requests.
- Pick the cache lifetime by traffic: 5 minutes for steady traffic, 1 hour for sparse traffic ([caching calculator](https://apicostcheck.com/prompt-caching-calculator/)).
- Send anything that can wait (evaluations, backfills, reports) through the Batch API, grouping requests that share a prefix in one batch.
- Cap max_tokens and ask for short answers: output tokens cost several times input.
- Keep requests under the long-context threshold with retrieval, and count prompts with the [token counter](https://apicostcheck.com/token-counter/) before budgeting in the [calculator](https://apicostcheck.com/calculator/). 

[When does caching pay off for your traffic? Use the prompt caching calculator →](https://apicostcheck.com/prompt-caching-calculator/)

## FAQ

### Pricing

### Is the 1-hour cache worth it?

Only when the same prefix comes back at gaps longer than five minutes but within the hour, for example a support bot with sparse traffic. A 1-hour write costs more than a 5-minute write, so with steady traffic the 5-minute cache, refreshed by every hit, is cheaper. The prompt caching calculator compares both for your traffic.

### Can I combine the Batch API with prompt caching on Claude?

Yes. Batch requests can read and write the cache, and cache prices are discounted inside a batch as well. Hits are less predictable because batch requests run in no fixed order, so send the requests that share a prefix in the same batch.

### Why does my Claude bill jump on long prompts?

Some Claude models switch to long-context rates once one request's input passes a threshold. The whole request, cached tokens included, is then billed at the higher input and output rates. Keep prompts under the threshold with retrieval, or pick a model without a long-context tier.

### Haiku, Sonnet or Opus?

Haiku for classification, extraction, routing and high-volume simple chat; Sonnet for most production work; Opus for hard reasoning and long agent runs. The table above shows the price gap for one workload, so run your own prompts on two tiers and compare quality per dollar before committing.

### What does the Claude API charge besides tokens?

As of 2026-11-28 on the Claude API: [web search](https://apicostcheck.com/web-search-api-pricing/) costs $10 per 1,000 searches (web fetch has no extra fee). Code execution is free when the request includes web search or web fetch (2026-02-09 tool versions or later); otherwise each organization gets 1,550 free hours a month, then $0.05 per hour per container, with a 5-minute minimum; if the request includes files, execution time is billed even when the tool is not called. Claude Managed Agents adds $0.08 per session-hour while a session is running (idle time is not billed); this replaces container-hour billing for code execution in sessions. Pinning US-only inference with inference_geo on Claude 4.6 and later multiplies all token prices by 1.1. Source: [Anthropic pricing](https://platform.claude.com/docs/en/about-claude/pricing#feature-specific-pricing).

### Billing, credits and limits

### Do Claude subscriptions include API credits?

As of 2026-11-29, Claude Max ($100 a month) includes $100 a month in Claude API credits and Ultra ($200) includes $200; Team plans get $20 per Standard seat and $100 per Premium seat, pooled into one monthly balance capped at $500. Pro and Enterprise include none. You link a Claude Console organization to claim them, unused credit expires each billing cycle, and it does not cover interactive Claude Code, extra usage, Claude usage in third-party apps billed through linked billing, or any cloud platform (Amazon Bedrock, Claude Platform on AWS, Claude Models on Google Cloud, Microsoft Foundry), even with the Claude Console. Details on [subscriptions vs API (ChatGPT, Claude and Gemini plans)](https://apicostcheck.com/chatgpt-plus-vs-api-cost/).

### Do purchased Claude API credits expire?

Yes. As of 2026-11-29, [Anthropic's help article on paying for Claude API usage](https://support.claude.com/en/articles/8977456-how-do-i-pay-for-my-claude-api-usage) says purchased credits expire one year from the purchase date and the expiration date can't be extended. Expired credits appear in the invoice history on the Billing page.

### Can I get a refund for unused Claude API credits?

No. As of 2026-11-29, [Anthropic's help article on paying for Claude API usage](https://support.claude.com/en/articles/8977456-how-do-i-pay-for-my-claude-api-usage) says all credit purchases are non-refundable.

### What do Claude API errors 429, 529 and 402 mean?

As of 2026-11-29, [Anthropic's API errors page](https://platform.claude.com/docs/en/api/errors) says: 429 rate_limit_error means your organization hit a rate limit, reached its usage tier's monthly spend cap, or reached a spend limit on the Claude Code workspace; a sharp increase in usage can also cause a 429 even while you're under your rate limits (ramp limits). A 429 from the usage tier's monthly spend cap has no retry-after header and keeps failing until access resumes (on the Messages API it adds the code enforced_spend_limit_reached). 529 overloaded_error means the API is temporarily overloaded, which can happen during high traffic across all users. 402 billing_error means there is an issue with your billing or payment information: check your payment details in the Claude Console, or in AWS Marketplace if you use Claude Platform on AWS. A spend limit you set yourself on an organization or workspace returns 400, not 429; limits on the Claude Code workspace can return a 429 instead.

### Can I get free Claude API credits?

Yes, some. As of 2026-11-29, [Anthropic's pricing page](https://platform.claude.com/docs/en/about-claude/pricing) says new users receive free credits to test the API (no amount is given), and enterprises can email sales about extended trials. Anthropic also runs credit programs: [the AI for Science Program](https://support.claude.com/en/articles/11199177-anthropic-s-ai-for-science-program) gives free API credits for the standard models to researchers in academia and nonprofit organizations working on high-priority scientific topics (with a focus on biology and life sciences); applications are reviewed on the first Monday of each month, successful ones get up to $20,000 in API credits for a 6-month period, and the credits don't apply to the Claude web app. The [Claude Startups page](https://claude.com/programs/startups) says its current cohort is full and it isn't accepting new applications right now, and that startups backed by a VC in Anthropic's partner network may be eligible for up to $100K in additional API credits, claimed through the VC.

### How do I set a spending limit on the Claude API?

As of 2026-11-29, [Anthropic's rate limits page](https://platform.claude.com/docs/en/api/rate-limits#setting-your-own-spend-limit) says to open Spend limits in the Claude Console and click Adjust limit or Set limit next to your organization's Monthly spend limit; the value can't exceed your current tier's cap. When usage reaches a limit you set, requests return HTTP 400 invalid_request_error with a message starting "You have reached your specified API usage limits" (or "...specified workspace API usage limits" for a workspace limit) that states when access resumes; raise or remove the limit to restore access sooner. Limits on the Claude Code workspace are checked separately and can return a 429 with a retry-after header instead.

### Does the Claude API have a monthly spend cap?

Yes. As of 2026-11-29, [Anthropic's rate limits page](https://platform.claude.com/docs/en/api/rate-limits) gives the Start, Build and Scale tiers a monthly spend cap: Start $500, Build $1,000 and Scale $200,000; the Custom tier has none. Once you reach the cap, API requests return HTTP 429 until 00:00 UTC on the first day of the next month, unless you get a higher limit with Request tier increase in the Claude Console. Organizations are placed on a tier automatically based on usage history and account standing; new organizations may start in the Evaluation tier, with limits below these standard limits.

---
Source: https://apicostcheck.com/claude-api-cost-calculator/ · prices in USD per 1M tokens, synced 2026-12-05 13:00 UTC · Free to reuse under CC BY 4.0 with attribution to apicostcheck.com (a plain or nofollow link is fine). Prices derived from LiteLLM's model price list, MIT License, (c) 2023 Berri AI.
