Claude Sonnet 5
anthropic/claude-sonnet-5A mid-tier model balancing latency against reasoning quality for everyday application and assistant work.
- Text, Image
- $4 / $20
- 1M
- Jun 30, 2026
Overview
A mid-tier model balancing latency against reasoning quality for everyday application and assistant work. It is billed from the same balance as every other model and API here, and the price of each call comes back in the response.
Pricing
The default plan, in USD per million tokens.
| Meter | Per 1M tokens |
|---|---|
| Input | $4.00 |
| Output | $20.00 |
| Cache read | $1.00 |
| Cache write | $4.00 |
Your balance and per-call records come from /v1/credits and /v1/generation.
Use it
Point your client at the gateway and pass this model id. Nothing else changes.
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
baseURL: "https://gateway.agentsky.dev",
apiKey: process.env.AGENTSKY_API_KEY, // ast_…
});
const message = await client.messages.create({
model: "anthropic/claude-sonnet-5",
max_tokens: 256,
messages: [{ role: "user", content: "Summarise this ticket." }],
});
console.log(message.usage.cost); // USD, in the response