Enter opens the highlighted result. Esc closes.

GPT-5.4 Mini vs Llama 3.1 8B Instruct

GPT-5.4 Mini leads Llama 3.1 8B Instruct on the Artificial Analysis Intelligence Index, 24.1 to 6.9, and Llama 3.1 8B Instruct costs 56.3x less per output token ($0.08 vs $4.50 per million). Updated October 21, 2026; 41 benchmarks have a result for both.

GPT-5.4 MiniOpenAI
Coding
35.8
Overall
44.0
Output $/M
$4.50
41
Llama 3.1 8B InstructMeta Llama
Coding
No data
Overall
17.9
Output $/M
$0.08
0
vs boards won of 41 shared

GPT-5.4 Mini or Llama 3.1 8B Instruct: which to pick

Only GPT-5.4 Mini has a coding score, 35.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 56.3x cheaper ($0.08 vs $4.50 per million).

Shared results
41
GPT-5.4 Mini only
48
Llama 3.1 8B Instruct only
10
Like-for-like categories
7 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
GPT-5.4 Mini 35.8 from 5 benchmarks, Llama 3.1 8B Instruct not benchmarked.
Widest category
Agentic work, 67.0 points apart on average over 1 shared benchmark.
Widest single gap
OTIS Mock AIME: GPT-5.4 Mini 88.9% against Llama 3.1 8B Instruct 1.7%, 87.2 points apart on a 0 to 100 scale.
Output price
GPT-5.4 Mini $4.50 against Llama 3.1 8B Instruct $0.08 per million output tokens, 56.3x apart.
Context window
GPT-5.4 Mini takes 400K 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
CategoryGPT-5.4 MiniBarsLlama 3.1 8B InstructTies
Coding50
Intelligence20
Agentic work10
Reasoning60
Math30
Knowledge40
General200
All shared boards410
CodingLike-for-likeSix of these boards feed the Vibe Coding Index50
Coding benchmarks for GPT-5.4 Mini and Llama 3.1 8B Instruct
BenchmarkGPT-5.4 MiniLlama 3.1 8B InstructLeader
LMArena WebDev1397Not measuredOnly GPT-5.4 Mini measured
AA Coding Index56.15.4GPT-5.4 Mini
LiveCodeBench (Vals AI)81.5%Not measuredOnly GPT-5.4 Mini measured
SWE-bench Verified (Vals AI)73.0%Not measuredOnly GPT-5.4 Mini measured
Terminal-Bench 4 (Vals AI)2.5%Not measuredOnly GPT-5.4 Mini measured
Vibe Code Bench (Vals AI)48.0%Not measuredOnly GPT-5.4 Mini measured
Code migration (Vals AI)12.9%Not measuredOnly GPT-5.4 Mini measured
ProgramBench (Vals AI)0.0%Not measuredOnly GPT-5.4 Mini measured
Terminal-Bench 2.1 (Vals AI)54.7%Not measuredOnly GPT-5.4 Mini measured
LiveCodeBench (Artificial Analysis run)Not measured11.6%Only Llama 3.1 8B Instruct measured
SciCode52.1%Not measuredOnly GPT-5.4 Mini measured
Terminal-Bench Hard (Artificial Analysis run)52.3%0.8%GPT-5.4 Mini
FrontierCode27.0%Not measuredOnly GPT-5.4 Mini measured
WeirdML60.3%1.7%GPT-5.4 Mini
ALE-Bench1188.6Not measuredOnly GPT-5.4 Mini measured
LMArena Text: coding14381195GPT-5.4 Mini
LMArena Text: software and IT14361195GPT-5.4 Mini
LMArena WebDev: React1386Not measuredOnly GPT-5.4 Mini measured
LMArena WebDev: HTML1419Not measuredOnly GPT-5.4 Mini 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 GPT-5.4 Mini and Llama 3.1 8B Instruct
BenchmarkGPT-5.4 MiniLlama 3.1 8B InstructLeader
AA Intelligence Index24.16.9GPT-5.4 Mini
Epoch Capabilities Index148.7116.5GPT-5.4 Mini
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GPT-5.4 Mini and Llama 3.1 8B Instruct
BenchmarkGPT-5.4 MiniLlama 3.1 8B InstructLeader
AA Agentic Index17.9Not measuredOnly GPT-5.4 Mini measured
Finance Agent (Vals AI)45.4%Not measuredOnly GPT-5.4 Mini measured
Tax Agent Bench (Vals AI)8.8%Not measuredOnly GPT-5.4 Mini measured
Legal Research Bench (Vals AI)12.5%Not measuredOnly GPT-5.4 Mini measured
Excel Modeling Benchmark (Vals AI)45.4%Not measuredOnly GPT-5.4 Mini measured
τ²-Bench Telecom83.3%16.4%GPT-5.4 Mini
BALROGNot measured15.1%Only Llama 3.1 8B Instruct measured
DeepResearch Bench36.3%Not measuredOnly GPT-5.4 Mini measured
Berkeley Function Calling Leaderboard (BFCL)Not measured25.8%Only Llama 3.1 8B Instruct measured
Neither model has a result on the other 32 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index60
Reasoning benchmarks for GPT-5.4 Mini and Llama 3.1 8B Instruct
BenchmarkGPT-5.4 MiniLlama 3.1 8B InstructLeader
GPQA Diamond83.1%Not measuredOnly GPT-5.4 Mini measured
MMMU Pro (Vals AI)79.3%Not measuredOnly GPT-5.4 Mini measured
GPQA Diamond (Artificial Analysis run)87.5%25.9%GPT-5.4 Mini
Humanity's Last Exam (Artificial Analysis run)28.1%5.3%GPT-5.4 Mini
GPQA Diamond (Epoch AI run)86.9%27.0%GPT-5.4 Mini
ARC-AGI63.7%Not measuredOnly GPT-5.4 Mini measured
ARC-AGI-218.9%Not measuredOnly GPT-5.4 Mini measured
Chess puzzles23.0%Not measuredOnly GPT-5.4 Mini measured
Mystery game puzzles11.0%Not measuredOnly GPT-5.4 Mini measured
LMArena Text: hard prompts14241175GPT-5.4 Mini
LMArena Text: expert14351144GPT-5.4 Mini
LMArena Text: hard prompts in English14201196GPT-5.4 Mini
LMArena Vision: diagrams1266Not measuredOnly GPT-5.4 Mini measured
LMArena Vision: homework1285Not measuredOnly GPT-5.4 Mini measured
Kagi LLM Benchmark37.9%Not measuredOnly GPT-5.4 Mini measured
Neither model has a result on the other 7 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index30
Math benchmarks for GPT-5.4 Mini and Llama 3.1 8B Instruct
BenchmarkGPT-5.4 MiniLlama 3.1 8B InstructLeader
AIME95.6%Not measuredOnly GPT-5.4 Mini measured
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 AIME88.9%1.7%GPT-5.4 Mini
FrontierMath, tiers 1 to 351.2%Not measuredOnly GPT-5.4 Mini measured
FrontierMath, tier 49.8%Not measuredOnly GPT-5.4 Mini measured
ProofBench21.0%Not measuredOnly GPT-5.4 Mini 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: math14181179GPT-5.4 Mini
LMArena Text: mathematical work14291180GPT-5.4 Mini
Neither model has a result on the other 2 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index40
Knowledge benchmarks for GPT-5.4 Mini and Llama 3.1 8B Instruct
BenchmarkGPT-5.4 MiniLlama 3.1 8B InstructLeader
MMLU Pro84.5%Not measuredOnly GPT-5.4 Mini measured
CaseLaw (Vals AI)51.7%Not measuredOnly GPT-5.4 Mini measured
CorpFin (Vals AI)60.9%Not measuredOnly GPT-5.4 Mini measured
TaxEval (Vals AI)71.2%Not measuredOnly GPT-5.4 Mini measured
MortgageTax (Vals AI)63.5%Not measuredOnly GPT-5.4 Mini measured
MMLU Pro (Artificial Analysis run)Not measured47.6%Only Llama 3.1 8B Instruct measured
SimpleQA Verified29.4%Not measuredOnly GPT-5.4 Mini measured
MMLUNot measured56.1%Only Llama 3.1 8B Instruct measured
LMArena Text: science14171193GPT-5.4 Mini
LMArena Text: medicine and healthcare13951182GPT-5.4 Mini
LMArena Text: legal and government14141206GPT-5.4 Mini
LMArena Text: business and finance14181166GPT-5.4 Mini
Neither model has a result on the other 6 boards here
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Web design benchmarks for GPT-5.4 Mini and Llama 3.1 8B Instruct
BenchmarkGPT-5.4 MiniLlama 3.1 8B InstructLeader
Neither model has a result on 9 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index200
General benchmarks for GPT-5.4 Mini and Llama 3.1 8B Instruct
BenchmarkGPT-5.4 MiniLlama 3.1 8B InstructLeader
SAGE (Vals AI)50.8%Not measuredOnly GPT-5.4 Mini measured
Vals Multimodal Index54.2%Not measuredOnly GPT-5.4 Mini measured
IFBench73.3%28.6%GPT-5.4 Mini
Long context reasoning (AA-LCR)77.0%18.0%GPT-5.4 Mini
DTBench80.0%50.9%GPT-5.4 Mini
LMCA40.8%5.4%GPT-5.4 Mini
PIQANot measured81.2%Only Llama 3.1 8B Instruct measured
LMArena Text14121187GPT-5.4 Mini
LMArena Text: instruction following14051159GPT-5.4 Mini
LMArena Text: creative writing13701154GPT-5.4 Mini
LMArena Vision1245Not measuredOnly GPT-5.4 Mini measured
LMArena Text: English14121218GPT-5.4 Mini
LMArena Text: non-English14051148GPT-5.4 Mini
LMArena Text: Chinese14461151GPT-5.4 Mini
LMArena Text: German14081144GPT-5.4 Mini
LMArena Text: Japanese13751061GPT-5.4 Mini
LMArena Text: Korean13701053GPT-5.4 Mini
LMArena Text: French14411178GPT-5.4 Mini
LMArena Text: Spanish14051169GPT-5.4 Mini
LMArena Text: Russian14171158GPT-5.4 Mini
LMArena Text: Polish1415Not measuredOnly GPT-5.4 Mini measured
LMArena Text: multi-turn14291172GPT-5.4 Mini
LMArena Text: longer queries14081181GPT-5.4 Mini
LMArena Text: writing and language13931162GPT-5.4 Mini
LMArena Text: entertainment and media13731145GPT-5.4 Mini
LMArena Vision: English1244Not measuredOnly GPT-5.4 Mini measured
LMArena Vision: Chinese1286Not measuredOnly GPT-5.4 Mini measured
LMArena Vision: reading text1253Not measuredOnly GPT-5.4 Mini measured
LMArena Vision: humor1235Not measuredOnly GPT-5.4 Mini measured
LMArena Vision: recognizing things1218Not measuredOnly GPT-5.4 Mini measured
LMArena Vision: creative writing1222Not measuredOnly GPT-5.4 Mini measured
Neither model has a result on the other 15 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GPT-5.4 Mini and Llama 3.1 8B Instruct
BenchmarkGPT-5.4 MiniLlama 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

GPT-5.4 Mini$0.0030Fits 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

GPT-5.4 Mini$0.051Fits 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

GPT-5.4 Mini$0.195Fits 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 GPT-5.4 Mini and Llama 3.1 8B Instruct
SpecificationOpenAI GPT-5.4 MiniMeta Llama 3.1 8B Instruct
MakerOpenAIMeta Llama
WeightsNo public weights listedOpen weights
ReleasedMarch 17, 2026July 23, 2024
Context window400K131K
Input $/Mtok$0.75$0.05
Output $/Mtok$4.50$0.08
Coding index35.8Not benchmarked
Independent measurements behind it50
Cost per solved task$0.70Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is GPT-5.4 Mini better than Llama 3.1 8B Instruct for coding?

Only GPT-5.4 Mini has a coding score, 35.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 56.3x cheaper ($0.08 vs $4.50 per million).

Which is cheaper, GPT-5.4 Mini or Llama 3.1 8B Instruct?

GPT-5.4 Mini costs $0.75 per million input tokens and $4.50 per million output tokens; Llama 3.1 8B Instruct costs $0.05 and $0.08. Cost per solved task is known for GPT-5.4 Mini only.

Which has the bigger context window, GPT-5.4 Mini or Llama 3.1 8B Instruct?

GPT-5.4 Mini, with 400K tokens against 131K.

How many benchmarks is the GPT-5.4 Mini vs Llama 3.1 8B Instruct comparison based on?

41 benchmarks have a result for both models as of October 21, 2026. GPT-5.4 Mini's coding index rests on 5 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