Claude Sonnet 5.5 API pricing
Anthropic · checked 2026-11-21 · source
Input / 1M tokens
$2
Output / 1M tokens
$10
Cached input / 1M tokens
$0.1
Context window
1,000,000
Provider
Anthropic
Cost per typical task
Computed from the prices above. The token counts are illustrative task sizes, not measurements.
| Task | Tokens | Arithmetic | Cost |
|---|---|---|---|
| Chat reply | 1,000 input + 300 output | 1,000 ÷ 1,000,000 × $2 + 300 ÷ 1,000,000 × $10 = $0.005000 | $0.005000 |
| Summarize a long document | 20,000 input + 1,000 output | 20,000 ÷ 1,000,000 × $2 + 1,000 ÷ 1,000,000 × $10 = $0.0500 | $0.0500 |
| Coding agent step (cached context) | 5,000 input + 40,000 cached input + 2,000 output | 5,000 ÷ 1,000,000 × $2 + 40,000 ÷ 1,000,000 × $0.1 + 2,000 ÷ 1,000,000 × $10 = $0.0340 | $0.0340 |
← Calculate the cost of your own prompt · Compare with the cheapest LLM APIs