Claude Sonnet 5 vs Qwen4-Max

Claude Sonnet 5 (Anthropic, June 2026) and Qwen4-Max (Alibaba, November 2026), compared on price, context window, access and specs. Qwen4-Max is the cheaper API at $1.41 in and $4.24 out per million tokens, about 89% less than Claude Sonnet 5 on a typical 3:1 input-to-output mix.

Updated 5 December 2026 · read each row across; the best value in a row is marked

At a glance

Released
30 June 2026
16 November 2026
Access
API access
API access
Country
United States of America
China

Price and API

Input, per 1M tokens
$2.00on Anthropic
$1.41on DeepInfraLowest
Output, per 1M tokens
$10.00on Anthropic
$4.24on DeepInfraLowest
Official API id
anthropic/claude-sonnet-5
alibaba/qwen4-max
Context window
1M tokens
1M tokens
Max output
128K tokens
262K tokensLargest
Takes
Text, Image, PDF
Text, Image, Video, PDF
Returns
Text
Text
Knowledge cutoff
January 2026
Not listed
Supports
ReasoningTool callingStructured outputFile input
ReasoningTool callingStructured outputFile input

Scale and training

Training code
Unreleased
Not listed
Confidence
Confident
Confident

In their own words

Abstract
Claude Sonnet 5 is built to be the most agentic Sonnet model yet. It can make plans, use tools like browsers and terminals, and run autonomously at a level that, just a few months ago, required larger and more expensive models. For many developers, the agentic AI era began with Sonnet-class models: Claude Sonnet 3.5, 3.6, and 3.7 were the first models that showed impressive skills in coding and tool use. More recently, though, the clearest gains in agentic capabilities have been in our Opus-class models. Sonnet 5 narrows the gap: its performance is close to that of Opus 4.8, but at lower prices. It’s a substantial improvement over its predecessor, Sonnet 4.6, on important aspects of agentic performance like reasoning, tool use, coding, and knowledge work:Read all
Not listed

Which should you pick?

High-volume or budget workloads
Qwen4-Max · Lowest list price: $1.41 in and $4.24 out per million tokens via DeepInfra.
Long answers in one response
Qwen4-Max · Up to 262K output tokens per response.

Questions people ask

Is Claude Sonnet 5 better than Qwen4-Max?

It depends on the job. For high-volume or budget workloads, Qwen4-Max has the edge: lowest list price: $1.41 in and $4.24 out per million tokens via DeepInfra. For long answers in one response, Qwen4-Max has the edge: up to 262K output tokens per response. Try them on your own prompts in the AIPortalX playground before you commit.

Which is cheaper: Claude Sonnet 5 or Qwen4-Max?

Qwen4-Max: $1.41 in and $4.24 out per million tokens at DeepInfra. Claude Sonnet 5 starts at $2.00 in and $10.00 out per million tokens. These are list prices from the cheapest provider we track, and they change often.

Which has the bigger context window?

They match, at 1M tokens each.

Where can I use Claude Sonnet 5 and Qwen4-Max through one API?

OpenRouter serves all of them, so you can switch models without opening another account.

When were they released?

Claude Sonnet 5 in June 2026 and Qwen4-Max in November 2026.

Other comparisons