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
| Workload | Input | Output | Cost | Per 1,000 calls |
|---|---|---|---|---|
| Short chat turn | 1,000 | 500 | $0.0105 | $10.50 |
| Long document summary | 50,000 | 2,000 | $0.1800 | $180.00 |
| Agent step with tools | 20,000 | 1,500 | $0.0825 | $82.50 |
| 1M in, 1M out | 1,000,000 | 1,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" }],
});