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.
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 | Llama 3.1-8B | |
|---|---|---|
| Provider | OpenAI | Meta |
| Noometry Index | 35.9 | 23.0 |
| Released | 2025-04-14 | 2024-07-23 |
| Weights | Proprietary | Open |
| Context window | 1.05M | 128K |
| Max output | 33K | 4K |
| Input $ / M tokens | $2 | $0.05 |
| Output $ / M tokens | $8 | $0.08 |
| Results tracked | 52 | 43 |
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)
| Benchmark | GPT-4.1 | Llama 3.1-8B |
|---|---|---|
| WeirdML | 39% | 1.7% |
| LMArena Coding | 1391 | 1195 |
| SWE-bench Verified | 48.5% | — |
| SWE-bench Verified (bash only) | 39.6% | — |
| Aider Polyglot | 52.4% | — |
| SciCode | — | 13.2% |
| BigCodeBench Instruct | — | 32.8% |
| BigCodeBench Complete | — | 40.5% |
| CadEval | 42% | — |
| ALE-Bench | 558.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)
| Benchmark | GPT-4.1 | Llama 3.1-8B |
|---|---|---|
| Berkeley Function Calling Leaderboard | 54% | 25.8% |
| BALROG | — | 15.1% |
Reasoning Llama 3.1-8B leads
GPT-4.1: 11.7 (#339), Llama 3.1-8B: 14.9 (#321)
| Benchmark | GPT-4.1 | Llama 3.1-8B |
|---|---|---|
| Chess Puzzles | 6% | 0% |
| LMArena Hard Prompts | 1384 | 1175 |
| DTBench | 68.3% | 50.9% |
| LMCA | 25.6% | 5.4% |
| Epoch Capabilities Index | 136.78 | 116.57 |
| ARC-AGI-2 | 0.4% | — |
| SimpleBench | 27% | — |
| Kagi LLM Benchmark | 52.3% | — |
| ARC-AGI-1 | 5.5% | — |
| CritPt | — | 0% |
| EnigmaEval | 2.2% | — |
| ForecastBench | 61.5 | — |
| PIQA | — | 81.2% |
Math GPT-4.1 leads
GPT-4.1: 22.3 (#280), Llama 3.1-8B: 10.2 (#317)
| Benchmark | GPT-4.1 | Llama 3.1-8B |
|---|---|---|
| OTIS Mock AIME 2024-2025 | 38.3% | 1.7% |
| Omni-MATH | 47.1% | 13.7% |
| LMArena Math | 1370 | 1179 |
| MATH Level 5 | 83% | 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)
| Benchmark | GPT-4.1 | Llama 3.1-8B |
|---|---|---|
| GPQA Diamond | 66.9% | 27% |
| MMLU-Pro | 81.1% | 40.6% |
| GPQA (HELM) | 65.9% | 24.7% |
| LMArena Expert | 1364 | 1144 |
| Humanity's Last Exam | 5.4% | — |
| SimpleQA Verified | 31.1% | — |
| Vectara Hallucination Rate | 5.6% | — |
| BoolQ | — | 82.8% |
| MMLU | — | 56.1% |
Multimodal Not comparable
GPT-4.1: 38.2 (#67), Llama 3.1-8B: —
| Benchmark | GPT-4.1 | Llama 3.1-8B |
|---|---|---|
| LMArena Vision | 1211 | — |
| GeoBench | 72% | — |
Multilingual GPT-4.1 leads
GPT-4.1: 49.4 (#133), Llama 3.1-8B: 34.0 (#249)
| Benchmark | GPT-4.1 | Llama 3.1-8B |
|---|---|---|
| LMArena Non-English | 1370 | 1148 |
| LMArena Chinese | 1382 | 1151 |
| LMArena French | 1382 | 1177 |
| LMArena German | 1381 | 1144 |
| LMArena Japanese | 1319 | 1061 |
| LMArena Korean | 1339 | 1053 |
| LMArena Russian | 1377 | 1158 |
| LMArena Spanish | 1376 | 1169 |
Instruction Following GPT-4.1 leads
GPT-4.1: 71.3 (#153), Llama 3.1-8B: 58.9 (#258)
| Benchmark | GPT-4.1 | Llama 3.1-8B |
|---|---|---|
| IFEval | 83.8% | 74.3% |
| LMArena Instruction Following | 1367 | 1159 |
Long Context GPT-4.1 leads
GPT-4.1: 40.0 (#163), Llama 3.1-8B: 35.8 (#238)
| Benchmark | GPT-4.1 | Llama 3.1-8B |
|---|---|---|
| LMArena Longer Query | 1385 | 1182 |
| Fiction.LiveBench | 63.9% | — |
Writing & Preference GPT-4.1 leads
GPT-4.1: 57.6 (#125), Llama 3.1-8B: 29.7 (#290)
| Benchmark | GPT-4.1 | Llama 3.1-8B |
|---|---|---|
| LMArena Text | 1383 | 1187 |
| LMArena Creative Writing | 1363 | 1154 |
| EQ-Bench Creative Writing | 1420 | 713 |
| WildBench | 85.4% | 68.7% |
| LMArena Multi-Turn | 1398 | 1172 |
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.