Loading model…正在加载模型详情…
Loading model…正在加载模型详情…
Chat with Claude Sonnet 5, Anthropic's model for coding and self-checking multi-step work, or integrate it through the API.
Use it inClaude CodeClaude desktop app
Anthropic describes Claude Sonnet 5 as a model for agentic coding, reasoning and professional knowledge tasks. Its focus includes planning a sequence of actions, reviewing intermediate results and correcting its work as the task progresses.
On UniRoute, send a message in the workspace or use the model ID claude-sonnet-5 through Chat Completions or Anthropic Messages. The API section provides request examples for both formats.
Claude Sonnet 5 follows Claude Sonnet 4.6. Anthropic emphasizes gains in agentic execution, code generation and self-verification; the published evaluations below cover coding, reasoning and computer use.
What Claude Sonnet 5 is built for.
Draft code changes, investigate errors and explain how a proposed fix should be tested.
Break a larger assignment into steps, examine intermediate findings and revise the plan as new information arrives.
Connect function calls to application tools so the model can use their results in a multi-step conversation.
This page accepts text messages; file inputs and function calling need the API, while search and structured output are not exposed by the current model configuration.
The variants you can call, with their options and prices.
| Variant | Model ID | Modes | Inputs | Output | Price |
|---|---|---|---|---|---|
| Claude Sonnet 5 | claude-sonnet-5 | Chat and text generation | Chat messages | Streaming; Thinking; Context window: Not stated on this page | $0.84 input / $4.20 output per 1M tokens |
Priced per token. Input and output are billed separately.
| Usage | Official API | UniRoute | Save |
|---|---|---|---|
| Input | $2.00 | $0.84 | Save 58% |
| Output | $10.00 | $4.20 | Save 58% |
| Cache read | $0.20 | $0.084 | Save 58% |
| Cache write (5 min) | $2.50 | $1.05 | Save 58% |
| Cache write (1 hour) | $4.00 | $1.68 | Save 58% |
Official price: platform.claude.com · 2026-11-07
Prices updated 2026-11-08.
Pay as you go from a single USD wallet balance. You see the quote before each request.
Call Claude Sonnet 5 through OpenAI- or Anthropic-compatible endpoints.
curl 'https://api.uniroute.app/v1/chat/completions' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "model": "claude-sonnet-5", "messages": [ { "role": "user", "content": "Hello" } ], "stream": false}'curl 'https://api.uniroute.app/v1/messages' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'anthropic-version: 2023-06-01' \ -H 'Content-Type: application/json' \ -d '{ "model": "claude-sonnet-5", "max_tokens": 1024, "messages": [ { "role": "user", "content": "Hello" } ]}'| Name | In | Description |
|---|---|---|
model | Body | Model ID to run. |
messages | Body | The conversation as a list of role and content messages. |
max_tokens | Body | Upper limit on generated tokens (Anthropic Messages). |
stream | Body | Set to true to receive the response as a stream. |
anthropic-version | Header | Protocol version header for the Anthropic Messages API. |
Published scores next to the models they were compared with.
| Category | Claude Sonnet 5 | Claude Sonnet 4.6 | Claude Opus 4.8 |
|---|---|---|---|
| Positioning | Strongest Agentic Mid-tier Model | Previous Generation Sonnet | Current Flagship Opus Model |
| Context Window | 1M tokens | 1M tokens | 1M tokens |
| Agentic Capabilities | ★★★★★ (Best) | ★★★★ | ★★★★★ |
| Agentic Coding (SWE-bench Pro) | 63.20% | 58.10% | 69.20% |
| Agentic Coding (Terminal-Bench) | 80.40% | 67.00% | 82.70% |
| Computer Use (OSWorld-Verified) | 81.20% | 78.50% | 83.40% |
| Multidisciplinary Reasoning (Humanity's Last Exam) | 43.2% (no tools) / 57.4% (with tools) | 34.6% / 46.8% | 49.8% / 57.9% |
| Knowledge Work (GDPval-AA) | 1618 | 1395 | 1615 |
| Adaptive Thinking | Enabled by Default | Supported | Supported |
| Safety | Significantly improved, default cyber safeguards | Good | Highest |
| Cost-Performance | ★★★★★ (Best) | ★★★★ | ★★★ |
| Recommended Use Cases | Agent Building, Large-scale Coding, Enterprise Automation | General Tasks | Extremely Complex Deep Reasoning |
Figures published by Anthropic from its own evaluations. Results depend on each benchmark’s configuration.
Typical ways to put Claude Sonnet 5 to work.
Add code generation and debugging assistance to a development workflow through the API.
Turn a detailed brief into a plan, a draft and a checklist for reviewing the result.
Use the API to combine model responses with your own tools and follow-up checks.
Common questions about Claude Sonnet 5.
Anthropic describes Claude Sonnet 5 as a model for agentic coding, reasoning and professional knowledge tasks. Its focus includes planning a sequence of actions, reviewing intermediate results and correcting its work as the task progresses.
From $0.84 input / $4.20 output per 1M tokens. Input and output are billed separately according to usage. The pricing table and worked examples show how the rates apply (prices updated 2026-11-08).
Use the model ID claude-sonnet-5 with Chat Completions or Anthropic Messages. The API section shows both request formats and their parameters.
The workspace on this page accepts text messages. File inputs need the API; they cannot be attached in this chat box.
The current UniRoute model configuration does not expose a reasoning-effort setting. Use the API parameters listed on this page as the supported request surface.
No. Requests are paid from your wallet balance. You can read this page and review the prices without paying, and you need an account with funds to send a message.