High-performance frontier model for production coding and complex agents Need a token count first? Use the Claude token counter.
claude-sonnet-5-20260901| Scenario | Input Tokens | Output Tokens | Uncached Cost | With Prompt Caching |
|---|---|---|---|---|
| Short Chat Query | 1,000 | 500 | $0.00700 | $0.00520 |
| Document Summarization | 10,000 | 2,000 | $0.0400 | $0.0220 |
| Codebase & Context Analysis | 100,000 | 20,000 | $0.4000 | $0.2200 |
| Batch Corpus Processing | 1,000,000 | 100,000 | $3.00 | $1.20 |
Tier 1 (free tier) reference limits — your account's actual quota may be higher.
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.
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.
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.
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.
Claude Sonnet 5 utilizes the Anthropic Claude BPE (~65k vocabulary). Token counting on TokenMath runs client-side to ensure maximum privacy.
Yes. Claude Sonnet 5 supports prompt caching with a cached input rate of $0.20/1M (saving up to 90% on repeated input context).