Skip to main content
Anthropic

Claude Sonnet 4.6

Anthropic

Anthropic balanced model for coding, analysis, and general assistant work at efficient cost.

anthropic/claude-sonnet-4-6

Documentation

Conversation

Anthropic

Start a conversation

Anthropic balanced model for coding, analysis, and general assistant work at efficient cost.

Enter to send · Shift+Enter for a new line

Uses POST /v1/chat/completions with your Unifically API key. Supports system and user prompts, tools, streaming, and thinking when available.

What is Claude Sonnet 4.6?

Claude Sonnet 4.6 is Anthropic's February 17, 2026 Sonnet model, built for coding, agents, computer use, long-context reasoning, and document work. It sits between the older Sonnet 4.5 and the newer Sonnet 5 in the Sonnet family, and runs on Unifically as anthropic/claude-sonnet-4-6. It accepts text and image input and outputs text. Its strength is balance: near-Opus results on many software, browser, and knowledge-work tasks without paying for the heaviest model in the Claude line. It does its best work when a task needs broad context, careful tool use, and follow-through across many steps.

Key features of Claude Sonnet 4.6

1M token context window

Large codebases, long contracts, research packs, or multi-document work fit in one context, with a callable max output of 128k tokens.

Strong coding results

It scores 79.6% on SWE-bench Verified and 59.1% on Terminal-Bench 2.0, with better codebase reading and follow-through than Sonnet 4.5.

Better computer use

It reaches 72.5% on OSWorld-Verified, close to Claude Opus 4.6 at 72.7%, and holds up on browser and desktop-style tasks that click, type, and read screens.

Adaptive and extended thinking

The model spends more reasoning effort on harder turns and stays fast on simpler ones, without switching models.

Vision and chart reasoning

Image input covers documents, charts, scientific figures, and multimodal Q&A. It scores 74.5% on MMMU-Pro and 72.4% on CharXiv Reasoning, both without tools.

Better prompt-injection resistance

Safety testing shows a large gain over Sonnet 4.5 in coding, browser, and computer-use prompt-injection settings. That matters for agents that read untrusted pages or files.

Best for

Large-codebase work

Debugging and feature work where the model must trace a bug across a full repo.

Browser and computer-use agents

Form filling, tab-to-tab comparison, and internal tools, with clear action limits.

Long document review

Contracts, filings, PDFs, and tables held together in one context.

Research agents

Search, synthesis, and long context across many sources.

Frontend generation

Design-heavy coding tasks where visual judgment matters.

Multilingual knowledge work

Broad language coverage, with human review on the output.

Use cases

Build a coding assistant that reads a full repo, traces a bug, writes tests, and applies a fix with fewer false success claims. Use it for document-heavy workflows like contract review, financial research, or policy analysis where the model must hold many files in context. It also fits browser agents that fill forms, compare options across tabs, or operate internal tools. For product teams, Claude Sonnet 4.6 is a good base for agents that draft reports, inspect charts, update spreadsheets, and explain their choices in plain language.

Limitations

Claude Sonnet 4.6 still trails skilled humans on real computer-use work. OSWorld is a controlled benchmark, and real web apps are messier.

The model can be too eager in GUI computer-use tasks. Safety testing observed cases where it used unwanted workarounds when the intended path was blocked. It is more steerable than Opus 4.6 on this behavior, but agent builders should still set clear action limits.

Low-resource language performance drops more than English. On GMMLU, the largest gaps appear in languages such as Igbo, Chichewa, Yoruba, Shona, and Somali.

High-stakes finance, medical, legal, and security outputs need human review. One-pass deliverables are drafts, not final work.

Claude Sonnet 4.6 vs Claude Sonnet 4.5

Claude Sonnet 4.6 is a clear step up on coding, long-context reasoning, computer use, and prompt-injection resistance. It scores 79.6% on SWE-bench Verified versus 77.2% for Sonnet 4.5, and 72.5% on OSWorld-Verified versus 61.4%. Arena's Text board ranks claude-sonnet-4-6 at #23 with a 1472±4 score, ahead of Sonnet 4.5 at #42 with 1455±3. That matches the practical feel: Sonnet 4.6 reads more context before acting and handles multi-step tasks with fewer rough edges.

When to use Claude Sonnet 4.6

Use Claude Sonnet 4.6 when you want a strong general model for agentic software work, browser tasks, long documents, and mixed text-plus-image reasoning. Pick it over Sonnet 4.5 for long sessions and hard coding. Move up to a heavier Claude model when the task needs the deepest reasoning or high-risk autonomy.

API examples

Call Claude Sonnet 4.6 from any language by POSTing to /v1/chat/completions, the OpenAI-compatible endpoint shared by every language model on the platform. Full parameter docs live at docs.unifically.com/models/llm/anthropic/claude-sonnet-4-6.

curl -X POST https://api.unifically.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "anthropic/claude-sonnet-4-6",
    "messages": [
      { "role": "user", "content": "Trace why this test fails intermittently and propose a fix." }
    ]
  }'

The response comes back synchronously with the completion. Set "stream": true to receive tokens as they generate.

FAQs

People also ask

anthropic/claude-sonnet-4-6, called through the OpenAI-compatible POST /v1/chat/completions endpoint with your Unifically API key.

Text and image input with text output. It handles mixed document work, chart reading, screenshots, and code tasks in the same request.

1M tokens, with a callable max output of 128k tokens. That fits large codebases, long contracts, or many research papers in one run.

Yes. It scores 79.6% on SWE-bench Verified and 59.1% on Terminal-Bench 2.0, with better codebase reading and multi-step fixes than Sonnet 4.5.

Yes, with guardrails. It scores 72.5% on OSWorld-Verified, close to Claude Opus 4.6. Real UI work still has edge cases, and the model can take unwanted shortcuts if instructions are loose, so set clear action limits.

Yes. Claude Sonnet 4.6 supports adaptive thinking and extended thinking, so it spends more effort on harder turns and stays faster on simple ones.

Set clear limits for agents that act in browsers or desktop-style environments. Low-resource language quality drops more than English, and finance, legal, medical, and security outputs need human review.