Claude Sonnet 4
anthropic/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. Achieving state-of-the-art performance on SWE-bench (72.7%),...
Model information
Released
2025-05-22
Context window
1M
Max output
64K
Weights
Closed
Modalities
Input
DocumentImageText
Output
Text
Identity
- Version
- claude-sonnet-4
- Knowledge cutoff
- 2025-01-31
Capabilities
ReasoningTemperatureTool call
Providers
| Provider | Provider model ID | Protocol | Context | Max output | Input | Output | Capabilities | Notes | Pricing | Streaming |
|---|---|---|---|---|---|---|---|---|---|---|
| OpenRouter | anthropic/claude-sonnet-4 | openai_chat | 1M | 64K | AttachmentsReasoningTool callTemperature | Moderated | input $3/M · output $15/M cache read $0.3/M · cache write $3.75/M | Yes | ||
| Poe | anthropic/claude-sonnet-4 | openai_chat | 1M | 64K | AttachmentsReasoningTool call | - | input $2.6/M · output $13/M cache read $0.26/M · cache write $3.2/M | Yes | ||
| FastRouter | anthropic/claude-sonnet-4 | openai_chat | 1M | 64K | AttachmentsReasoningTool callTemperature | - | input $3/M · output $15/M cache read $0.3/M · cache write $3.75/M | Yes | ||
| ZenMux | anthropic/claude-sonnet-4 | openai_chat | 1M | 64K | AttachmentsReasoningTool callTemperature | - | input $3/M · output $15/M cache read $0.3/M · cache write $3.75/M | Yes | ||
| OrcaRouter | anthropic/claude-sonnet-4 | openai_chat | 1M | 64K | AttachmentsReasoningTool callTemperature | - | input $3/M · output $15/M cache read $0.3/M · cache write $3.75/M | Yes | ||
| Requesty | anthropic/claude-sonnet-4 | openai_chat | 1M | 64K | AttachmentsReasoningTool callTemperature | - | input $3/M · output $15/M cache read $0.3/M · cache write $3.75/M | Yes | ||
| Kilo Gateway | anthropic/claude-sonnet-4 | openai_chat | 1M | 64K | AttachmentsReasoningTool callTemperature | - | input $3/M · output $15/M cache read $0.3/M · cache write $3.75/M | Yes | ||
| Vercel AI Gateway | anthropic/claude-sonnet-4 | openai_chat | 1M | 64K | AttachmentsReasoningTool callTemperature | - | input $3/M · output $15/M cache read $0.3/M · cache write $3.75/M | Yes | ||
| Cloudflare AI Gateway | anthropic/claude-sonnet-4 | openai_chat | 1M | 64K | AttachmentsReasoningTool callTemperature | - | input $3/M · output $15/M cache read $0.3/M · cache write $3.75/M | Yes | ||
| Anthropic | claude-sonnet-4 | custom | 1M | 64K | - | - | - | Yes |