Claude Sonnet 5
By Anthropic. Unknown parameters, a context window of 1,000,000 tokens, licence Unknown.
Facts
- Released
- 2026-06-29 the release date models.dev records models.dev, read
- Licence
- Unknown
- Open weights
- No models.dev records whether the weights are open models.dev, read
- Parameters
- Unknown
- Active parameters
- Unknown
- Knowledge cutoff
- 2026-01-31 the knowledge cutoff models.dev records models.dev, read
- Context window
- 1,000,000 tokens the context length OpenRouter lists OpenRouter, read
- 1,000,000 tokens the context limit models.dev records for the maker's own API models.dev, read
- Longest output
- 128,000 tokens the largest output OpenRouter's first provider allows OpenRouter, read
- 128,000 tokens the output limit models.dev records for the maker's own API models.dev, read
- Tool calling
- Yes OpenRouter lists tools among the supported parameters OpenRouter, read
- Yes models.dev records tool_call as true models.dev, read
- Structured output
- Yes OpenRouter lists structured outputs among the supported parameters OpenRouter, read
- Yes models.dev records structured_output as true models.dev, read
- Reasoning controls
- Yes OpenRouter lists reasoning controls, with the efforts max, xhigh, high, medium, low OpenRouter, read
- Yes models.dev records reasoning as true models.dev, read
- Inputs and outputs
- text, image, file in, text out OpenRouter, read
- Good for
- Reasoning: OpenRouter lists reasoning controls for it OpenRouter, read
- Vision: OpenRouter lists images among its inputs OpenRouter, read
Prices
| Provider | Input | Output | Context | As of | Source |
|---|---|---|---|---|---|
| Amazon Bedrock through OpenRouter | 2.00 USD | 10.00 USD | 1,000,000 | OpenRouter endpoints, read | |
| Amazon Bedrock through OpenRouter | 2.00 USD | 10.00 USD | 1,000,000 | OpenRouter endpoints, read | |
| Anthropic direct | 2.00 USD | 10.00 USD | 1,000,000 | older than 30 days; check the provider | models.dev, read |
| Anthropic through OpenRouter | 2.00 USD | 10.00 USD | 1,000,000 | OpenRouter endpoints, read | |
| Anthropic through OpenRouter | 2.00 USD | 10.00 USD | 1,000,000 | OpenRouter endpoints, read | |
| Azure through OpenRouter | 2.00 USD | 10.00 USD | 1,000,000 | OpenRouter endpoints, read | |
| Azure through OpenRouter | 2.00 USD | 10.00 USD | 1,000,000 | OpenRouter endpoints, read | |
| Claude Platform on AWS through OpenRouter | 2.00 USD | 10.00 USD | 1,000,000 | OpenRouter endpoints, read | |
| Claude Platform on AWS through OpenRouter | 2.00 USD | 10.00 USD | 1,000,000 | OpenRouter endpoints, read | |
| Google through OpenRouter | 2.00 USD | 10.00 USD | 1,000,000 | OpenRouter endpoints, read | |
| Google through OpenRouter | 2.00 USD | 10.00 USD | 1,000,000 | OpenRouter endpoints, read | |
| Amazon Bedrock through OpenRouter | 2.20 USD | 11.00 USD | 1,000,000 | OpenRouter endpoints, read | |
| Amazon Bedrock through OpenRouter | 2.20 USD | 11.00 USD | 1,000,000 | OpenRouter endpoints, read | |
| Amazon Bedrock through OpenRouter | 2.20 USD | 11.00 USD | 1,000,000 | OpenRouter endpoints, read | |
| Amazon Bedrock through OpenRouter | 2.20 USD | 11.00 USD | 1,000,000 | OpenRouter endpoints, read | |
| Azure through OpenRouter | 2.20 USD | 11.00 USD | 1,000,000 | OpenRouter endpoints, read | |
| Azure through OpenRouter | 2.20 USD | 11.00 USD | 1,000,000 | OpenRouter endpoints, read | |
| Google through OpenRouter | 2.20 USD | 11.00 USD | 1,000,000 | OpenRouter endpoints, read | |
| Google through OpenRouter | 2.20 USD | 11.00 USD | 1,000,000 | OpenRouter endpoints, read | |
| Google through OpenRouter | 2.20 USD | 11.00 USD | 1,000,000 | OpenRouter endpoints, read | |
| Google through OpenRouter | 2.20 USD | 11.00 USD | 1,000,000 | OpenRouter endpoints, read |
Run it on your own hardware
No source lists weight files or a parameter count for this model, so its memory needs are Unknown.
Use it from your harness
Set up for Anthropic with the model claude-sonnet-5. Each endpoint page has the same setup for its own address.
OpenCode
Put this in opencode.json in your project folder:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"anthropic": {
"npm": "@ai-sdk/openai-compatible",
"name": "Anthropic",
"options": {
"baseURL": "https://api.anthropic.com/v1",
"apiKey": "{env:ANTHROPIC_API_KEY}"
},
"models": {
"claude-sonnet-5": {
"name": "Claude Sonnet 5",
"limit": {
"context": 1000000,
"output": 128000
}
}
}
}
}
}- OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.
From OpenCode documentation, read .
Pi
Put this in ~/.pi/agent/models.json:
{
"providers": {
"anthropic": {
"baseUrl": "https://api.anthropic.com/v1",
"api": "openai-completions",
"apiKey": "$ANTHROPIC_API_KEY",
"models": [
{
"id": "claude-sonnet-5"
}
]
}
}
}- The apiKey field can name an environment variable as $NAME.
From Pi documentation, read .
Codex
Codex speaks only the Responses API, and Anthropic documents no Responses address. A gateway that offers one can sit in between.
- Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.
From Codex documentation, read .
Claude Code
Put this in ~/.claude/settings.json, or variables in your shell:
claude --model claude-sonnet-5From Claude Code documentation, read .
Other ways to reach it
- OpenRouter, model
anthropic/claude-sonnet-5
Published results
These are results other people published. Baltor did not run them and does not rank models by them.
- Artificial Analysis Intelligence Index: 38.2 published by Artificial Analysis OpenRouter, read
- Artificial Analysis Coding Index: 71.5 published by Artificial Analysis OpenRouter, read
- Artificial Analysis Agentic Index: 43.6 published by Artificial Analysis OpenRouter, read
Sources of this page
Paid links
No link in this directory is a paid link or an ad, and no listing is paid for. The order and the contents of every list come from the sources named on this page.