Claude Sonnet 4.6 API
Call Claude Sonnet 4.6 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.
Claude workhorse for coding agents, careful analysis, and production cost control.
Specifications
| Provider | Anthropic |
|---|---|
| Model ID | claude-sonnet-4-6 |
| 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 | February 17, 2026 |
| Knowledge cutoff | August 31, 2025 |
Claude Sonnet 4.6 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.045 at list price.
Call Claude Sonnet 4.6 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-4-6",
messages=[{"role": "user", "content": "Hello"}],
) Request Claude Sonnet 4.6 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 4.6 API questions
How do I get Claude Sonnet 4.6 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 4.6 with the OpenAI SDK by changing the base URL and the model ID.
How much does the Claude Sonnet 4.6 API cost?
Anthropic lists Claude Sonnet 4.6 at $3.00 per 1 million input tokens and $15.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 4.6?
Claude Sonnet 4.6 accepts up to 1,000,000 tokens of context and can return up to 128,000 tokens in a single response.
Does Claude Sonnet 4.6 support tool calling and image input?
Claude Sonnet 4.6 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