Claude Sonnet 5
Description
Sonnet 5 is Anthropic's most capable Sonnet-class model, with frontier performance across coding, agents, and professional work
At a Glance
Key pricing and model details available for this model.
Input price
$2.00$1.90
per 1M tokens
Output price
$10.00$9.50
per 1M tokens
Context window
1M
tokens
Hallucination rate
0%
Token Pricing
Token pricing normalized to per-million-token rates.
Input / 1M tokens
$2.00$1.90
Output / 1M tokens
$10.00$9.50
Cache Read / 1M tokens
$0.20
Cache Write (5m) / 1M tokens
$2.50
Cache Write (1h) / 1M tokens
$4.00
Token Pricing Details
Rates are shown per 1M tokens for easier comparison.
| Input / 1M tokens | $1.90 |
| Input unit | 1M tokens |
| Output / 1M tokens | $9.50 |
| Output unit | 1M tokens |
| Cache Read / 1M tokens | $0.20 |
| Cache Read unit | 1M tokens |
| Cache Write (5m) / 1M tokens | $2.50 |
| Cache Write (1h) / 1M tokens | $4.00 |
Feature Availability
Capabilities explicitly listed in the current payload.
LLM
Available
Vision
Available
Function calling
Available
Reasoning
Available
Supported Parameters
Artificial Analysis
Index scores currently reported for this model.
Intelligence Index
53.4
Coding Index
71.5
Category Radar
Aggregated from the benchmark values present for reasoning, code, math, and accuracy.
Benchmark Breakdown
Detailed benchmark results drawn from the current payload.
Intelligence Index
Overall 'how smart' score for an AI, combining reasoning, math, coding, and knowledge.
53.4
Reported score
Coding Index
How well the model handles real programming tasks.
71.5
Reported score
GPQA
Graduate-level science questions designed to be difficult to shortcut.
91.1%
Reported score
HLE
A very hard expert-level exam across a wide range of subjects.
39.6%
Reported score
SciCode
Coding tasks drawn from real scientific workflows.
53.6%
Reported score
LCR
Tests long-context reasoning over large documents and conversations.
70.7%
Reported score
Code Samples
Quick start with the Routeway API
import OpenAI from 'openai';
const openai = new OpenAI({
baseURL: "https://api.routeway.ai/v1",
apiKey: "<YOUR_API_KEY>",
});
async function main() {
const completion = await openai.chat.completions.create({
model: "claude-sonnet-5",
messages: [
{
role: "user",
content: "Explain quantum computing in simple terms"
}
]
});
console.log(completion.choices[0].message);
}
main();