Claude Sonnet 5
Officialanthropic/claude-sonnet-5
Anthropic's most agentic Sonnet yet. Plans, uses tools, and runs autonomously at a level that recently required larger, pricier models — approaching Opus 4.8 on reasoning, coding, and tool use, at a fraction of the cost. 1M-token context window with native prompt caching. The new default for most agentic and production workloads.
Pricing
Source: anthropic_x0.18 · Verified 2026-07-23
Cache read $0.054/M · Cache write $0.675/M
Estimate cost
Protocols
- OpenAI Chat CompletionsStatus: Not supported—
- OpenAI ResponsesStatus: Not supported—
- Anthropic MessagesStatus: Available: Streaminghttps://api.routemux.com/anthropic
- Google Vertex AIStatus: Not supported—
- OpenAI ImagesStatus: Not supported—
- OpenAI SoraStatus: Not supported—
Call IDs
Use either ID to call this model via the API.
anthropic/claude-sonnet-5Try it
Replace the ROUTEMUX_KEY placeholder with your API key. Create one →
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.routemux.com/anthropic",
api_key="<ROUTEMUX_KEY>",
)
message = client.messages.create(
model="anthropic/claude-sonnet-5",
max_tokens=1024,
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(message.content[0].text)Other variants in this family
Frequently asked questions
›What is Claude Sonnet 5?
Anthropic's most agentic Sonnet — Opus-class capability at lower cost.
›How large is the context window of Claude Sonnet 5?
Claude Sonnet 5 supports a context window of up to 1M tokens, with up to 8K output tokens per request.
›How much does the Claude Sonnet 5 API cost?
Through RouteMux, Claude Sonnet 5 costs $0.54 for input and $2.7 for output (USD per 1M tokens), below the official list price.
›How do I call Claude Sonnet 5 via API?
Claude Sonnet 5 is OpenAI-compatible: point your base URL at RouteMux and set the model field to anthropic/claude-sonnet-5 — no code changes needed.
›Which input and output modalities does Claude Sonnet 5 support?
Claude Sonnet 5 accepts text, image as input and produces text as output.