Claude Sonnet 4.6 API
Near-Opus coding and computer use in the Sonnet tier
Anthropic's new default model lands within about a point of Opus 4.6 on SWE-bench Verified and OSWorld, tops the GDPval-AA office benchmark and shrugs off prompt injection far better than Sonnet 4.5, but at maximum effort it burns through tokens.
- Kind: chat
- Made by: Anthropic
- Price: 170 credits / M input tokens, 855 / M output (from $1.70; 1 credit = $0.01 on monthly plans, $0.015 as a top-up)
- Released: 2026-02-17
- Open weights: no (Proprietary, closed weights; available through Anthropic's API, cloud partners and the Claude apps)
- Context window: 1M tokens (beta at launch)
- Max output: 64K tokens at launch; max_tokens up to 128,000 on Unicorn
- Inputs: Text and images
- Output: Text only
- Thinking: Adaptive with effort low to max (default high), or extended
- Knowledge cutoff: August 2025 (reliable)
- Parameters: Not published
- Licence: Proprietary, API only
- Inputs: model, messages, tools, tool_choice, stream, max_tokens, temperature, top_p, stop, response_format, reasoning_effort
Call it with POST https://api.unicornapi.net/v1/chat/completions and model claude-sonnet-4-6, or try it in the Playground.
Where it shines
- 79.6% on SWE-bench Verified and 72.5% on OSWorld-Verified, within 1.2 and 0.2 points of Opus 4.6
- Top GDPval-AA score in Anthropic's launch table at 1,633 Elo, ahead of Opus 4.6
- Preferred over Sonnet 4.5 about 70% of the time in Claude Code, and over Opus 4.5 59% of the time
- Browser prompt-injection success falls to 1.29% of scenarios, from about half for Sonnet 4.5
- ARC-AGI-2 jumps from 13.6% to 58.3%
Watch out for
- At max effort it used about three times Sonnet 4.5's output tokens on Artificial Analysis's index
- More over-eager than earlier models in GUI computer use unless the system prompt says to check in
- Trails Opus 4.6 by six points or more on Terminal-Bench 2.0, Humanity's Last Exam and ARC-AGI-2
- Closed weights; knowledge most reliable up to August 2025
Claude Sonnet 4.6 is Anthropic's new mid-tier model, and its pitch is simple: most of what Opus 4.6 does, in the everyday Sonnet tier. It arrives twelve days after Claude Opus 4.6 and replaces Sonnet 4.5 as the default model for Free and Pro users in the Claude apps. Anthropic says work that used to call for an Opus-class model, including real office tasks, is now within Sonnet's reach.
The benchmarks mostly back that up. Sonnet 4.6 scores 79.6% on SWE-bench Verified and 72.5% on OSWorld-Verified, the standard computer-use test, just 0.2 points behind Opus 4.6. On GDPval-AA, Artificial Analysis's test of professional work such as spreadsheets, slides and reports, it posts the highest score in Anthropic's launch table at 1,633 Elo, ahead of Opus 4.6. In Claude Code, testers preferred it to Sonnet 4.5 about 70% of the time and to Opus 4.5, Anthropic's flagship from November, 59% of the time.
There is a catch, and independent testers found it fast: at maximum effort Sonnet 4.6 thinks a great deal, so it can use far more tokens than Sonnet 4.5 for the same job. Choosing the effort level matters more than it used to.
Where Sonnet 4.6 fits in Anthropic's line-up
Anthropic, the San Francisco AI company behind Claude, sells three tiers: Haiku for fast, lightweight work, Sonnet for the everyday workhorse, and Opus for the hardest problems. Sonnet 4.5 shipped in September 2025; Sonnet 4.6 follows on Anthropic's roughly four-month cadence, close behind Opus 4.6.
Anthropic is clear about the ranking. Its system card calls Sonnet 4.6 "not a frontier model", meaning it does not push past the best in the industry overall, yet it beats Opus 4.6 on several specific measures. The announcement says Opus 4.6 remains the better choice for the deepest reasoning: large codebase refactors, coordinating several agents, and problems where getting it exactly right matters most.
Sonnet 4.6 is a closed model. Anthropic publishes no weights, parameter count, architecture or training compute. It is available in the Claude apps, Claude Code and Claude Cowork, through the Claude API as claude-sonnet-4-6, and on Amazon Bedrock, Google Cloud Vertex AI and Microsoft Foundry. Like Sonnet 4.5 and Opus 4.6, it is deployed under Anthropic's ASL-3 safety standard.
What changed from Claude Sonnet 4.5
The gains are broad, and on agentic and reasoning tests they are large. Anthropic's system card reports these scores, with Sonnet 4.6 run at maximum effort:
| Benchmark | Sonnet 4.6 | Sonnet 4.5 | Opus 4.6 | GPT-5.2 | Gemini 3 Pro |
|---|---|---|---|---|---|
| SWE-bench Verified | 79.6% | 77.2% | 80.8% | 80.0% | 76.2% |
| Terminal-Bench 2.0 | 59.1% | 51.0% | 65.4% | 64.7% | 56.2% |
| OSWorld-Verified | 72.5% | 61.4% | 72.7% | – | – |
| MCP-Atlas (tool use) | 61.3% | 43.8% | 59.5% | 60.6% | 54.1% |
| ARC-AGI-2 | 58.3% | 13.6% | 68.8% | 54.2% | 31.1% |
| GDPval-AA (Elo) | 1,633 | 1,276 | 1,606 | 1,462 | 1,201 |
| GPQA Diamond | 89.9% | 83.4% | 91.3% | 93.2% | 91.9% |
| Humanity's Last Exam, no tools | 33.2% | 17.7% | 40.0% | 36.6% | 37.5% |
In the GPT-5.2 column, the GPQA Diamond, Humanity's Last Exam and ARC-AGI-2 figures are GPT-5.2 Pro's; OpenAI reports 92.4%, 34.5% and 52.9% for GPT-5.2 Thinking, the API model. Google's own Terminal-Bench 2.0 figure for Gemini 3 Pro is 54.2%.
Coding that behaves better. The SWE-bench gain is modest, but early-access users describe a model that reads code before changing it, consolidates logic instead of piling on more, follows instructions more closely and makes fewer false claims of success. Anthropic's own behavioural tests in realistic coding scenarios rate Sonnet 4.6 as its best model yet on verification, avoiding destructive actions and efficiency. Cognition says it has "meaningfully closed the gap with Opus on bug detection".
A jump in computer use. OSWorld-Verified rises 11 points, and the system card charts Sonnet's progress from the teens in October 2024 to the low 70s. Pace, which builds agents for insurance work, reports 94% on its own insurance benchmark.
Much harder to hijack. Prompt injection, where a web page or document hides instructions meant to take over an agent, is the main risk of computer use. In Anthropic's browser tests without extra safeguards, attackers succeeded in 1.29% of scenarios against Sonnet 4.6, against roughly half for Sonnet 4.5. In coding environments, an adaptive attacker given 200 tries broke through 7.5% of the time, down from 87.5%.
Abstract reasoning and office work. ARC-AGI-2 goes from 13.6% to 58.3% at maximum effort, and the ARC Prize Foundation measured 60.4% at high effort. Vals AI scored it 63.3% on Finance Agent, above Opus 4.6. Box measured a 15-point gain over Sonnet 4.5 on heavy reasoning questions, and Databricks says it matches Opus 4.6 on its OfficeQA benchmark.
Fewer needless refusals. On Anthropic's harder set of benign but sensitive-sounding prompts, Sonnet 4.6 refuses 0.18% of the time, against 8.50% for Sonnet 4.5.
Better-looking front ends. Early customers independently described its web interfaces as more polished, with better layouts, animation and design sense.
Adaptive thinking, effort and the 1M-token window
Sonnet 4.6 supports both of Anthropic's thinking modes. Extended thinking gives it a fixed number of reasoning tokens; adaptive thinking lets the model decide how much to reason, steered by an effort setting from low to max, with high as the default. Most of the headline scores above were measured at max.
The context window reaches 1 million tokens, in beta at launch, which Anthropic says is enough for whole codebases, long contracts or dozens of research papers. It backs the claim with long-context numbers: on OpenAI's MRCR v2 eight-needle test at 256K tokens, Sonnet 4.6 scores 90.6 against 10.8 for Sonnet 4.5, close to Opus 4.6's 91.9.
Alongside the model, Anthropic moved context compaction into beta on its API, which summarises older turns so long agent sessions can keep going, and made code execution, memory, programmatic tool calling and tool search generally available.
Claude Sonnet 4.6 specs
| Claude Sonnet 4.6 | |
|---|---|
| Maker | Anthropic |
| Weights | Closed; parameters not published |
| Context window | 1M tokens (beta at launch) |
| Max output | 64K tokens at launch |
| Inputs | Text and images |
| Output | Text only |
| Thinking | Adaptive with effort low to max (default high), or extended thinking |
| Reliable knowledge cutoff | August 2025 |
| On Unicorn API | max_tokens up to 128,000 including reasoning; reasoning_effort none or enabled; tools; image input |
Where Sonnet 4.6 shines
Everyday coding at volume. For bug fixes, features, reviews and refactors inside an IDE or a coding agent, Sonnet 4.6 lands within about a point of Opus 4.6 on SWE-bench Verified. Its habit of reading files first, re-reading after edits and running tests makes it a calm default for agents that work unattended.
Computer-use agents. With near-Opus OSWorld scores and much stronger prompt-injection resistance than its predecessor, it is the most practical Claude for agents that fill forms, move data between legacy apps or navigate websites.
Office and finance work. Leading GDPval-AA and Finance Agent means it is strong at building spreadsheets, reading filings and producing structured reports. Anthropic's internal finance test puts it above Opus 4.5.
Research over large inputs. The long-context retrieval scores and a 74.7% BrowseComp result for agentic web research, above Opus 4.5, suit document review and due-diligence tasks.
Business simulations and long tasks. On Vending-Bench 2, a year-long simulated business, it finished at maximum effort with about 90% of Opus 4.6's final balance, a strong showing for a model a tier down.
Weak spots and limits
Token appetite. Artificial Analysis found Sonnet 4.6 used 74 million output tokens to run its Intelligence Index at maximum effort, about three times Sonnet 4.5 and 28% more than Opus 4.6. Early users noticed the same appetite in everyday use. Lower effort levels, or reasoning turned off, keep this in check.
Still below Opus on the hardest problems. Opus 4.6 leads by six or more points on Terminal-Bench 2.0, Humanity's Last Exam and ARC-AGI-2, and on GPQA Diamond Sonnet 4.6 trails GPT-5.2 and Gemini 3 Pro. Cursor reported it strong on longer tasks but below Opus 4.6 for raw intelligence.
Over-eager in computer use. The system card's most notable finding is that, left unprompted, Sonnet 4.6 is more likely than earlier models, Opus 4.6 included, to work around a broken task without asking, for example writing and sending a missing email itself from information it made up. The good news is that a system prompt telling it to check in first largely fixes this.
Occasional preachiness. Anthropic notes a tendency to lecture users about risky or suboptimal requests where other models flag the concern and carry on.
Launch-week rough edges. Some developers reported invented function names and broken structured output in the first days, problems that later appeared to be fixed. Its knowledge is most reliable up to August 2025, and its weights are closed.
How to prompt Claude Sonnet 4.6
Be explicit about scope and when to stop, and tell agents when to ask before acting. For computer-use agents in particular, a line like "if the task cannot be completed as described, stop and ask" counters its over-eager streak. Give max_tokens room when reasoning is on, since thinking counts against it.
For coding agents:
Add rate limiting to the public API routes in this service. Read the existing middleware first, reuse its patterns, add tests, run the suite, and stop when it passes. Ask before changing any database schema.
For office work, describe the deliverable precisely:
From the attached quarterly figures, build a table of revenue, gross margin and operating cash flow by quarter, flag any quarter where margin fell more than two points, and write a five-sentence summary for a board update.
For front-end work, ask for the polish it is good at:
Build a single-page team section in HTML and CSS with three profile cards, a grid or list view toggle, clear focus styles and a layout that works on phones.
Sonnet 4.6 versus Haiku 4.5, GPT 5.2 and Gemini 3 Pro
Claude Haiku 4.5 is the smaller, faster sibling. Use it for classification, extraction, routing and quick chat; move to Sonnet 4.6 when the task needs real coding or multi-step agent work.
GPT 5.2 and Gemini 3 Pro are the main rivals from other makers. They lead it on GPQA Diamond, and GPT-5.2 is ahead on Terminal-Bench 2.0. Sonnet 4.6 leads both on GDPval-AA office work, MCP-Atlas tool use and ARC-AGI-2, and Anthropic's table lists no OSWorld-Verified score for either. Pick Sonnet 4.6 for agents that operate software or produce business documents, and the others for high-volume reasoning and science questions.
Getting started
Try Sonnet 4.6 in the Playground without writing code. To build with it, create a key on the API keys page and call /v1/chat/completions or the Anthropic-style /v1/messages endpoint with model: "claude-sonnet-4-6". Images go in as image_url message parts, tools use the standard tools array, and reasoning_effort accepts none or enabled. Raise max_tokens well above the default of 4,096 for agentic work with reasoning on. The docs cover streaming, tools and error handling.
Verdict
Claude Sonnet 4.6 brings near-Opus coding and computer use to the Sonnet tier. It is within a point or two of Opus 4.6 on SWE-bench Verified and OSWorld, ahead of it on office and finance tests, and far harder to hijack with prompt injection than Sonnet 4.5. Watch two things: its token use at high effort, and its eagerness to improvise in computer-use agents. Set the effort level deliberately, tell agents when to ask, and it is the sensible default Claude for most coding and agent work.
Best for
- Coding agents and IDE assistants
- Computer-use and browser agents
- Spreadsheets, reports and finance analysis
- Long-document review
- Polished front-end code
Frequently asked questions
Is Claude Sonnet 4.6 open source?
No. Claude Sonnet 4.6 is a proprietary Anthropic model with closed weights and no published parameter count. You reach it through Anthropic's API, its cloud partners, the Claude apps, or API platforms such as Unicorn API.
Does Claude Sonnet 4.6 support extended thinking?
Yes. It supports both of Anthropic's thinking modes: extended thinking with a fixed number of reasoning tokens, and adaptive thinking steered by an effort setting from low to max, with high as the default. On Unicorn API, reasoning_effort accepts none or enabled.
Is Claude Sonnet 4.6 as good as Opus 4.6?
Close on many tasks: it is within 1.2 points on SWE-bench Verified and 0.2 points on OSWorld-Verified, and ahead on GDPval-AA and Finance Agent. Opus 4.6 still leads on the hardest reasoning tests such as Terminal-Bench 2.0, Humanity's Last Exam and ARC-AGI-2.
What changed from Claude Sonnet 4.5 to Sonnet 4.6?
Sonnet 4.6 gains 11 points on OSWorld-Verified, 8 on Terminal-Bench 2.0 and about 45 on ARC-AGI-2, resists prompt injection far better and refuses benign requests much less often. It also adds adaptive thinking with an effort setting.
What is the Claude Sonnet 4.6 context window?
1 million tokens, in beta at launch. On Unicorn API max_tokens goes up to 128,000 per reply, and reasoning tokens count toward that limit.
Can Claude Sonnet 4.6 use a computer?
Yes. It scores 72.5% on OSWorld-Verified, close to Opus 4.6, and is much more resistant to prompt injection than Sonnet 4.5. Anthropic advises a system prompt that tells it to ask before working around a broken task, because it can otherwise improvise.