Model detail
Claude Sonnet 5
Sonnet 5 is Anthropic's most capable Sonnet-class model, with frontier performance across coding, agents, and professional work. It supports adaptive thinking with selectable reasoning effort levels (low, medium, high, max, and x-high), a 1M-token context window, and text, image, and file inputs. Sonnet 5 uses an updated tokenizer and includes real-time cyber safeguards that block certain high-risk dual-use activities.
Model specs
- Model ID
-
claude-sonnet-5
- Context length
- 1M
- Max output
- 128K
- I/O modalities
- Released
- 2026-06
02
API endpoints
One MixRoute gateway, OpenAI-compatible
-
Anthropic Messages
/v1/messagesPOST -
OpenAI-compatible
/v1/chat/completionsPOST -
Gemini
/v1beta/models/{model}:generateContentPOST
03
Pricing
Flat rate, unit: /1M Tokens
Input
$2.0000 /1M Tokens
Completion
$10.0000 /1M Tokens
Cache read
$0.2000 /1M Tokens
Cache creation
$2.5000 /1M Tokens
05
Selection summary
Quickly judge whether it fits your workload
What is this model good for?
Frontier coding, agents, and professional work
Use Sonnet 5 for coding, agentic workflows, and professional tasks. It supports adaptive thinking with selectable reasoning effort levels, a 1M-token context window, and text/image/file inputs.
What should you check before using it?
Tune reasoning effort and review safety safeguards
Sonnet 5 offers five reasoning effort levels (low to x-high). Test your workload at the appropriate level. Note that real-time cyber safeguards block certain high-risk dual-use activities. Knowledge cutoff: 2026-01.
Why use it through MixRoute?
Claude Sonnet 5 takes text and images on one route
Text and image inputs share the same route and the same key. MixRoute serves Claude Sonnet 5 on the OpenAI-compatible endpoint /v1/chat/completions; point your existing client at https://api.mixroute.ai/v1 with the model ID claude-sonnet-5 and re-run your integration tests.
07
Capabilities & compatibility
Unconfirmed capabilities stay "Unknown," no guesses
Tool calling
Claude Sonnet 5 supports function and tool calls.
tools definition; the response returns tool_calls to execute and feed results back.
Structured output
Claude Sonnet 5 can produce JSON-formatted output on demand.
response_format: { type: "json_schema" } forces valid JSON output.
Streaming
Claude Sonnet 5 supports streamed responses.
stream: true streams tokens incrementally, so chat UIs render as they arrive.
Prompt caching
Claude Sonnet 5 supports prompt caching under supported routing conditions.
Vision input
Claude Sonnet 5 can process image inputs alongside text.
image_url content part alongside text messages.
OpenAI SDK
Call Claude Sonnet 5 through MixRoute's OpenAI-compatible endpoint.
base_url to https://api.mixroute.ai/v1; everything else follows the OpenAI style.
08
Token cost estimator
Live estimate from this page's pricing, not an actual bill
Share of the same prefix read repeatedly, up to 100%
09
FAQ
Compare claude-sonnet-5 against models of similar capability and pricing on your actual workload. Evaluate latency, output quality, instruction following, and cost per task. Run side-by-side tests with your own prompts — the best model depends on your specific use case, not just benchmark scores.
One endpoint, a testable decision
Test this model and alternate routes with the same request format
Start from a real workload, then let quality, total cost, and failure conditions decide whether to send production traffic.