Skip to content
Language: English (United States)

Claude Sonnet 5

Sonnet 5 is Anthropic's most capable Sonnet-class model, with frontier performance across coding, agents, and professional work.

Context Window
1M
In
$2.23per million tokens
Out
$11.13per million tokens

Anthropic

Model IDanthropic/claude-sonnet-5

Specifications

Context Window
1M
Modalities
text
Price
$2.23 in · $11.13 out, per million tokens
Model ID
anthropic/claude-sonnet-5

Quick start

anthropic/claude-sonnet-5

$2.23 in · $11.13 out, per million tokens

TypeScript
import OpenAI from 'openai'
 
const client = new OpenAI({
  apiKey: process.env.HANZO_API_KEY,
  baseURL: 'https://api.hanzo.ai/v1'
})
 
const response = await client.chat.completions.create({
  model: 'anthropic/claude-sonnet-5',
  messages: [{ role: 'user', content: 'Hello!' }]
})
 
console.log(response.choices[0].message.content)
Get an API key →
200K1M$1.00$10.00

$44.56Bill a month

The same bill for this mix.

Claude Sonnet 5$44.561M
Claude Sonnet 5.5$44.561M

Use Claude Sonnet 5 via Hanzo AI

One API key. Every major model. OpenAI-compatible. Start free.