Claude Sonnet 5 vs DeepSeek V4

Anthropic's mid-tier against DeepSeek's open-weight flagship (v4-pro · v4-flash) — published pricing, context windows and specs, side by side.

At a glance: Claude Sonnet 5 lists at $2 / $10 intro (to 31 Aug 2026) · $3 / $15 standard with a 1,000,000 tokens context window; DeepSeek V4 lists at $1.74 / $3.48 (V4-Pro) · $0.14 / $0.28 (V4-Flash) per 1M with 1,000,000 tokens of context. The full spec table, price table and each model's published benchmarks are below.

Claude Sonnet 5 vs DeepSeek V4: side-by-side

 Claude Sonnet 5DeepSeek V4
MakerAnthropicDeepSeek
Released30 June 202624 April 2026
TierMid-tierOpen-weight flagship (V4-Pro · V4-Flash)
Context window1,000,000 tokens (default & max)1,000,000 tokens (both tiers)
Max outputUp to 128,000 tokensNot specified
API price (per 1M)$2 / $10 intro (to 31 Aug 2026) · $3 / $15 standard$1.74 / $3.48 (V4-Pro) · $0.14 / $0.28 (V4-Flash) per 1M
AccessProprietary — Claude API & claude.ai (default model on Free & Pro plans)Open weights — MIT licence, on Hugging Face & ModelScope (V4-Pro 1.6T params / 49B active; V4-Flash 284B / 13B active)
Best atAgentic coding, high-volume production work, large-codebase tasksCoding, competitive programming, low-cost agentic work
Standout1M context by default; early-access partners report it finishes tasks earlier Sonnets stopped short on and checks its own outputLargest open-weights model of 2026 — MIT-licensed 1.6T-param MoE

Price comparison

ModelInput (per 1M)Output (per 1M)
Claude Sonnet 5 (intro, to 31 Aug 2026)$2.00$10.00
Claude Sonnet 5 (standard, from 1 Sep 2026)$3.00$15.00
DeepSeek V4-Flash$0.14$0.28
DeepSeek V4-Pro$1.74$3.48

Estimate your monthly API cost for Claude Sonnet 5 vs DeepSeek V4 with the LLM API pricing calculator →

Published benchmark figures

Each figure below is the model's own published score as listed on its AI Model Hub page. Different suites (and suite versions) are not directly comparable.

ModelBenchmarkPublished score
DeepSeek V4SWE-bench Verified80.6%
DeepSeek V4Codeforces rating3,206

What the table says

Key takeaway

Everything above is drawn from the two models' published rate cards and spec sheets. Which one fits depends on the workload you price it against — run your own token volumes through the pricing calculator to see the monthly difference.

Full Claude Sonnet 5 overview   Full DeepSeek V4 overview

Ad slot — AdSense in-article unit

Frequently asked questions

Which is cheaper, Claude Sonnet 5 or DeepSeek V4?

DeepSeek V4 — it lists at $1.74 / $3.48 (V4-Pro) · $0.14 / $0.28 (V4-Flash) per 1M versus $2 / $10 intro (to 31 Aug 2026) · $3 / $15 standard for Claude Sonnet 5.

Which has the bigger context window, Claude Sonnet 5 or DeepSeek V4?

They are in the same class: Claude Sonnet 5 lists 1,000,000 tokens (default & max) and DeepSeek V4 lists 1,000,000 tokens (both tiers).

Which model is newer?

Claude Sonnet 5 is the more recent release (30 June 2026); DeepSeek V4 was released 24 April 2026.

Can I run Claude Sonnet 5 or DeepSeek V4 locally?

Only DeepSeek V4 — it publishes open weights under the MIT licence. Claude Sonnet 5 is proprietary and only available via hosted APIs and apps.

Related comparisons