Claude Sonnet 5
Claude Sonnet 5 is a text and image-input model by Anthropic, available through the AgentSky API as anthropic/claude-sonnet-5 at $1.40 per million input tokens and $7.00 per million output tokens, with a 1M context window.
A mid-tier model balancing latency against reasoning quality for everyday application and assistant work.
Run Claude Sonnet 5 with an agent
Each guide pairs this model with a compatible agent and opens the composer with both selected.
- Hermes + Claude Sonnet 5
- Claude Code + Claude Sonnet 5
- Codex + Claude Sonnet 5
- OpenClaw + Claude Sonnet 5
- pi + Claude Sonnet 5
- DeepSeek Harness + Claude Sonnet 5
- Kimi Code + Claude Sonnet 5
- OpenCode + Claude Sonnet 5
- DeepAgents + Claude Sonnet 5
- goose + Claude Sonnet 5
- Kilo + Claude Sonnet 5
- MiniMax Code + Claude Sonnet 5
- OpenHands + Claude Sonnet 5
Pricing
USD per million tokens, using your plan when signed in.
| Meter | Per 1M tokens |
|---|---|
| Input | |
| Output | |
| Cache read | |
| Cache write |
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