MockFoxAdvertise

Claude API Pricing Calculator

Updated Free mock REST & WebSocket APIs

Work out what Anthropic's Claude API will cost for your workload — Claude Fable, Opus, Sonnet and Haiku — with prompt caching and the 50% Batch API discount, then compare against GPT and Gemini.

Prompt + history + context. 12k = 12,000
Reasoning models also bill thinking tokens as output
≈ 30,000 / month
0%
Share of input tokens read from cache (repeated system prompt, docs)
0%
50% off at OpenAI, Anthropic, Google, Mistral (async, ≤24 h)
Cheapest for this workload
Claude Haiku 5.5 · Anthropic
$0.00045 per request · $0.45 per day
$13.50/mo
Claude Haiku 5.5cheapest
Anthropic
In $0.10 · Out $0.50 /1M · 1M
Prompts over 100,000 tokens are billed at $0.50 / $2.50 per 1M for the whole request.
$13.50
Claude Haiku 4.5
Anthropic
In $1 · Out $5 /1M · 200K
$135.00
10× cheapest
Claude Sonnet 5
Anthropic
In $2 · Out $10 /1M · 1M
$270.00
20× cheapest
Claude Sonnet 5.5
Anthropic
In $2 · Out $10 /1M · 1M
$270.00
20× cheapest
Claude Sonnet 4.6
Anthropic
In $3 · Out $15 /1M · 1M
$405.00
30× cheapest
Claude Opus 5.5
Anthropic
In $4 · Out $20 /1M · 1M
$540.00
40× cheapest
Claude Opus 4.8
Anthropic
In $5 · Out $25 /1M · 1M
$675.00
50× cheapest
Claude Opus 5
Anthropic
In $5 · Out $25 /1M · 1M
$675.00
50× cheapest
Claude Fable 5.1
Anthropic
In $10 · Out $50 /1M · 1M
Anthropic's most capable widely released model.
$1,350
100× cheapest

Prices checked on 2026-10-18 from each provider's official pricing page (standard tier, USD per 1M tokens). Prices change often — verify before you budget.

Sources: Anthropic. Excludes taxes, tool/search fees, image/audio tokens and cache-write or storage surcharges.

🔒 Everything is calculated in your browser — prompts you paste are never sent anywhere.

How to calculate Claude API cost

  1. Enter Claude input and output tokens per request, or paste a prompt (Claude tokens are estimated from the text).
  2. Set requests per day, the prompt-cache hit rate and how much traffic can go through the Message Batches API.
  3. Compare Claude models, then tap other providers to see GPT and Gemini side by side.

Claude API prices

ModelInputCached inputOutputContext
Claude Fable 5.1
claude-fable-5-1
$10$0.25$501M
Claude Opus 5.5
claude-opus-5-5
$4$0.20$201M
Claude Opus 5
claude-opus-5
$5$0.50$251M
Claude Opus 4.8
claude-opus-4-8
$5$0.50$251M
Claude Sonnet 5.5
claude-sonnet-5-5
$2$0.10$101M
Claude Sonnet 5
claude-sonnet-5
$2$0.20$101M
Claude Sonnet 4.6
claude-sonnet-4-6
$3$0.30$151M
Claude Haiku 5.5
claude-haiku-5-5
$0.10$0.01$0.501M
Claude Haiku 4.5
claude-haiku-4-5
$1$0.10$5200K

USD per 1M tokens, standard tier, checked 2026-10-18. Source: Anthropic pricing.

Prompt caching on Claude

Caching is explicit: mark the stable prefix with cache_control. Reads cost 0.1× the input price on most models, 0.05× on Opus 5.5 and Sonnet 5.5 and 0.025× on Fable 5.1. Writes cost 1.25× input (5-minute TTL) or 2× (1-hour TTL), so a 5-minute cache pays off from the second request. Batch and caching discounts stack.

Example: RAG over a cached document

20,000 input tokens (80% cached) and 400 output tokens, 5,000 requests a day: Claude Haiku 5.5 $114.00, Sonnet 5.5 $2,040, Opus 5.5 $4,080 and Fable 5.1 $9,600 per month (cache writes not included).

Gotchas

  • Claude's newer tokenizer (Opus 4.7 and later) produces about 30% more tokens than older models for the same text — re-check token counts when you upgrade.
  • Claude Haiku 5.5 bills prompts over 100,000 tokens at $0.50 / $2.50 per 1M for the whole request. Other current models include the full 1M context at standard rates.
  • US-only inference (inference_geo) adds a 1.1× multiplier; Bedrock and Vertex AI have their own price lists.

Prices were checked on 2026-10-18 from each provider's official pricing page. They change often, so confirm on the provider's site before committing to a budget.

Related tools

Frequently asked questions

How much does Claude cost per million tokens?

From $0.10 input / $0.50 output (Haiku 5.5) to $10 / $50 (Fable 5.1). Sonnet 5.5 is $2 / $10 and Opus 5.5 is $4 / $20 per 1M tokens.

Is the Claude API cheaper with batch?

Yes. The Message Batches API is 50% off input and output, and it combines with prompt-caching discounts.

Does a Claude Pro subscription include API usage?

No. Claude.ai plans and the Claude API (Claude Console) are billed separately.

Are these prices up to date?

Prices were checked on 2026-10-18 from each provider's official pricing page. They change often, so confirm on the provider's site before committing to a budget.

Your business here? Sponsor this tool from $16/week. See placements