Claude Sonnet 5 API
Call Claude Sonnet 5 from Anthropic through Deftrouter's OpenAI-compatible endpoint: one key, the OpenAI SDK you already use, and usage tracked per key. Access is by request.
Everyday Claude agent model for coding, planning, browsing, and general work.
Specifications
| Provider | Anthropic |
|---|---|
| Model ID | claude-sonnet-5 |
| Context window | 1,000,000 tokens |
| Maximum output | 128,000 tokens |
| Input types | text, image, PDF |
| Reasoning | Yes |
| Tool calling | Yes |
| Structured output | Yes |
| Open weights | No |
| Released | June 29, 2026 |
| Knowledge cutoff | January 31, 2026 |
Claude Sonnet 5 API pricing
These are Anthropic's list prices as of November 30, 2026, in US dollars per 1 million tokens. Deftrouter confirms its own price by email when you request access.
For example, a request with 10,000 input tokens and 1,000 output tokens costs about $0.03 at list price.
Call Claude Sonnet 5 with the OpenAI SDK
Point the OpenAI SDK at Deftrouter and set the model ID. The rest of your code stays the same.
from openai import OpenAI
client = OpenAI(
base_url="https://api.deftrouter.com/v1",
api_key="YOUR_DEFTROUTER_KEY",
)
# Your Deftrouter key, sent to one endpoint for every model.
reply = client.chat.completions.create(
model="claude-sonnet-5",
messages=[{"role": "user", "content": "Hello"}],
) Request Claude Sonnet 5 API access
Access is by request for now. Leave your email and the models you need, and we will email you when your key is ready.
Claude Sonnet 5 API questions
How do I get Claude Sonnet 5 API access?
Request it through Deftrouter: send the form on this page with your email, and we will email you when your key is ready. You then call Claude Sonnet 5 with the OpenAI SDK by changing the base URL and the model ID.
How much does the Claude Sonnet 5 API cost?
Anthropic lists Claude Sonnet 5 at $2.00 per 1 million input tokens and $10.00 per 1 million output tokens as of November 30, 2026. Deftrouter confirms its own price by email when you request access.
What is the context window of Claude Sonnet 5?
Claude Sonnet 5 accepts up to 1,000,000 tokens of context and can return up to 128,000 tokens in a single response.
Does Claude Sonnet 5 support tool calling and image input?
Claude Sonnet 5 supports tool calling. It accepts images as input.
More Anthropic models
| Model | Context window | Input | Output |
|---|---|---|---|
| Claude Fable 5.2 | 1,000,000 | $8.00 | $40.00 |
| Claude Haiku 5.5 | 1,000,000 | $0.10 | $0.50 |
| Claude Sonnet 5.5 | 1,000,000 | $2.00 | $10.00 |
| Claude Opus 5.5 | 1,000,000 | $4.00 | $20.00 |
| Claude Fable 5.1 | 1,000,000 | $10.00 | $50.00 |
| Claude Opus 5 | 1,000,000 | $5.00 | $25.00 |
Model data from models.dev, retrieved November 30, 2026. Limits and prices are set by the provider and can change. models.dev · Anthropic