← All models

Anthropic

Claude Sonnet 5

anthropic/claude-sonnet-5

Price per million tokens

Input
$3.000
Output
$15.000
Cache write
$3.750
Cache read
$0.300

Passed through at the provider's list rate. Gateway adds no markup to tokens.

Limits

Context window
200,000 tokens
Max output
64,000 tokens
Images
supported

What it costs to run

WorkloadInputOutputCostPer 1,000 calls
Short chat turn1,000500$0.0105$10.50
Long document summary50,0002,000$0.1800$180.00
Agent step with tools20,0001,500$0.0825$82.50
1M in, 1M out1,000,0001,000,000$18.0000$18000.00

Calling it

const res = await client.chat.completions.create({
  model: "anthropic/claude-sonnet-5",
  messages: [{ role: "user", content: "Hello" }],
});