API pricing per million tokens
- Input
- $3
- per 1M, list
- Output
- $15
- per 1M tokens
- Cached input
- $0.3
- no batch tier listed
- Context
- 200K
- 64K max output
Where to buy it (3)
AWS Bedrockdefault region$3 / $15cached $0.3
AWS Bedrockeu-west-1$3 / $15cached $0.3
Anthropic (list)the lab's own API$3 / $15cached $0.3
Through a gateway
Your own numbers100M input and 20M output tokens a month: $600.00 direct.
Helicone$600.00+0%
Kong AI Gateway$600.00+0%
LiteLLM$600.00+0%
Vercel AI Gateway$600.00+0%
AWS Bedrock$600.00+0%
Azure AI Foundry$600.00+0%
Google Vertex AI$600.00+0%
Databricks Mosaic AI$600.00+0%
Hugging Face Inference$600.00+0%
Cloudflare AI Gateway$630.00+5%
Requesty$630.00+5%
Eden AI$633.00+5.5%
OpenRouter$633.00+5.5%
Snowflake Cortex AI$720.00+20%
Martian Gatewayn/a
Portkeyn/a
TrueFoundry AI Gatewayn/a
IBM watsonx.ain/a
OCI Generative AIn/a
BigQuery MLn/a
Cloudflare Workers AIn/a
NVIDIA NIMn/a
Related models
Claude Opus 5.5Anthropic · 1M$4 / $20in / out per 1M$4$20$0.21MSep 22, 2026
Claude Fable 5.1Anthropic · 1M$10 / $50in / out per 1M$10$50$0.251MSep 1, 2026
Claude Opus 5Anthropic · 1M$5 / $25in / out per 1M$5$25$0.51MJul 24, 2026
Claude Sonnet 5Anthropic · 1M$2 / $10in / out per 1M$2$10$0.21MJun 30, 2026
GPT-5.6 SolOpenAI · 1.05M$2 / $10in / out per 1M$2$10$0.21.05MJul 9, 2026
GPT-5.5OpenAI · 1.05M$5 / $30in / out per 1M$5$30$0.51.05MApr 24, 2026
Gemini 3.1 Pro PreviewGoogle Gemini API · 1M$2 / $12in / out per 1M$2$12$0.21MFeb 19, 2026
Qwen3.8 Max (0902)Qwen (Alibaba) · 1M$2 / $6in / out per 1M$2$6$0.251MSep 3, 2026
About Claude Sonnet 4
Claude Sonnet 4 significantly enhances the capabilities of its predecessor, Sonnet 3.7, excelling in both coding and reasoning tasks with improved precision and controllability.
Takes image, text, files in and returns text. First listed Jun 5, 2025. Blended price $6 per 1M tokens at 3 input to 1 output.
Questions
How much does Claude Sonnet 4 cost?
$3 per million input tokens and $15 per million output tokens, with cached input at $0.3.
What is the context window of Claude Sonnet 4?
200K tokens, with up to 64K tokens of output.
Where is Claude Sonnet 4 cheapest?
Of 3 routes tracked, AWS Bedrock is cheapest at $3 input and $15 output per million tokens.
List prices from providers' pages on the date shown; your contract may differ. Logos via logo.dev; trademarks belong to their owners.