Claude Sonnet 5 vs Qwen 3.8 27B

Claude Sonnet 5 (Anthropic, June 2026) and Qwen 3.8 27B (Alibaba, August 2026), compared on price, context window, access and specs. Qwen 3.8 27B is the cheaper API at $0.04 in and $1.35 out per million tokens, about 11× less than Claude Sonnet 5 on a typical 3:1 input-to-output mix. Qwen 3.8 27B has open weights, so you can also run it on your own hardware.

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

At a glance

Released
30 June 2026
14 August 2026
Access
API access
Open weights (unrestricted)
Country
United States of America
China

Price and API

Input, per 1M tokens
$2.00on Anthropic
$0.04on Hugging FaceLowest
Output, per 1M tokens
$10.00on Anthropic
$1.35on Hugging FaceLowest
Official API id
anthropic/claude-sonnet-5
Not listed
Context window
1M tokens
1M tokens
Max output
128K tokens
131K tokensLargest
Takes
Text, Image, PDF
Text, Image
Returns
Text
Text
Knowledge cutoff
January 2026
Not listed
Supports
ReasoningTool callingStructured outputFile input
ReasoningTool callingStructured outputFile inputOpen weights

Scale and training

Parameters
Not listed
27B27,000,000,000
Training code
Unreleased
Not listed
Confidence
Confident
Confident

Notes

Parameters
Not listed
27B dense

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
We promised open weights for Qwen3.8. Now, time to meet them! 🎉 ⚡ Qwen3.8-27B: - A native multimodal dense model. With just 27B parameters, it outperforms Qwen3.7-Plus overall and shines in real-world coding & office workflows. - 262K native context, easily extendable to 1M tokens via YaRN. - Built for builders. Highly efficient, high-quality, and licensed under Apache 2.0. 🚀 The open weights for Qwen3.8-2.4T-A95B (Max-level) have also been released recently. Whether you're shipping lightweight applications with Qwen3.8-27B locally or building agents with Qwen3.8-2.4T-A95B, they're yours now! Read all

Which should you pick?

High-volume or budget workloads
Qwen 3.8 27B · Lowest list price: $0.04 in and $1.35 out per million tokens via Hugging Face.
Long answers in one response
Qwen 3.8 27B · Up to 131K output tokens per response.
Self-hosting or fine-tuning
Qwen 3.8 27B · Open weights: you can download them and run them on your own GPUs.

Questions people ask

Is Claude Sonnet 5 better than Qwen 3.8 27B?

It depends on the job. For high-volume or budget workloads, Qwen 3.8 27B has the edge: lowest list price: $0.04 in and $1.35 out per million tokens via Hugging Face. For long answers in one response, Qwen 3.8 27B has the edge: up to 131K output tokens per response. For self-hosting or fine-tuning, Qwen 3.8 27B has the edge: open weights: you can download them and run them on your own GPUs. Try them on your own prompts in the AIPortalX playground before you commit.

Which is cheaper: Claude Sonnet 5 or Qwen 3.8 27B?

Qwen 3.8 27B: $0.04 in and $1.35 out per million tokens at Hugging Face. 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 Qwen 3.8 27B 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 Qwen 3.8 27B in August 2026.

Other comparisons