Claude Sonnet 4.5 token cost & pricing
Claude Sonnet 4.5 is Anthropic's balanced frontier model and the strongest widely-available option for agentic coding and long-horizon tool use. A 200K context window plus a 64K max output makes it practical for tasks that produce large, coherent artifacts such as full file rewrites or multi-step reports.
Claude Sonnet 4.5 specifications
| Vendor | Anthropic |
|---|---|
| Input price | $3 / 1M tokens |
| Output price | $15 / 1M tokens |
| Cached input price | $0.3 / 1M tokens (90% cheaper) |
| Context window | 200,000 tokens |
| Max output | 64,000 tokens |
| Open weights | No |
| Price rank | 15 of 17 (cheapest first) |
| Best for | coding, agents |
What Claude Sonnet 4.5 costs in practice
Four common workloads, priced at list rates. Monthly figures assume 30 days.
| Workload | Per request | Requests/day | Per month |
|---|---|---|---|
| Chatbot · 1K in / 500 out | $0.01 | 10,000 | $3,150 |
| RAG Q&A · 8K in / 400 out | $0.03 | 5,000 | $4,500 |
| Doc summary · 30K in / 1K out | $0.10 | 1,000 | $3,150 |
| Code agent · 60K in / 3K out | $0.22 | 500 | $3,375 |
How many requests does $100 buy?
Assuming a 1,000-token prompt and a 500-token response per request.
How Claude Sonnet 4.5 pricing actually works
At $3 per million input and $15 per million output, Sonnet sits above GPT-5 on both sides — about 2.4x on input and 1.5x on output. Cached input at $0.30 per million is a 90% discount, which is the single most important lever for Anthropic models: agentic workloads resend large system prompts and tool definitions constantly.
When to use Claude Sonnet 4.5
Pick Sonnet for coding agents, refactoring tasks, long document analysis and anything where instruction-following consistency matters more than price. For high-volume classification or short chat, Haiku 4.5 costs about a third as much.
How to cut your Claude Sonnet 4.5 bill
Enable prompt caching first — it is the difference between a viable and an unviable agent budget. Then pin tool definitions to the cached prefix and keep the volatile part of the prompt at the end, so cache hits actually land.
Other Anthropic models
Cheaper alternatives to Claude Sonnet 4.5
- GPT-4oOpenAI31% cheaper
- GPT-5OpenAI38% cheaper
- Gemini 2.5 ProGoogle38% cheaper
- Mistral Large 2Mistral56% cheaper
Run the numbers on your own prompt
Paste your actual text into the token counter to get an exact count instead of an estimate. Nothing is uploaded.
Open the calculator →