Skip to content

Models / Anthropic

Claude Sonnet 4.6

Available

Claude Sonnet 4.6 is a Sonnet model that Anthropic released on 17 February 2026.

Good for Coding agents · Long context · Images and screenshots

claude-sonnet-4-6Get API keyCompare

Is it right for you?

Anthropic calls it its most capable Sonnet at the time, for coding, computer use, long-context reasoning and agent planning. Newer models exist: Claude Sonnet 5 and Anthropic’s current Sonnet, Claude Sonnet 5.5, which Yunshu Router does not offer. Anthropic lists Sonnet 4.6 as a legacy model. It reads text and images, writes text, and Anthropic lists 1M tokens of context. Pick it when you need its exact behaviour.

Best for

  • Coding and computer-use work where you already tuned prompts and evals on Sonnet 4.6.
  • Long sessions on large codebases (on Yunshu, 195K tokens of context).
  • Workloads that need manual thinking budgets: Anthropic still accepts them here, though it marks them deprecated.

Not ideal for

  • New projects: Anthropic’s Sonnet 5 generation has a later knowledge cutoff (January 2026 for Sonnet 5, against August 2025 here).
  • Long-horizon agent work that needs xhigh effort: Anthropic lists xhigh only for later models.
  • High-volume small calls where a smaller model is enough.

Next to the rest of the Anthropic line

ModelInputOutputContextPer session
Claude Fable 5$13.2864$66.4318195K$4.2251
Claude Fable 5.1$13.2864$66.4318195K$3.7468
Claude Opus 4.6$6.2003$31.0015195K$1.9717
Claude Opus 4.7$6.2003$31.0015195K$1.9717
Claude Opus 4.8$6.2003$31.0015195K$1.9717
Claude Opus 5$6.2003$31.0015195K$1.9717

What it costs

Prepaid, per token, no subscription. Set your traffic to see your bill.

percent of input tokens
Estimated monthly spend
$1,308.02

30 days, at today's prices. You're billed on actual tokens.

Per request
$0.021800
Coding session
$1.18
Per day
$43.60
Suggested key budget
$1,505.00
Alert at 80%
$1,204.00

A coding session is 30 requests of 20,000 input tokens, 80% from cache, and 1,000 output tokens each: the same session as the "Per session" column above. Thinking tokens are billed as output, so reasoning raises the cost.

Cached input. When the provider serves part of a prompt from its cache, those tokens are billed at the cache-read price instead of the input price. Writing a prompt into the cache is billed at the cache-write price. Separately, an exact repeat of a recent request is answered from Yunshu’s own cache and not charged.

Capabilities

What Claude Sonnet 4.6 can do, as Anthropic lists it.

Get started

Create a key in the console, export it as YUNSHU_API_KEY, then use one of these.

curl https://api.yunshurouter.com/v1/chat/completions \
  -H "Authorization: Bearer $YUNSHU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-4-6",
    "messages": [{"role": "user", "content": "Write a Python function that checks if a string is a palindrome."}]
  }'

Full steps for each tool: integration guides →

Questions

What is Claude Sonnet 4.6?

Claude Sonnet 4.6 is a Sonnet model from Anthropic for coding, computer use, long-context reasoning and knowledge work. It is now a legacy model. See the Anthropic page for the rest of the family.

Does Claude Sonnet 4.6 support tool calling?

Yes. Send tools in OpenAI format to /v1/chat/completions or in Anthropic format to /v1/messages. Through the Responses API (used by Codex) only function tools are passed through.

Does Claude Sonnet 4.6 support reasoning?

Yes. Anthropic lists adaptive thinking, steered by effort: low, medium, high, max. Anthropic’s default is high. With no thinking setting, Anthropic lists thinking as off.

Is there a newer model than Claude Sonnet 4.6?

Yes. Claude Sonnet 5 came next, and Anthropic’s current Sonnet is Claude Sonnet 5.5, which Yunshu Router does not offer. Anthropic says Sonnet 5 is a substantial upgrade in reasoning, tool use, coding and knowledge work. Still pick Claude Sonnet 4.6 if your prompts or evals are pinned to its behaviour, or if you rely on manual thinking budgets. Anthropic lists retirement for it not sooner than 17 February 2027.