Anthropic · Updated 2026-07-22

Claude Sonnet 4 API Pricing 2026: $3/M Tokens

Complete per-million-token pricing for Claude Sonnet 4 from Anthropic, including cached and batch rates, cost-per-1K/1M/10M breakdowns, a monthly cost calculator, and a head-to-head comparison with GPT-4o, Gemini 2.5 Pro, DeepSeek-V3. For full cross-provider rankings, open the main calculator.

Claude Sonnet 4 headline pricing

Input

$3.00 /M tokens

Output

$15.00 /M tokens

Cached input

$0.30 /M (90% off)

Batch (50% off)

$1.50 in / $7.50 out /M

Context · capabilities

200K context · Chat, Code, Vision, Reasoning · benchmark 9/10

Claude Sonnet 4 cost per 1K, 1M and 10M tokens

Standard on-demand USD rates. Input assumes prompt tokens; output assumes generated tokens.

VolumeInput costOutput costTotal (1:1)
1K tokens$0.003$0.015$0.018
1M tokens$3.00$15.00$18.00
10M tokens$30.00$150.00$180.00

Claude Sonnet 4 monthly cost calculator

1M
500K

$10.50

per month for 1M in + 500K out

$126.00

per year

Need to weigh it against other models? Use the full cross-provider calculator.

Claude Sonnet 4 vs GPT-4o vs Gemini 2.5 Pro vs DeepSeek-V3

Claude Sonnet 4 ranks #4 of 4 by blended per-million-token price in this comparison. Lower input + output is cheaper.

ModelInput $/MOutput $/MIn+OutContext
DeepSeek-V3DeepSeek$0.27$1.10$1.37128K
Gemini 2.5 ProGoogle$1.25$10.00$11.251M
GPT-4oOpenAI$2.50$10.00$12.50128K
YOUClaude Sonnet 4Anthropic$3.00$15.00$18.00200K

Related pricing pages

Claude Sonnet 4 pricing FAQ

How much does Claude Sonnet 4 cost?

Claude Sonnet 4 is priced at $3.00 per million input tokens and $15.00 per million output tokens on Anthropic. At a typical 2:1 input-to-output ratio, that works out to roughly $7.00 per million blended tokens. Context window is 200K.

Is Claude Sonnet 4 cheaper than GPT-4o?

No — GPT-4o is cheaper. Its blended input+output rate ($12.50/M) undercuts Claude Sonnet 4 ($18.00/M) by about 31%. Claude Sonnet 4 may still win on quality, reasoning depth, or ecosystem fit for workloads where that matters more than raw price.

Does Claude Sonnet 4 support prompt caching?

Yes. Anthropic serves repeated input prefixes on Claude Sonnet 4 at $0.30/M — a 90% discount versus the standard $3.00/M input rate. Caching is automatic for qualifying prefixes and is most valuable for long system prompts and recurring context.

Can I use Claude Sonnet 4 with the Batch API?

Yes. Claude Sonnet 4 supports the Anthropic Batch API at $1.50/M input and $7.50/M output — 50% off standard rates — in exchange for asynchronous (up to 24-hour) completion. Batch is ideal for offline evaluation, classification, and bulk generation.

☕ Support this tool