Enter opens the highlighted result. Esc closes.

GPT-4o-mini vs Llama 3.1 8B Instruct

Llama 3.1 8B Instruct leads GPT-4o-mini on the Artificial Analysis Intelligence Index, 6.9 to 6.7, and Llama 3.1 8B Instruct costs 7.5x less per output token ($0.08 vs $0.60 per million). Updated October 21, 2026; 15 benchmarks have a result for both.

GPT-4o-miniOpenAI
Coding
No data
Overall
No data
Output $/M
$0.60
13
Llama 3.1 8B InstructMeta Llama
Coding
No data
Overall
17.9
Output $/M
$0.08
2
vs boards won of 15 shared

GPT-4o-mini or Llama 3.1 8B Instruct: which to pick

Neither model has a coding score yet, so the two cannot be ranked on coding.

Pick GPT-4o-mini for work measured by AA Intelligence Index or Humanity's Last Exam (Artificial Analysis run), where it leads.

Shared results
15
GPT-4o-mini only
14
Llama 3.1 8B Instruct only
36
Like-for-like categories
6 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-4o-mini not benchmarked, Llama 3.1 8B Instruct not benchmarked.
Widest category
Knowledge, 21.4 points apart on average over 2 shared benchmarks.
Widest single gap
MMLU: GPT-4o-mini 81.8% against Llama 3.1 8B Instruct 56.1%, 25.7 points apart on a 0 to 100 scale.
Output price
GPT-4o-mini $0.60 against Llama 3.1 8B Instruct $0.08 per million output tokens, 7.5x apart.
Context window
GPT-4o-mini takes 128K 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-4o-miniBarsLlama 3.1 8B InstructTies
Coding20
Intelligence11
Reasoning11
Math30
Knowledge20
General40
All shared boards132
CodingLike-for-likeSix of these boards feed the Vibe Coding Index20
Coding benchmarks for GPT-4o-mini and Llama 3.1 8B Instruct
BenchmarkGPT-4o-miniLlama 3.1 8B InstructLeader
AA Coding Index11.45.4GPT-4o-mini
LiveCodeBench (Vals AI)26.4%Not measuredOnly GPT-4o-mini measured
LiveCodeBench (Artificial Analysis run)23.4%11.6%GPT-4o-mini
Terminal-Bench Hard (Artificial Analysis run)Not measured0.8%Only Llama 3.1 8B Instruct measured
WeirdMLNot measured1.7%Only Llama 3.1 8B Instruct measured
LMArena Text: codingNot measured1195Only Llama 3.1 8B Instruct measured
LMArena Text: software and ITNot measured1195Only Llama 3.1 8B Instruct measured
SciCode1.5%Not measuredOnly GPT-4o-mini measured
Neither model has a result on the other 31 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index11
Intelligence benchmarks for GPT-4o-mini and Llama 3.1 8B Instruct
BenchmarkGPT-4o-miniLlama 3.1 8B InstructLeader
AA Intelligence Index6.76.9Llama 3.1 8B Instruct
Epoch Capabilities Index126.5116.5GPT-4o-mini
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index3 boards, none shared
Agentic work benchmarks for GPT-4o-mini and Llama 3.1 8B Instruct
BenchmarkGPT-4o-miniLlama 3.1 8B InstructLeader
τ²-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 38 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index11
Reasoning benchmarks for GPT-4o-mini and Llama 3.1 8B Instruct
BenchmarkGPT-4o-miniLlama 3.1 8B InstructLeader
GPQA Diamond44.2%Not measuredOnly GPT-4o-mini measured
MMMU Pro (Vals AI)56.6%Not measuredOnly GPT-4o-mini measured
GPQA Diamond (Artificial Analysis run)42.6%25.9%GPT-4o-mini
Humanity's Last Exam (Artificial Analysis run)4.2%5.3%Llama 3.1 8B Instruct
GPQA Diamond (Epoch AI run)Not measured27.0%Only Llama 3.1 8B Instruct measured
ARC-AGI-20.0%Not measuredOnly GPT-4o-mini 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
Kagi LLM Benchmark28.8%Not measuredOnly GPT-4o-mini measured
Neither model has a result on the other 12 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index30
Math benchmarks for GPT-4o-mini and Llama 3.1 8B Instruct
BenchmarkGPT-4o-miniLlama 3.1 8B InstructLeader
AIME11.5%Not measuredOnly GPT-4o-mini measured
MATH 500 (Vals AI)72.6%Not measuredOnly GPT-4o-mini measured
MGSM (Vals AI)86.2%Not measuredOnly GPT-4o-mini measured
AA Math Index14.74.3GPT-4o-mini
AIME 2025 (Artificial Analysis run)14.7%4.3%GPT-4o-mini
OTIS Mock AIMENot measured1.7%Only Llama 3.1 8B Instruct measured
MATH level 5Not measured22.9%Only Llama 3.1 8B Instruct measured
GSM8K91.3%82.4%GPT-4o-mini
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
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index20
Knowledge benchmarks for GPT-4o-mini and Llama 3.1 8B Instruct
BenchmarkGPT-4o-miniLlama 3.1 8B InstructLeader
MMLU Pro62.7%Not measuredOnly GPT-4o-mini measured
CorpFin (Vals AI)45.5%Not measuredOnly GPT-4o-mini measured
TaxEval (Vals AI)60.5%Not measuredOnly GPT-4o-mini measured
MortgageTax (Vals AI)54.5%Not measuredOnly GPT-4o-mini measured
MedQA (Vals AI)72.4%Not measuredOnly GPT-4o-mini measured
MMLU Pro (Artificial Analysis run)64.8%47.6%GPT-4o-mini
MMLU81.8%56.1%GPT-4o-mini
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 7 boards here
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Web design benchmarks for GPT-4o-mini and Llama 3.1 8B Instruct
BenchmarkGPT-4o-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 index40
General benchmarks for GPT-4o-mini and Llama 3.1 8B Instruct
BenchmarkGPT-4o-miniLlama 3.1 8B InstructLeader
IFBench31.0%28.6%GPT-4o-mini
Long context reasoning (AA-LCR)Not measured18.0%Only Llama 3.1 8B Instruct measured
DTBench54.4%50.9%GPT-4o-mini
LMCA10.4%5.4%GPT-4o-mini
PIQA88.7%81.2%GPT-4o-mini
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 25 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GPT-4o-mini and Llama 3.1 8B Instruct
BenchmarkGPT-4o-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-4o-mini$0.0004Fits 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-4o-mini$0.0093Fits 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-4o-mini$0.036Exceeds the context window
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-4o-mini and Llama 3.1 8B Instruct
SpecificationOpenAI GPT-4o-miniMeta Llama 3.1 8B Instruct
MakerOpenAIMeta Llama
WeightsNo public weights listedOpen weights
ReleasedJuly 18, 2024July 23, 2024
Context window128K131K
Input $/Mtok$0.15$0.05
Output $/Mtok$0.60$0.08
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it00
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is GPT-4o-mini better than Llama 3.1 8B Instruct for coding?

Neither model has a coding score yet, so the two cannot be ranked on coding. Pick GPT-4o-mini for work measured by AA Intelligence Index or Humanity's Last Exam (Artificial Analysis run), where it leads.

Which is cheaper, GPT-4o-mini or Llama 3.1 8B Instruct?

GPT-4o-mini costs $0.15 per million input tokens and $0.60 per million output tokens; Llama 3.1 8B Instruct costs $0.05 and $0.08. Cost per solved task is known for neither of them.

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

Llama 3.1 8B Instruct, with 131K tokens against 128K.

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

15 benchmarks have a result for both models as of October 21, 2026. GPT-4o-mini's coding index rests on 0 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