claude-sonnet-5
Auto-routeranthropic/claude-sonnet-5
Context
1M
Max output
128K
Input / 1M
$3.00
Output / 1M
$15.00
Modality
Chat
Cutoff
Jan 2026
About this model
Anthropic's most agentic Sonnet model, closing much of the gap to Opus 4.8 on coding, agentic, and knowledge-work tasks at Sonnet-tier pricing.
Best suited for
- Claude Sonnet 5 is Anthropic's most capable Sonnet model yet, built for long-horizon agentic coding, browser and terminal automation, deep research, and everyday knowledge work — at a fraction of Opus-tier cost.
Built-in tools
Hosted by the gateway — enable them per request without wiring your own endpoint.
Capabilities
Vision
Accepts images alongside text in the same message.
Files
Accepts file attachments — PDFs, transcripts, spreadsheets.
Tools
Native function calling, so agents can invoke your endpoints.
System prompt
Honours a dedicated system role, separate from the user turn.
Reasoning
Emits a separate thinking pass before the answer.
Supported parameters
max_tokensMax Tokens LimitSpecifies the maximum number of text units (tokens) allowed in a response, limiting its length. Max is 128k on the standard Messages API (up to 300k via the Batch API using the output-300k-2026-03-24 beta header).
toolsLists tool definitions or capabilities available to the model.
tool_choiceDecides whether to use tools or just the model for generating responses.
response_typeDefines the format or type of the generated response.
reasoningControls the level of reasoning used by the model.
streamSends the response in real-time as it's being generated.
Use this model
OpenAI-SDK compatible, with gateway fallback and routing across providers.
Other Anthropic models
| Model | Context | Max output | Input | Output | Capabilities |
|---|---|---|---|---|---|
| claude-sonnet-4-5-20250929 Chat | 200K | 64K | $3.00 | $15.00 | Vision, Tools, System prompt |
| claude-haiku-4-5-20251001 Chat | 200K | 64K | $1.00 | $5.00 | Vision, Files, Tools, System prompt |
| claude-opus-4-5-20251101 Chat | 200K | 64K | $5.00 | $25.00 | Vision, Files, Tools, System prompt |
| claude-opus-4-6 Chat | 200K | 128K | $5.00 | $25.00 | Vision, Files, Tools, System prompt |
| claude-sonnet-4-6 Chat | 200K | 64K | $3.00 | $15.00 | Vision, Files, Tools, System prompt |
| claude-opus-4-7 Chat | 1M | 128K | $5.00 | $25.00 | Vision, Files, Tools, System prompt, Reasoning |
| claude-fable-5 Chat | 200K | 64K | $5.00 | $15.00 | Vision, Files, Tools, System prompt |
| claude-opus-4-1 Chat | 200K | 64K | $15.00 | $75.00 | Vision, Files, Tools, System prompt |
| claude-opus-4-1-20250805 Chat | 200K | 64K | $5.00 | $15.00 | Vision, Files, Tools, System prompt |
| claude-opus-5 Chat | 200K | 64K | $1.00 | $1.00 | Files, System prompt |
| claude-fable-5-1 Chat | 200K | 64K | $5.00 | $25.00 | Vision, Files, Tools, System prompt |
| claude-mythos-5 Chat | 200K | 64K | $1.00 | $1.00 | Vision, Files, Tools, System prompt |
Pricing & provider details
Anthropic
anthropic/claude-sonnet-5
- Input · per 1M
- $3.00
- Output · per 1M
- $15.00
- Cached input · per 1M
- —
- Context window
- 1,000,000 tokens
- Max output
- 128,000 tokens
- Knowledge cutoff
- Jan 2026
- Auto-router
- Supported
Start building today
Route claude-sonnet-5 — and every other model in the catalogue — through one endpoint, with failover built in.