Claude Sonnet 5 API Pricing Calculator

Compare what your prompts cost across every major LLM — with exact token counts for OpenAI models, right in your browser.

Prices verified 2026-07-24 · per 1M tokens · sources linked per provider

Input / 1M tokens

$2

Cached input / 1M

$0.2

Output / 1M tokens

$10

Context window: 1,000,000 tokensAPI model ID: claude-sonnet-5

Introductory pricing through Aug 31, 2026; then $3 in / $15 out.

At Claude Sonnet 5's rates ($2 per 1M input tokens, $10 per 1M output), a call with 1,000 input and 500 output tokens costs $0.007. At 10,000 requests a month, that workload runs $70.00. A heavier call — a 100,000-token prompt returning 2,000 tokens — costs $0.22.

Within Anthropic Claude's lineup, Claude Sonnet 5 runs 2.0× the per-call cost of Claude Haiku 4.5 and 5.0× less than Claude Fable 5 at this workload.

Cache-read input is billed at $0.2 per 1M tokens — 90% below the standard input rate, so a long system prompt reused across calls mostly bills at the discounted rate.

Claude Sonnet 5's context window is 1,000,000 tokens. Introductory pricing through Aug 31, 2026; then $3 in / $15 out.

ModelCost / callCost / month× best price
Claude Haiku 4.5cheapest$0.006$6.00
Claude Sonnet 5$0.012$12.002.0×
Claude Opus 5$0.03$30.005.0×
Claude Opus 4.8$0.03$30.005.0×
Claude Fable 5$0.06$60.0010.0×

More Anthropic Claude models: Claude Opus 5 · Claude Opus 4.8 · Claude Haiku 4.5 · Claude Fable 5 — or all Anthropic Claude pricing

Token counter

0 tokens

Token counts are exact for OpenAI models (tiktoken o200k_base, run in your browser). For other providers the count is an estimate — notably Claude Opus 4.7+/Sonnet 5 and similar newer models use a tokenizer that produces roughly 30% more tokens for the same text.

Related tools

Scaling AI content or ops? Elegant Atomics builds growth systems for B2B SaaS — Trevor’s company. Work with us →