Enter opens the highlighted result. Esc closes.

GPT-5.4 vs Llama 3.1 8B Instruct

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

GPT-5.4OpenAI
Coding
64.4
Overall
69.6
Output $/M
$15.00
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 or Llama 3.1 8B Instruct: which to pick

Only GPT-5.4 has a coding score, 64.4 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 187.5x cheaper ($0.08 vs $15.00 per million).

Shared results
41
GPT-5.4 only
69
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 64.4 from 3 benchmarks, Llama 3.1 8B Instruct not benchmarked.
Widest category
Agentic work, 70.8 points apart on average over 1 shared benchmark.
Widest single gap
OTIS Mock AIME: GPT-5.4 97.8% against Llama 3.1 8B Instruct 1.7%, 96.1 points apart on a 0 to 100 scale.
Output price
GPT-5.4 $15.00 against Llama 3.1 8B Instruct $0.08 per million output tokens, 187.5x apart.
Context window
GPT-5.4 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
CategoryGPT-5.4BarsLlama 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 and Llama 3.1 8B Instruct
BenchmarkGPT-5.4Llama 3.1 8B InstructLeader
LMArena WebDev1464Not measuredOnly GPT-5.4 measured
AA Coding Index71.15.4GPT-5.4
LiveCodeBench (Vals AI)84.1%Not measuredOnly GPT-5.4 measured
SWE-bench Verified (Vals AI)78.2%Not measuredOnly GPT-5.4 measured
Vibe Code Bench (Vals AI)67.4%Not measuredOnly GPT-5.4 measured
Code migration (Vals AI)35.0%Not measuredOnly GPT-5.4 measured
ProgramBench (Vals AI)0.5%Not measuredOnly GPT-5.4 measured
SkillsBench (Vals AI)51.7%Not measuredOnly GPT-5.4 measured
LiveCodeBench (Artificial Analysis run)Not measured11.6%Only Llama 3.1 8B Instruct measured
Terminal-Bench Hard (Artificial Analysis run)57.6%0.8%GPT-5.4
Terminal-Bench81.8%Not measuredOnly GPT-5.4 measured
GSO-Bench31.4%Not measuredOnly GPT-5.4 measured
WeirdML77.7%1.7%GPT-5.4
MirrorCode15.6%Not measuredOnly GPT-5.4 measured
ALE-Bench1607.0Not measuredOnly GPT-5.4 measured
LMArena Text: coding14961195GPT-5.4
LMArena Text: software and IT14911195GPT-5.4
LMArena WebDev: React1454Not measuredOnly GPT-5.4 measured
LMArena WebDev: HTML1478Not measuredOnly GPT-5.4 measured
LMArena WebDev: from an image1436Not measuredOnly GPT-5.4 measured
Neither model has a result on the other 19 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GPT-5.4 and Llama 3.1 8B Instruct
BenchmarkGPT-5.4Llama 3.1 8B InstructLeader
AA Intelligence Index39.06.9GPT-5.4
Epoch Capabilities Index157.3116.5GPT-5.4
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GPT-5.4 and Llama 3.1 8B Instruct
BenchmarkGPT-5.4Llama 3.1 8B InstructLeader
Design Arena: agents building web apps1059Not measuredOnly GPT-5.4 measured
Design Arena: agents building full-stack apps1017Not measuredOnly GPT-5.4 measured
Design Arena: agents building mobile apps1087Not measuredOnly GPT-5.4 measured
Design Arena: agents building Android apps1031Not measuredOnly GPT-5.4 measured
Design Arena: agents building Godot games1135Not measuredOnly GPT-5.4 measured
τ²-Bench Telecom87.1%16.4%GPT-5.4
APEX-Agents52.4%Not measuredOnly GPT-5.4 measured
METR time horizons74.3%Not measuredOnly GPT-5.4 measured
BALROGNot measured15.1%Only Llama 3.1 8B Instruct measured
DeepResearch Bench35.1%Not measuredOnly GPT-5.4 measured
PostTrainBench19.0%Not measuredOnly GPT-5.4 measured
Vending-Bench 2$6,144Not measuredOnly GPT-5.4 measured
Berkeley Function Calling Leaderboard (BFCL)Not measured25.8%Only Llama 3.1 8B Instruct measured
Neither model has a result on the other 28 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index60
Reasoning benchmarks for GPT-5.4 and Llama 3.1 8B Instruct
BenchmarkGPT-5.4Llama 3.1 8B InstructLeader
GPQA Diamond91.7%Not measuredOnly GPT-5.4 measured
MMMU Pro (Vals AI)87.5%Not measuredOnly GPT-5.4 measured
GPQA Diamond (Artificial Analysis run)92.0%25.9%GPT-5.4
Humanity's Last Exam (Artificial Analysis run)43.7%5.3%GPT-5.4
GPQA Diamond (Epoch AI run)93.3%27.0%GPT-5.4
ARC-AGI93.7%Not measuredOnly GPT-5.4 measured
ARC-AGI-274.0%Not measuredOnly GPT-5.4 measured
Chess puzzles48.0%Not measuredOnly GPT-5.4 measured
Mystery game puzzles37.0%Not measuredOnly GPT-5.4 measured
EBR-bench25.4%Not measuredOnly GPT-5.4 measured
LMArena Text: hard prompts14851175GPT-5.4
LMArena Text: expert15071144GPT-5.4
LMArena Text: hard prompts in English14791196GPT-5.4
LMArena Vision: diagrams1327Not measuredOnly GPT-5.4 measured
LMArena Vision: homework1336Not measuredOnly GPT-5.4 measured
Kagi LLM Benchmark63.8%Not measuredOnly GPT-5.4 measured
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index30
Math benchmarks for GPT-5.4 and Llama 3.1 8B Instruct
BenchmarkGPT-5.4Llama 3.1 8B InstructLeader
AIME96.7%Not measuredOnly GPT-5.4 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 AIME97.8%1.7%GPT-5.4
FrontierMath, tiers 1 to 378.6%Not measuredOnly GPT-5.4 measured
FrontierMath, tier 449.0%Not measuredOnly GPT-5.4 measured
ProofBench56.0%Not measuredOnly GPT-5.4 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: math14881179GPT-5.4
LMArena Text: mathematical work14971180GPT-5.4
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 and Llama 3.1 8B Instruct
BenchmarkGPT-5.4Llama 3.1 8B InstructLeader
MMLU Pro87.5%Not measuredOnly GPT-5.4 measured
LegalBench (Vals AI)86.0%Not measuredOnly GPT-5.4 measured
CaseLaw (Vals AI)63.8%Not measuredOnly GPT-5.4 measured
CorpFin (Vals AI)65.3%Not measuredOnly GPT-5.4 measured
TaxEval (Vals AI)74.0%Not measuredOnly GPT-5.4 measured
MortgageTax (Vals AI)68.3%Not measuredOnly GPT-5.4 measured
MedQA (Vals AI)96.1%Not measuredOnly GPT-5.4 measured
MedCode (Vals AI)41.3%Not measuredOnly GPT-5.4 measured
MMLU Pro (Artificial Analysis run)Not measured47.6%Only Llama 3.1 8B Instruct measured
SimpleQA Verified45.1%Not measuredOnly GPT-5.4 measured
MMLUNot measured56.1%Only Llama 3.1 8B Instruct measured
LMArena Text: science14791193GPT-5.4
LMArena Text: medicine and healthcare14581182GPT-5.4
LMArena Text: legal and government14861206GPT-5.4
LMArena Text: business and finance14741166GPT-5.4
Neither model has a result on the other 3 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for GPT-5.4 and Llama 3.1 8B Instruct
BenchmarkGPT-5.4Llama 3.1 8B InstructLeader
Design Arena: websites1198Not measuredOnly GPT-5.4 measured
Design Arena: UI components1212Not measuredOnly GPT-5.4 measured
Design Arena: game dev1194Not measuredOnly GPT-5.4 measured
Design Arena: data viz1196Not measuredOnly GPT-5.4 measured
Design Arena: 3D1065Not measuredOnly GPT-5.4 measured
Design Arena: all code categories1179Not measuredOnly GPT-5.4 measured
Design Arena: SVG1141Not measuredOnly GPT-5.4 measured
Design Arena: ASCII art1188Not measuredOnly GPT-5.4 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index200
General benchmarks for GPT-5.4 and Llama 3.1 8B Instruct
BenchmarkGPT-5.4Llama 3.1 8B InstructLeader
SAGE (Vals AI)43.3%Not measuredOnly GPT-5.4 measured
MedScribe (Vals AI)77.5%Not measuredOnly GPT-5.4 measured
IFBench73.9%28.6%GPT-5.4
Long context reasoning (AA-LCR)82.0%18.0%GPT-5.4
DTBench94.4%50.9%GPT-5.4
LMCA52.0%5.4%GPT-5.4
CL-bench27.9%Not measuredOnly GPT-5.4 measured
Furniture assembly37.5%Not measuredOnly GPT-5.4 measured
PIQANot measured81.2%Only Llama 3.1 8B Instruct measured
CL-bench Life21.7%Not measuredOnly GPT-5.4 measured
LMArena Text14691187GPT-5.4
LMArena Text: instruction following14691159GPT-5.4
LMArena Text: creative writing14391154GPT-5.4
LMArena Vision1303Not measuredOnly GPT-5.4 measured
LMArena Text: English14671218GPT-5.4
LMArena Text: non-English14651148GPT-5.4
LMArena Text: Chinese15201151GPT-5.4
LMArena Text: German14721144GPT-5.4
LMArena Text: Japanese14851061GPT-5.4
LMArena Text: Korean14491053GPT-5.4
LMArena Text: French14931178GPT-5.4
LMArena Text: Spanish14521169GPT-5.4
LMArena Text: Russian14801158GPT-5.4
LMArena Text: Polish1472Not measuredOnly GPT-5.4 measured
LMArena Text: multi-turn14821172GPT-5.4
LMArena Text: longer queries14731181GPT-5.4
LMArena Text: writing and language14581162GPT-5.4
LMArena Text: entertainment and media14381145GPT-5.4
LMArena Vision: English1301Not measuredOnly GPT-5.4 measured
LMArena Vision: Chinese1354Not measuredOnly GPT-5.4 measured
LMArena Vision: reading text1312Not measuredOnly GPT-5.4 measured
LMArena Vision: humor1284Not measuredOnly GPT-5.4 measured
LMArena Vision: recognizing things1251Not measuredOnly GPT-5.4 measured
LMArena Vision: creative writing1283Not measuredOnly GPT-5.4 measured
LMArena Document1471Not measuredOnly GPT-5.4 measured
Neither model has a result on the other 11 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GPT-5.4 and Llama 3.1 8B Instruct
BenchmarkGPT-5.4Llama 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$0.010Fits 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$0.170Fits 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$0.650Fits 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 and Llama 3.1 8B Instruct
SpecificationOpenAI GPT-5.4Meta Llama 3.1 8B Instruct
MakerOpenAIMeta Llama
WeightsNo public weights listedOpen weights
ReleasedMarch 5, 2026July 23, 2024
Context window1.05M131K
Input $/Mtok$2.50$0.05
Output $/Mtok$15.00$0.08
Coding index64.4Not benchmarked
Independent measurements behind it30
Cost per solved task$1.02Not computable
SourceOpenRouter listingOpenRouter listing

Questions

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

Only GPT-5.4 has a coding score, 64.4 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 187.5x cheaper ($0.08 vs $15.00 per million).

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

GPT-5.4 costs $2.50 per million input tokens and $15.00 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 only.

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

GPT-5.4, with 1.05M tokens against 131K.

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

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