TTokenCost

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.

Input
$3
per 1M tokens
Output
$15
per 1M tokens
Context window
200K
tokens

Claude Sonnet 4.5 specifications

VendorAnthropic
Input price$3 / 1M tokens
Output price$15 / 1M tokens
Cached input price$0.3 / 1M tokens (90% cheaper)
Context window200,000 tokens
Max output64,000 tokens
Open weightsNo
Price rank15 of 17 (cheapest first)
Best forcoding, agents

What Claude Sonnet 4.5 costs in practice

Four common workloads, priced at list rates. Monthly figures assume 30 days.

WorkloadPer requestRequests/dayPer month
Chatbot · 1K in / 500 out$0.0110,000$3,150
RAG Q&A · 8K in / 400 out$0.035,000$4,500
Doc summary · 30K in / 1K out$0.101,000$3,150
Code agent · 60K in / 3K out$0.22500$3,375

How many requests does $100 buy?

Assuming a 1,000-token prompt and a 500-token response per request.

9,523 requests
at $0.01 each · $10.50 per 1,000 requests

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

Claude Opus 4.1
premium · reasoning
$15 / $75
Claude Haiku 4.5
budget · fast
$1 / $5

Cheaper alternatives to Claude Sonnet 4.5

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 →