Enter opens the highlighted result. Esc closes.

Claude Sonnet 5 vs DeepSeek V4 Flash 0731

Claude Sonnet 5 leads DeepSeek V4 Flash 0731 on coding, 57.7 to 51.8 on the Vibe Coding Index, and DeepSeek V4 Flash 0731 costs 35.7x less per output token ($0.28 vs $10.00 per million). Updated October 21, 2026; 52 benchmarks have a result for both.

Claude Sonnet 5Anthropic
Coding
57.7
Overall
63.2
Output $/M
$10.00
42
DeepSeek V4 Flash 0731DeepSeek
Coding
51.8
Overall
55.2
Output $/M
$0.28
9
vs boards won of 52 shared, 1 tied

Claude Sonnet 5 or DeepSeek V4 Flash 0731: which to pick

Pick Claude Sonnet 5 for coding: it scores 57.7 on the Vibe Coding Index against 51.8 for DeepSeek V4 Flash 0731.

Pick DeepSeek V4 Flash 0731 for output tokens 35.7x cheaper ($0.28 vs $10.00 per million) and a lower cost per solved task ($0.01 against $1.87).

Shared results
52
Claude Sonnet 5 only
69
DeepSeek V4 Flash 0731 only
3
Like-for-like categories
8 of 9

Only benchmarks that tested both models count toward a pick; a result only one model has is shown but not compared.

Which one for your work

Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.

At a glance

Coding index
Claude Sonnet 5 57.7 from 6 benchmarks, DeepSeek V4 Flash 0731 51.8 from 4 benchmarks.
Widest category
Math, 8.6 points apart on average over 4 shared benchmarks.
Widest single gap
FrontierCode: Claude Sonnet 5 42.7% against DeepSeek V4 Flash 0731 18.8%, 36.8 points apart on a 0 to 100 scale.
Output price
Claude Sonnet 5 $10.00 against DeepSeek V4 Flash 0731 $0.28 per million output tokens, 35.7x apart.
Context window
Claude Sonnet 5 takes 1M tokens, DeepSeek V4 Flash 0731 1.05M.

Benchmark by benchmark

First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.

Boards won, where both have a result
CategoryClaude Sonnet 5BarsDeepSeek V4 Flash 0731Ties
Coding951 tie
Intelligence20
Agentic work60
Reasoning43
Math40
Knowledge60
Web design80
General31
All shared boards4291 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index95
Coding benchmarks for Claude Sonnet 5 and DeepSeek V4 Flash 0731
BenchmarkClaude Sonnet 5DeepSeek V4 Flash 0731Leader
LiveBench coding74.7%Not measuredOnly Claude Sonnet 5 measured
LMArena WebDev1540Not measuredOnly Claude Sonnet 5 measured
AA Coding Index71.569.1Claude Sonnet 5
LiveCodeBench (Vals AI)82.4%87.3%DeepSeek V4 Flash 0731
SWE-bench Verified (Vals AI)79.6%88.8%DeepSeek V4 Flash 0731
Terminal-Bench 4 (Vals AI)10.6%18.7%DeepSeek V4 Flash 0731
Vibe Code Bench (Vals AI)81.3%74.7%Claude Sonnet 5
Code migration (Vals AI)44.4%38.6%Claude Sonnet 5
ProgramBench (Vals AI)0.0%0.0%Tie
IOI (Vals AI)45.0%32.7%Claude Sonnet 5
Terminal-Bench 2.1 (Vals AI)74.5%67.0%Claude Sonnet 5
Vibe Code Bench 1-100 (Vals AI)13.8%Not measuredOnly Claude Sonnet 5 measured
SkillsBench (Vals AI)46.5%50.7%DeepSeek V4 Flash 0731
CyberBench (Vals AI)70.3%72.1%DeepSeek V4 Flash 0731
SciCode54.3%50.3%Claude Sonnet 5
FrontierCode42.7%18.8%Claude Sonnet 5
GSO-Bench37.3%Not measuredOnly Claude Sonnet 5 measured
WeirdML68.8%63.0%Claude Sonnet 5
ALE-Bench1463.11306.1Claude Sonnet 5
LMArena Text: coding1483Not measuredOnly Claude Sonnet 5 measured
LMArena Text: software and IT1474Not measuredOnly Claude Sonnet 5 measured
LMArena WebDev: React1541Not measuredOnly Claude Sonnet 5 measured
LMArena WebDev: HTML1527Not measuredOnly Claude Sonnet 5 measured
LMArena WebDev: from an image1540Not measuredOnly Claude Sonnet 5 measured
SciCode10.7%Not measuredOnly Claude Sonnet 5 measured
Neither model has a result on the other 14 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Claude Sonnet 5 and DeepSeek V4 Flash 0731
BenchmarkClaude Sonnet 5DeepSeek V4 Flash 0731Leader
AA Intelligence Index38.234.3Claude Sonnet 5
Epoch Capabilities Index156.9154.8Claude Sonnet 5
Agentic workLike-for-likePublic boards, shown as published, kept out of the index60
Agentic work benchmarks for Claude Sonnet 5 and DeepSeek V4 Flash 0731
BenchmarkClaude Sonnet 5DeepSeek V4 Flash 0731Leader
AA Agentic Index43.641.0Claude Sonnet 5
Design Arena: agents building web apps1245Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building full-stack apps1249Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building mobile apps1215Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building Android apps1225Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building Godot games1225Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building games1227Not measuredOnly Claude Sonnet 5 measured
Design Arena: HTML slides1218Not measuredOnly Claude Sonnet 5 measured
Design Arena: PowerPoint slides1216Not measuredOnly Claude Sonnet 5 measured
Design Arena: spreadsheets1021Not measuredOnly Claude Sonnet 5 measured
LiveBench research82.8%Not measuredOnly Claude Sonnet 5 measured
LiveBench browser72.0%Not measuredOnly Claude Sonnet 5 measured
LiveBench long agentic39.0%Not measuredOnly Claude Sonnet 5 measured
SREBench (Vals AI)0.4%Not measuredOnly Claude Sonnet 5 measured
Finance Agent (Vals AI)53.9%49.5%Claude Sonnet 5
Tax Agent Bench (Vals AI)29.4%28.1%Claude Sonnet 5
Legal Research Bench (Vals AI)41.8%30.3%Claude Sonnet 5
Excel Modeling Benchmark (Vals AI)66.3%57.0%Claude Sonnet 5
BioMysteryBench (Vals AI)Not measured64.4%Only DeepSeek V4 Flash 0731 measured
Terminal-Bench-Science (Vals AI)5.7%4.3%Claude Sonnet 5
APEX-Agents54.5%Not measuredOnly Claude Sonnet 5 measured
Vending-Bench 2$6,378Not measuredOnly Claude Sonnet 5 measured
Neither model has a result on the other 19 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index43
Reasoning benchmarks for Claude Sonnet 5 and DeepSeek V4 Flash 0731
BenchmarkClaude Sonnet 5DeepSeek V4 Flash 0731Leader
GPQA Diamond88.9%89.9%DeepSeek V4 Flash 0731
LiveBench reasoning88.7%Not measuredOnly Claude Sonnet 5 measured
MMMU Pro (Vals AI)83.0%Not measuredOnly Claude Sonnet 5 measured
GPQA Diamond (Artificial Analysis run)91.1%90.8%Claude Sonnet 5
Humanity's Last Exam (Artificial Analysis run)41.3%38.6%Claude Sonnet 5
GPQA Diamond (Epoch AI run)90.5%91.0%DeepSeek V4 Flash 0731
ARC-AGINot measured89.0%Only DeepSeek V4 Flash 0731 measured
ARC-AGI-2Not measured61.4%Only DeepSeek V4 Flash 0731 measured
SimpleBench60.6%61.1%DeepSeek V4 Flash 0731
Chess puzzles45.0%32.0%Claude Sonnet 5
Mystery game puzzles35.0%34.0%Claude Sonnet 5
LMArena Text: hard prompts1461Not measuredOnly Claude Sonnet 5 measured
LMArena Text: expert1489Not measuredOnly Claude Sonnet 5 measured
LMArena Text: hard prompts in English1464Not measuredOnly Claude Sonnet 5 measured
LMArena Vision: diagrams1293Not measuredOnly Claude Sonnet 5 measured
LMArena Vision: homework1311Not measuredOnly Claude Sonnet 5 measured
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index40
Math benchmarks for Claude Sonnet 5 and DeepSeek V4 Flash 0731
BenchmarkClaude Sonnet 5DeepSeek V4 Flash 0731Leader
OTIS Mock AIME94.7%94.4%Claude Sonnet 5
FrontierMath, tiers 1 to 365.6%57.5%Claude Sonnet 5
FrontierMath, tier 429.3%24.4%Claude Sonnet 5
ProofBench77.0%56.0%Claude Sonnet 5
LMArena Text: math1467Not measuredOnly Claude Sonnet 5 measured
LMArena Text: mathematical work1481Not measuredOnly Claude Sonnet 5 measured
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index60
Knowledge benchmarks for Claude Sonnet 5 and DeepSeek V4 Flash 0731
BenchmarkClaude Sonnet 5DeepSeek V4 Flash 0731Leader
MMLU Pro87.5%86.2%Claude Sonnet 5
LegalBench (Vals AI)83.9%77.7%Claude Sonnet 5
CorpFin (Vals AI)67.0%61.9%Claude Sonnet 5
TaxEval (Vals AI)75.6%70.7%Claude Sonnet 5
MortgageTax (Vals AI)70.0%Not measuredOnly Claude Sonnet 5 measured
MedCode (Vals AI)47.5%41.4%Claude Sonnet 5
SimpleQA Verified33.7%33.6%Claude Sonnet 5
LMArena Text: science1460Not measuredOnly Claude Sonnet 5 measured
LMArena Text: medicine and healthcare1442Not measuredOnly Claude Sonnet 5 measured
LMArena Text: legal and government1454Not measuredOnly Claude Sonnet 5 measured
LMArena Text: business and finance1436Not measuredOnly Claude Sonnet 5 measured
Neither model has a result on the other 7 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index80
Web design benchmarks for Claude Sonnet 5 and DeepSeek V4 Flash 0731
BenchmarkClaude Sonnet 5DeepSeek V4 Flash 0731Leader
Design Arena: websites12741238Claude Sonnet 5
Design Arena: UI components12801235Claude Sonnet 5
Design Arena: game dev12781208Claude Sonnet 5
Design Arena: data viz12511180Claude Sonnet 5
Design Arena: 3D12611209Claude Sonnet 5
Design Arena: all code categories12761230Claude Sonnet 5
Design Arena: SVG11931185Claude Sonnet 5
Design Arena: ASCII art12071090Claude Sonnet 5
LiveBench design82.0%Not measuredOnly Claude Sonnet 5 measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index31
General benchmarks for Claude Sonnet 5 and DeepSeek V4 Flash 0731
BenchmarkClaude Sonnet 5DeepSeek V4 Flash 0731Leader
LiveBench data analysis71.7%Not measuredOnly Claude Sonnet 5 measured
Public Benefits Bench (Vals AI)66.0%Not measuredOnly Claude Sonnet 5 measured
SAGE (Vals AI)48.9%Not measuredOnly Claude Sonnet 5 measured
MedScribe (Vals AI)76.0%80.4%DeepSeek V4 Flash 0731
Vals Multimodal Index68.8%Not measuredOnly Claude Sonnet 5 measured
Long context reasoning (AA-LCR)82.0%79.7%Claude Sonnet 5
DTBench92.5%90.9%Claude Sonnet 5
LMCA50.0%41.7%Claude Sonnet 5
Surface Evolver Bench60.0%Not measuredOnly Claude Sonnet 5 measured
LMArena Text1442Not measuredOnly Claude Sonnet 5 measured
LMArena Text: instruction following1452Not measuredOnly Claude Sonnet 5 measured
LMArena Text: creative writing1416Not measuredOnly Claude Sonnet 5 measured
LMArena Vision1273Not measuredOnly Claude Sonnet 5 measured
LMArena Text: English1450Not measuredOnly Claude Sonnet 5 measured
LMArena Text: non-English1431Not measuredOnly Claude Sonnet 5 measured
LMArena Text: Chinese1478Not measuredOnly Claude Sonnet 5 measured
LMArena Text: German1442Not measuredOnly Claude Sonnet 5 measured
LMArena Text: Japanese1422Not measuredOnly Claude Sonnet 5 measured
LMArena Text: Korean1412Not measuredOnly Claude Sonnet 5 measured
LMArena Text: French1463Not measuredOnly Claude Sonnet 5 measured
LMArena Text: Spanish1438Not measuredOnly Claude Sonnet 5 measured
LMArena Text: Russian1450Not measuredOnly Claude Sonnet 5 measured
LMArena Text: Polish1425Not measuredOnly Claude Sonnet 5 measured
LMArena Text: multi-turn1453Not measuredOnly Claude Sonnet 5 measured
LMArena Text: longer queries1462Not measuredOnly Claude Sonnet 5 measured
LMArena Text: writing and language1436Not measuredOnly Claude Sonnet 5 measured
LMArena Text: entertainment and media1411Not measuredOnly Claude Sonnet 5 measured
LMArena Vision: English1275Not measuredOnly Claude Sonnet 5 measured
LMArena Vision: Chinese1331Not measuredOnly Claude Sonnet 5 measured
LMArena Vision: reading text1288Not measuredOnly Claude Sonnet 5 measured
LMArena Vision: humor1261Not measuredOnly Claude Sonnet 5 measured
LMArena Vision: creative writing1246Not measuredOnly Claude Sonnet 5 measured
LMArena Document1466Not measuredOnly Claude Sonnet 5 measured
Neither model has a result on the other 13 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Claude Sonnet 5 and DeepSeek V4 Flash 0731
BenchmarkClaude Sonnet 5DeepSeek V4 Flash 0731Leader
Neither model has a result on 5 boards here

What each workload costs

Three fixed token mixes at each model's listed price, so per-token rates become a bill.

Chat turn

1K input + 500 output tokens

Claude Sonnet 5$0.0070Fits in one request
DeepSeek V4 Flash 0731$0.0003Fits in one request

DeepSeek V4 Flash 0731 costs less

Repository review

50K input + 3K output tokens

Claude Sonnet 5$0.130Fits in one request
DeepSeek V4 Flash 0731$0.0078Fits in one request

DeepSeek V4 Flash 0731 costs less

Agent loop

200K input + 10K output tokens

Claude Sonnet 5$0.500Fits in one request
DeepSeek V4 Flash 0731$0.031Fits in one request

DeepSeek V4 Flash 0731 costs less

Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.

Specification differences

The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.

Specifications of Claude Sonnet 5 and DeepSeek V4 Flash 0731
SpecificationAnthropic Claude Sonnet 5DeepSeek V4 Flash 0731
MakerAnthropicDeepSeek
WeightsNo public weights listedOpen weights
ReleasedJune 30, 2026July 31, 2026
Context window1M1.05M
Input $/Mtok$2.00$0.14
Output $/Mtok$10.00$0.28
Coding index57.751.8
Independent measurements behind it64
Cost per solved task$1.87$0.01
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Sonnet 5 better than DeepSeek V4 Flash 0731 for coding?

Pick Claude Sonnet 5 for coding: it scores 57.7 on the Vibe Coding Index against 51.8 for DeepSeek V4 Flash 0731. Pick DeepSeek V4 Flash 0731 for output tokens 35.7x cheaper ($0.28 vs $10.00 per million) and a lower cost per solved task ($0.01 against $1.87).

Which is cheaper, Claude Sonnet 5 or DeepSeek V4 Flash 0731?

Claude Sonnet 5 costs $2.00 per million input tokens and $10.00 per million output tokens; DeepSeek V4 Flash 0731 costs $0.14 and $0.28. Per solved SWE-bench Verified task, Claude Sonnet 5 costs $1.87 and DeepSeek V4 Flash 0731 $0.01.

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

DeepSeek V4 Flash 0731, with 1.05M tokens against 1M.

How many benchmarks is the Claude Sonnet 5 vs DeepSeek V4 Flash 0731 comparison based on?

52 benchmarks have a result for both models as of October 21, 2026. Claude Sonnet 5's coding index rests on 6 independent benchmarks and DeepSeek V4 Flash 0731's on 4. Where only one model has a result, the page says so instead of naming a winner.

Compare next

Embed this comparison on your site

Free under CC BY 4.0, while the source link stays visible. Preview the frame · Terms and other embeds

<iframe src="https://llmbenchmark.ai/embed/compare/claude-sonnet-5-vs-deepseek-v4-flash-0731" title="Claude Sonnet 5 vs DeepSeek V4 Flash 0731, LLMBenchmark.ai" width="100%" height="360" style="border:0;max-width:100%" loading="lazy"></iframe>
<p style="font:13px/1.4 sans-serif;margin:6px 0 0">Source: <a href="https://llmbenchmark.ai/compare/claude-sonnet-5-vs-deepseek-v4-flash-0731">LLMBenchmark.ai, Claude Sonnet 5 vs DeepSeek V4 Flash 0731</a></p>