{T}
TokenMath.net
Verified against Anthropic Official Pricing
AnthropicflagshipGenerally AvailableActive Production

Claude Sonnet 5 API Pricing & Cost Calculator

High-performance frontier model for production coding and complex agents Need a token count first? Use the Claude token counter.

Standard Input / 1M
$2.00
Prompt tokens
Cached Input / 1M
$0.20
Prompt caching rate
Output / 1M
$10.00
Generation completion
Context Window
1M
Max out: 16.4k
API & Developer Integration Details
generally available
API Model Stringclaude-sonnet-5-20260901
Provider & FamilyAnthropic (claude)
Prompt Caching Rules1,024 min tokens (90% off)
Long-Context TiersStandard flat rate throughout full window
First-party audit timestamp: 2026-10-11 07:55 UTCOfficial Documentation

Interactive Cost & Token Simulator for Claude Sonnet 5

Live Calculation
Input Tokens2,500
Output Tokens800
Requests / Day5,000
Prompt Caching Ratio (50%)$0.2/M cached rate
Cost / Request$0.0108
Daily Spend (5,000 reqs)$53.75
Monthly Run-Rate (30d)$1,612.50

Standard Workload Cost Scenarios

ScenarioInput TokensOutput TokensUncached CostWith Prompt Caching
Short Chat Query1,000500$0.00700$0.00520
Document Summarization10,0002,000$0.0400$0.0220
Codebase & Context Analysis100,00020,000$0.4000$0.2200
Batch Corpus Processing1,000,000100,000$3.00$1.20
Technical Architecture & Pricing VerificationVerified: 2026-10-11 07:55 UTC
Model ArchitectureClaude Sonnet 5
Provider OrganizationAnthropic
Tokenizer EncodingAnthropic Claude BPE (~65k vocabulary)
API ConnectivityAnthropic Messages API (/v1/messages). Native prompt caching and 16k output tokens.
Batch API 50% DiscountSupported (50% off input & output)
Cache Write Rate / 1M$2.50
Tier 1 Rate Quota (Free-Tier Reference)1,000 RPM · 200k TPM

Tier 1 (free tier) reference limits — your account's actual quota may be higher.

Blended 3:1 Cost / 1M Tokens$4.00
Most cost-efficient frontier coding model. Prompt cache write rate is $2.50/1M, reads are $0.20/1M (90% discount).Anthropic Official Pricing

Verified Pricing History

September 12, 2026: $2/M input · $10/M output ($0.2/M cached)
Frontier tier update: input / output (.20 cached).
August 2026: $3/M input · $15/M output ($0.2/M cached)
Claude Sonnet 5 release, matching Claude 3.5 Sonnet pricing with enhanced performance.
June 2024: $3/M input · $15/M output ($0.3/M cached)
Claude 3.5 Sonnet baseline pricing introduced.

When to Choose Claude Sonnet 5

Ideal for production workloads demanding flagship capabilities, deep context depth (1M tokens), and reliability from Anthropic. Excellent when predictable tokenomics and prompt caching support are paramount.

When Another Model May Be Better

If your use-case requires sub-second streaming latency or ultra-high frequency classification at micro-cent pricing, consider lighter budget options such as Gemini Flash-Lite or Claude Haiku. For deep formal logic, consider dedicated reasoning models like o3.

Frequently Asked Questions About Claude Sonnet 5

How much does 1 million tokens cost with Claude Sonnet 5?

For Claude Sonnet 5, 1 million input tokens costs $2.00, while 1 million output tokens costs $10.00. If using prompt caching, repetitive input prefixes are discounted to $0.20 per million.

What is the context window for Claude Sonnet 5?

Claude Sonnet 5 features a maximum context window of 1,000,000 tokens (~750,000 words), with a maximum output limit of 16,384 tokens per completion.

Which tokenizer does Claude Sonnet 5 use?

Claude Sonnet 5 utilizes the Anthropic Claude BPE (~65k vocabulary). Token counting on TokenMath runs client-side to ensure maximum privacy.

Does Claude Sonnet 5 support prompt caching discounts?

Yes. Claude Sonnet 5 supports prompt caching with a cached input rate of $0.20/1M (saving up to 90% on repeated input context).