Last refreshed 2026-07-26. Next refresh: weekly.
Why use Claude Sonnet 4 on OpenRouter?
OpenRouter offers Claude Sonnet 4 with pay-as-you-go pricing at $3.00/1M input tokens. OpenRouter is a multi-provider LLM aggregator offering unified API access to 300+ models from all major labs and emerging providers, with automatic failover for reliability.
Compare Claude Sonnet 4 across 4 providers to find the best fit for your use caseInput / 1M
$3.00
Output / 1M
$15.00
Cache
Not sourced
Batch
Not sourced
Setup recipe
Docs fallbackInstall
Use the provider REST API or SDKAuth
Create a provider API keyCall
model: anthropic/claude-sonnet-4Model ID
anthropic/claude-sonnet-4Request example
Curated snippets for this provider are not sourced yet. Use OpenRouter documentation with model ID
anthropic/claude-sonnet-4.Gotchas
- Use provider model ID "anthropic/claude-sonnet-4", not the LLMReference slug "claude-sonnet-4".
Compare Claude Sonnet 4 Across Providers
| Provider | Input (per 1M) | Output (per 1M) |
|---|---|---|
| Anthropic | $3.00 | $15.00 |
| AWS Bedrock | $8.00 | $40.00 |
| OpenRouter | $3.00 | $15.00 |
| Vercel AI Gateway | $3.00 | $15.00 |
Pricing
| Type | Price (per 1M) |
|---|---|
| Input tokens | $3.00 |
| Output tokens | $15.00 |
Capabilities
VisionMultimodalStructured Outputs
About Claude Sonnet 4
Claude Sonnet 4 API snapshot (claude-sonnet-4-20250514) is deprecated and scheduled to retire from Anthropic-operated platforms on June 15, 2026. Use Claude Sonnet 4.6 for current integrations.
Get Started
Model Specs
Released2025-08-01
Context200k