Model comparison

GPT-4.1 vs Llama 3.1-8B

GPT-4.1 is the stronger model overall, scoring 35.9 to 23.0 on the Noometry Index. Llama 3.1-8B costs 61× less per token, which makes it the better buy when GPT-4.1's lead doesn't matter for your workload.

Last verified . 32 shared benchmarks.

GPT-4.1 OpenAI

35.9

Rank #219 Confirmed

Llama 3.1-8B Meta

23.0

Rank #352 Confirmed

Summary

  • They share 32 benchmarks with published results for both. GPT-4.1 scores higher in 8 categories and Llama 3.1-8B in 1 category; 9 gaps are clear of the uncertainty.
  • The widest gap is in knowledge, where GPT-4.1 leads 37.1 to 8.0.
  • The biggest single-benchmark swing is MATH Level 5: 83% for GPT-4.1 and 22.9% for Llama 3.1-8B.
  • Llama 3.1-8B is cheaper at $0.05 / $0.08 per million input/output tokens, against $2 / $8 for GPT-4.1.
  • GPT-4.1 accepts more context: 1.05M tokens versus 128K.
  • Llama 3.1-8B has downloadable open weights; the other is API-only.

Side by side

GPT-4.1 and Llama 3.1-8B specifications
GPT-4.1Llama 3.1-8B
ProviderOpenAIMeta
Noometry Index35.923.0
Released2025-04-142024-07-23
WeightsProprietaryOpen
Context window1.05M128K
Max output33K4K
Input $ / M tokens$2$0.05
Output $ / M tokens$8$0.08
Results tracked5243

Sponsored placements are available on pages like this one. Advertise on Noometry

Category by category

Coding GPT-4.1 leads

GPT-4.1: 34.4 (#238), Llama 3.1-8B: 20.2 (#340)

Coding benchmarks
BenchmarkGPT-4.1Llama 3.1-8B
WeirdML39%1.7%
LMArena Coding13911195
SWE-bench Verified48.5%—
SWE-bench Verified (bash only)39.6%—
Aider Polyglot52.4%—
SciCode—13.2%
BigCodeBench Instruct—32.8%
BigCodeBench Complete—40.5%
CadEval42%—
ALE-Bench558.1—
HumanEval+—62.8%
MBPP+—55.6%

Agentic & Tool Use GPT-4.1 leads

GPT-4.1: 34.7 (#43), Llama 3.1-8B: 22.5 (#131)

Agentic & Tool Use benchmarks
BenchmarkGPT-4.1Llama 3.1-8B
Berkeley Function Calling Leaderboard54%25.8%
BALROG—15.1%

Reasoning Llama 3.1-8B leads

GPT-4.1: 11.7 (#339), Llama 3.1-8B: 14.9 (#321)

Reasoning benchmarks
BenchmarkGPT-4.1Llama 3.1-8B
Chess Puzzles6%0%
LMArena Hard Prompts13841175
DTBench68.3%50.9%
LMCA25.6%5.4%
Epoch Capabilities Index136.78116.57
ARC-AGI-20.4%—
SimpleBench27%—
Kagi LLM Benchmark52.3%—
ARC-AGI-15.5%—
CritPt—0%
EnigmaEval2.2%—
ForecastBench61.5—
PIQA—81.2%

Math GPT-4.1 leads

GPT-4.1: 22.3 (#280), Llama 3.1-8B: 10.2 (#317)

Math benchmarks
BenchmarkGPT-4.1Llama 3.1-8B
OTIS Mock AIME 2024-202538.3%1.7%
Omni-MATH47.1%13.7%
LMArena Math13701179
MATH Level 583%22.9%
FrontierMath (Tiers 1-3)6%—
FrontierMath (Feb 2025 set)5.5%—
FrontierMath Tier 4 (v1)0%—
GSM8K—82.4%

Knowledge GPT-4.1 leads

GPT-4.1: 37.1 (#160), Llama 3.1-8B: 8.0 (#307)

Knowledge benchmarks
BenchmarkGPT-4.1Llama 3.1-8B
GPQA Diamond66.9%27%
MMLU-Pro81.1%40.6%
GPQA (HELM)65.9%24.7%
LMArena Expert13641144
Humanity's Last Exam5.4%—
SimpleQA Verified31.1%—
Vectara Hallucination Rate5.6%—
BoolQ—82.8%
MMLU—56.1%

Multimodal Not comparable

GPT-4.1: 38.2 (#67), Llama 3.1-8B: —

Multimodal benchmarks
BenchmarkGPT-4.1Llama 3.1-8B
LMArena Vision1211—
GeoBench72%—

Multilingual GPT-4.1 leads

GPT-4.1: 49.4 (#133), Llama 3.1-8B: 34.0 (#249)

Multilingual benchmarks
BenchmarkGPT-4.1Llama 3.1-8B
LMArena Non-English13701148
LMArena Chinese13821151
LMArena French13821177
LMArena German13811144
LMArena Japanese13191061
LMArena Korean13391053
LMArena Russian13771158
LMArena Spanish13761169

Instruction Following GPT-4.1 leads

GPT-4.1: 71.3 (#153), Llama 3.1-8B: 58.9 (#258)

Instruction Following benchmarks
BenchmarkGPT-4.1Llama 3.1-8B
IFEval83.8%74.3%
LMArena Instruction Following13671159

Long Context GPT-4.1 leads

GPT-4.1: 40.0 (#163), Llama 3.1-8B: 35.8 (#238)

Long Context benchmarks
BenchmarkGPT-4.1Llama 3.1-8B
LMArena Longer Query13851182
Fiction.LiveBench63.9%—

Writing & Preference GPT-4.1 leads

GPT-4.1: 57.6 (#125), Llama 3.1-8B: 29.7 (#290)

Writing & Preference benchmarks
BenchmarkGPT-4.1Llama 3.1-8B
LMArena Text13831187
LMArena Creative Writing13631154
EQ-Bench Creative Writing1420713
WildBench85.4%68.7%
LMArena Multi-Turn13981172

Frequently asked questions

Is GPT-4.1 better than Llama 3.1-8B?

GPT-4.1 is the stronger model overall, scoring 35.9 to 23.0 on the Noometry Index. Llama 3.1-8B costs 61× less per token, which makes it the better buy when GPT-4.1's lead doesn't matter for your workload.

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

Llama 3.1-8B is cheaper. It lists at $0.05 per million input tokens and $0.08 per million output tokens; GPT-4.1 lists at $2 and $8.

Is GPT-4.1 or Llama 3.1-8B better for coding?

GPT-4.1 scores higher on coding benchmarks: 34.4 versus 20.2 in the Noometry coding category.

Which has the bigger context window?

GPT-4.1 does, with 1.05M tokens against 128K.

How many benchmarks do GPT-4.1 and Llama 3.1-8B share?

32 benchmarks have published results for both models. GPT-4.1 has 52 scored results on Noometry and Llama 3.1-8B has 43.

Related comparisons

Go deeper