Enter opens the highlighted result. Esc closes.

DeepSeek V4 Flash 0731 vs Llama 3.1 8B Instruct

DeepSeek V4 Flash 0731 leads Llama 3.1 8B Instruct on the Artificial Analysis Intelligence Index, 34.3 to 6.9, and Llama 3.1 8B Instruct costs 5.0x less per output token ($0.08 vs $0.396 per million). Updated October 22, 2026; 11 benchmarks have a result for both.

DeepSeek V4 Flash 0731DeepSeek
Coding
51.8
Overall
55.2
Output $/M
$0.396
11
Llama 3.1 8B InstructMeta Llama
Coding
No data
Overall
17.9
Output $/M
$0.08
0
vs boards won of 11 shared

DeepSeek V4 Flash 0731 or Llama 3.1 8B Instruct: which to pick

Only DeepSeek V4 Flash 0731 has a coding score, 51.8 on the Vibe Coding Index; Llama 3.1 8B Instruct has none, so the two cannot be ranked on coding.

Pick Llama 3.1 8B Instruct for output tokens 5.0x cheaper ($0.08 vs $0.396 per million).

Shared results
11
DeepSeek V4 Flash 0731 only
44
Llama 3.1 8B Instruct only
40
Like-for-like categories
5 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
DeepSeek V4 Flash 0731 51.8 from 4 benchmarks, Llama 3.1 8B Instruct not benchmarked.
Widest category
Math, 92.8 points apart on average over 1 shared benchmark.
Widest single gap
OTIS Mock AIME: DeepSeek V4 Flash 0731 94.4% against Llama 3.1 8B Instruct 1.7%, 92.8 points apart on a 0 to 100 scale.
Output price
DeepSeek V4 Flash 0731 $0.396 against Llama 3.1 8B Instruct $0.08 per million output tokens, 5.0x apart.
Context window
DeepSeek V4 Flash 0731 takes 1.05M tokens, Llama 3.1 8B Instruct 131K.

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
CategoryDeepSeek V4 Flash 0731BarsLlama 3.1 8B InstructTies
Coding20
Intelligence20
Reasoning30
Math10
General30
All shared boards110
CodingLike-for-likeSix of these boards feed the Vibe Coding Index20
Coding benchmarks for DeepSeek V4 Flash 0731 and Llama 3.1 8B Instruct
BenchmarkDeepSeek V4 Flash 0731Llama 3.1 8B InstructLeader
AA Coding Index69.15.4DeepSeek V4 Flash 0731
LiveCodeBench (Vals AI)87.3%Not measuredOnly DeepSeek V4 Flash 0731 measured
SWE-bench Verified (Vals AI)88.8%Not measuredOnly DeepSeek V4 Flash 0731 measured
Terminal-Bench 4 (Vals AI)18.7%Not measuredOnly DeepSeek V4 Flash 0731 measured
Vibe Code Bench (Vals AI)74.7%Not measuredOnly DeepSeek V4 Flash 0731 measured
Code migration (Vals AI)38.6%Not measuredOnly DeepSeek V4 Flash 0731 measured
ProgramBench (Vals AI)0.0%Not measuredOnly DeepSeek V4 Flash 0731 measured
IOI (Vals AI)32.7%Not measuredOnly DeepSeek V4 Flash 0731 measured
Terminal-Bench 2.1 (Vals AI)67.0%Not measuredOnly DeepSeek V4 Flash 0731 measured
SkillsBench (Vals AI)50.7%Not measuredOnly DeepSeek V4 Flash 0731 measured
CyberBench (Vals AI)72.1%Not measuredOnly DeepSeek V4 Flash 0731 measured
LiveCodeBench (Artificial Analysis run)Not measured11.6%Only Llama 3.1 8B Instruct measured
SciCode50.3%Not measuredOnly DeepSeek V4 Flash 0731 measured
Terminal-Bench Hard (Artificial Analysis run)Not measured0.8%Only Llama 3.1 8B Instruct measured
FrontierCode18.8%Not measuredOnly DeepSeek V4 Flash 0731 measured
WeirdML63.0%1.7%DeepSeek V4 Flash 0731
ALE-Bench1306.1Not measuredOnly DeepSeek V4 Flash 0731 measured
LMArena Text: codingNot measured1195Only Llama 3.1 8B Instruct measured
LMArena Text: software and ITNot measured1195Only Llama 3.1 8B Instruct measured
Neither model has a result on the other 20 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for DeepSeek V4 Flash 0731 and Llama 3.1 8B Instruct
BenchmarkDeepSeek V4 Flash 0731Llama 3.1 8B InstructLeader
AA Intelligence Index34.36.9DeepSeek V4 Flash 0731
Epoch Capabilities Index154.8116.5DeepSeek V4 Flash 0731
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index10 boards, none shared
Agentic work benchmarks for DeepSeek V4 Flash 0731 and Llama 3.1 8B Instruct
BenchmarkDeepSeek V4 Flash 0731Llama 3.1 8B InstructLeader
AA Agentic Index41.0Not measuredOnly DeepSeek V4 Flash 0731 measured
Finance Agent (Vals AI)49.5%Not measuredOnly DeepSeek V4 Flash 0731 measured
Tax Agent Bench (Vals AI)28.1%Not measuredOnly DeepSeek V4 Flash 0731 measured
Legal Research Bench (Vals AI)30.3%Not measuredOnly DeepSeek V4 Flash 0731 measured
Excel Modeling Benchmark (Vals AI)57.0%Not measuredOnly DeepSeek V4 Flash 0731 measured
BioMysteryBench (Vals AI)64.4%Not measuredOnly DeepSeek V4 Flash 0731 measured
Terminal-Bench-Science (Vals AI)4.3%Not measuredOnly DeepSeek V4 Flash 0731 measured
τ²-Bench TelecomNot measured16.4%Only Llama 3.1 8B Instruct measured
BALROGNot measured15.1%Only Llama 3.1 8B Instruct measured
Berkeley Function Calling Leaderboard (BFCL)Not measured25.8%Only Llama 3.1 8B Instruct measured
Neither model has a result on the other 31 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index30
Reasoning benchmarks for DeepSeek V4 Flash 0731 and Llama 3.1 8B Instruct
BenchmarkDeepSeek V4 Flash 0731Llama 3.1 8B InstructLeader
GPQA Diamond89.9%Not measuredOnly DeepSeek V4 Flash 0731 measured
GPQA Diamond (Artificial Analysis run)90.8%25.9%DeepSeek V4 Flash 0731
Humanity's Last Exam (Artificial Analysis run)38.6%5.3%DeepSeek V4 Flash 0731
GPQA Diamond (Epoch AI run)91.0%27.0%DeepSeek V4 Flash 0731
ARC-AGI89.0%Not measuredOnly DeepSeek V4 Flash 0731 measured
ARC-AGI-261.4%Not measuredOnly DeepSeek V4 Flash 0731 measured
SimpleBench61.1%Not measuredOnly DeepSeek V4 Flash 0731 measured
Chess puzzles32.0%Not measuredOnly DeepSeek V4 Flash 0731 measured
Mystery game puzzles34.0%Not measuredOnly DeepSeek V4 Flash 0731 measured
LMArena Text: hard promptsNot measured1175Only Llama 3.1 8B Instruct measured
LMArena Text: expertNot measured1144Only Llama 3.1 8B Instruct measured
LMArena Text: hard prompts in EnglishNot measured1196Only Llama 3.1 8B Instruct measured
Neither model has a result on the other 10 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index10
Math benchmarks for DeepSeek V4 Flash 0731 and Llama 3.1 8B Instruct
BenchmarkDeepSeek V4 Flash 0731Llama 3.1 8B InstructLeader
AA Math IndexNot measured4.3Only Llama 3.1 8B Instruct measured
AIME 2025 (Artificial Analysis run)Not measured4.3%Only Llama 3.1 8B Instruct measured
OTIS Mock AIME94.4%1.7%DeepSeek V4 Flash 0731
FrontierMath, tiers 1 to 357.5%Not measuredOnly DeepSeek V4 Flash 0731 measured
FrontierMath, tier 424.4%Not measuredOnly DeepSeek V4 Flash 0731 measured
ProofBench56.0%Not measuredOnly DeepSeek V4 Flash 0731 measured
MATH level 5Not measured22.9%Only Llama 3.1 8B Instruct measured
GSM8KNot measured82.4%Only Llama 3.1 8B Instruct measured
LMArena Text: mathNot measured1179Only Llama 3.1 8B Instruct measured
LMArena Text: mathematical workNot measured1180Only Llama 3.1 8B Instruct measured
Neither model has a result on the other 3 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index12 boards, none shared
Knowledge benchmarks for DeepSeek V4 Flash 0731 and Llama 3.1 8B Instruct
BenchmarkDeepSeek V4 Flash 0731Llama 3.1 8B InstructLeader
MMLU Pro86.2%Not measuredOnly DeepSeek V4 Flash 0731 measured
LegalBench (Vals AI)77.7%Not measuredOnly DeepSeek V4 Flash 0731 measured
CorpFin (Vals AI)61.9%Not measuredOnly DeepSeek V4 Flash 0731 measured
TaxEval (Vals AI)70.7%Not measuredOnly DeepSeek V4 Flash 0731 measured
MedCode (Vals AI)41.4%Not measuredOnly DeepSeek V4 Flash 0731 measured
MMLU Pro (Artificial Analysis run)Not measured47.6%Only Llama 3.1 8B Instruct measured
SimpleQA Verified33.6%Not measuredOnly DeepSeek V4 Flash 0731 measured
MMLUNot measured56.1%Only Llama 3.1 8B Instruct measured
LMArena Text: scienceNot measured1193Only Llama 3.1 8B Instruct measured
LMArena Text: medicine and healthcareNot measured1182Only Llama 3.1 8B Instruct measured
LMArena Text: legal and governmentNot measured1206Only Llama 3.1 8B Instruct measured
LMArena Text: business and financeNot measured1166Only Llama 3.1 8B Instruct measured
Neither model has a result on the other 6 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for DeepSeek V4 Flash 0731 and Llama 3.1 8B Instruct
BenchmarkDeepSeek V4 Flash 0731Llama 3.1 8B InstructLeader
Design Arena: websites1237Not measuredOnly DeepSeek V4 Flash 0731 measured
Design Arena: UI components1233Not measuredOnly DeepSeek V4 Flash 0731 measured
Design Arena: game dev1207Not measuredOnly DeepSeek V4 Flash 0731 measured
Design Arena: data viz1180Not measuredOnly DeepSeek V4 Flash 0731 measured
Design Arena: 3D1208Not measuredOnly DeepSeek V4 Flash 0731 measured
Design Arena: all code categories1229Not measuredOnly DeepSeek V4 Flash 0731 measured
Design Arena: SVG1184Not measuredOnly DeepSeek V4 Flash 0731 measured
Design Arena: ASCII art1090Not measuredOnly DeepSeek V4 Flash 0731 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index30
General benchmarks for DeepSeek V4 Flash 0731 and Llama 3.1 8B Instruct
BenchmarkDeepSeek V4 Flash 0731Llama 3.1 8B InstructLeader
MedScribe (Vals AI)80.4%Not measuredOnly DeepSeek V4 Flash 0731 measured
IFBenchNot measured28.6%Only Llama 3.1 8B Instruct measured
Long context reasoning (AA-LCR)79.7%18.0%DeepSeek V4 Flash 0731
DTBench90.9%50.9%DeepSeek V4 Flash 0731
LMCA41.7%5.4%DeepSeek V4 Flash 0731
PIQANot measured81.2%Only Llama 3.1 8B Instruct measured
LMArena TextNot measured1187Only Llama 3.1 8B Instruct measured
LMArena Text: instruction followingNot measured1159Only Llama 3.1 8B Instruct measured
LMArena Text: creative writingNot measured1154Only Llama 3.1 8B Instruct measured
LMArena Text: EnglishNot measured1218Only Llama 3.1 8B Instruct measured
LMArena Text: non-EnglishNot measured1148Only Llama 3.1 8B Instruct measured
LMArena Text: ChineseNot measured1151Only Llama 3.1 8B Instruct measured
LMArena Text: GermanNot measured1144Only Llama 3.1 8B Instruct measured
LMArena Text: JapaneseNot measured1061Only Llama 3.1 8B Instruct measured
LMArena Text: KoreanNot measured1053Only Llama 3.1 8B Instruct measured
LMArena Text: FrenchNot measured1178Only Llama 3.1 8B Instruct measured
LMArena Text: SpanishNot measured1169Only Llama 3.1 8B Instruct measured
LMArena Text: RussianNot measured1158Only Llama 3.1 8B Instruct measured
LMArena Text: multi-turnNot measured1172Only Llama 3.1 8B Instruct measured
LMArena Text: longer queriesNot measured1181Only Llama 3.1 8B Instruct measured
LMArena Text: writing and languageNot measured1162Only Llama 3.1 8B Instruct measured
LMArena Text: entertainment and mediaNot measured1145Only Llama 3.1 8B Instruct measured
Neither model has a result on the other 24 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for DeepSeek V4 Flash 0731 and Llama 3.1 8B Instruct
BenchmarkDeepSeek V4 Flash 0731Llama 3.1 8B InstructLeader
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

DeepSeek V4 Flash 0731$0.0003Fits in one request
Llama 3.1 8B Instruct$0.0001Fits in one request

Llama 3.1 8B Instruct costs less

Repository review

50K input + 3K output tokens

DeepSeek V4 Flash 0731$0.0082Fits in one request
Llama 3.1 8B Instruct$0.0027Fits in one request

Llama 3.1 8B Instruct costs less

Agent loop

200K input + 10K output tokens

DeepSeek V4 Flash 0731$0.032Fits in one request
Llama 3.1 8B Instruct$0.011Exceeds the context window

Llama 3.1 8B Instruct 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 DeepSeek V4 Flash 0731 and Llama 3.1 8B Instruct
SpecificationDeepSeek V4 Flash 0731Meta Llama 3.1 8B Instruct
MakerDeepSeekMeta Llama
WeightsOpen weightsOpen weights
ReleasedJuly 31, 2026July 23, 2024
Context window1.05M131K
Input $/Mtok$0.14$0.05
Output $/Mtok$0.396$0.08
Coding index51.8Not benchmarked
Independent measurements behind it40
Cost per solved task$0.01Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is DeepSeek V4 Flash 0731 better than Llama 3.1 8B Instruct for coding?

Only DeepSeek V4 Flash 0731 has a coding score, 51.8 on the Vibe Coding Index; Llama 3.1 8B Instruct has none, so the two cannot be ranked on coding. Pick Llama 3.1 8B Instruct for output tokens 5.0x cheaper ($0.08 vs $0.396 per million).

Which is cheaper, DeepSeek V4 Flash 0731 or Llama 3.1 8B Instruct?

DeepSeek V4 Flash 0731 costs $0.14 per million input tokens and $0.396 per million output tokens; Llama 3.1 8B Instruct costs $0.05 and $0.08. Cost per solved task is known for DeepSeek V4 Flash 0731 only.

Which has the bigger context window, DeepSeek V4 Flash 0731 or Llama 3.1 8B Instruct?

DeepSeek V4 Flash 0731, with 1.05M tokens against 131K.

How many benchmarks is the DeepSeek V4 Flash 0731 vs Llama 3.1 8B Instruct comparison based on?

11 benchmarks have a result for both models as of October 22, 2026. DeepSeek V4 Flash 0731's coding index rests on 4 independent benchmarks and Llama 3.1 8B Instruct's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next