Claude Sonnet 4
Provider: vercel ai gateway ·
vercel_ai_gateway/anthropic/claude-sonnet-4 Pricing per million tokens
| Component | USD per 1M tokens |
|---|---|
| Input | $3.00 |
| Output | $15.00 |
| Cached input (read) | $0.30 |
| Cache write | $3.75 |
💡 With prompt caching, you save up to 90% on cached input tokens — massive for repeated context like system prompts, RAG retrieval, or long conversations.
Monthly cost estimates
Assuming 30% prompt-cache hit rate where available. Adjust for your actual usage.
Small
1M in / 200k out
$5.19
per month
Saves $0.81 via caching
Medium
10M in / 2000k out
$51.90
per month
Saves $8.10 via caching
Large
100M in / 20000k out
$519
per month
Saves $81.00 via caching
Context
- Input window
- 200,000 tokens
- Max output
- 64,000 tokens
Capabilities
- ✅ Vision (image input)
- ✅ Function / tool calling
- ✅ Prompt caching
- ⬜ Web search
- ✅ JSON / response schema
Compare Claude Sonnet 4 with similar models
Claude 3.5 Sonnet
vercel ai gateway
$3.00 in
/ $15.00 out
Claude 3.7 Sonnet
vercel ai gateway
$3.00 in
/ $15.00 out
Claude 4 Sonnet
vercel ai gateway
$3.00 in
/ $15.00 out
Claude 3 5 Sonnet
vercel ai gateway
$3.00 in
/ $15.00 out
Claude 3 5 Sonnet 20241022
vercel ai gateway
$3.00 in
/ $15.00 out
Claude 3 7 Sonnet
vercel ai gateway
$3.00 in
/ $15.00 out
Pricing data sourced from LiteLLM and refreshed regularly. Last updated May 20, 2026. Always verify with the provider's official pricing page before making business decisions.