Back to Models
Anthropic

Claude Sonnet 5

Available
5% off— A 5% discount applies to input and output token pricing only.

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 unit1M tokens
Output / 1M tokens$9.50
Output unit1M tokens
Cache Read / 1M tokens$0.20
Cache Read unit1M 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

Yes

Vision

Available

Yes

Function calling

Available

Yes

Reasoning

Available

Yes

Service tiers

Not listed

No

Supported Parameters

frequency_penalty
logit_bias
max_completion_tokens
presence_penalty
reasoning_effort
response_format
stop
temperature
tool_choice
tools
top_p

Category Radar

Aggregated from the benchmark values present for reasoning, code, math, and accuracy.

Benchmark Breakdown

Detailed benchmark results drawn from the current payload.

GPQA

reasoning

Graduate-level science questions designed to be difficult to shortcut.

91.1%

Reported score

HLE

reasoning

A very hard expert-level exam across a wide range of subjects.

41.3%

Reported score

SciCode

code

Coding tasks drawn from real scientific workflows.

54.3%

Reported score

LCR

accuracy

Tests long-context reasoning over large documents and conversations.

82%

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();
Claude Sonnet 5 API - Analytical AI by anthropic | Routeway | Routeway