# GPT-5.4 mini vs Llama 3.1-8B

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

- Canonical page: https://noometry.com/compare/gpt-5-4-mini-vs-llama-3-1-8b
- Last updated: 2026-10-12
- Shared benchmarks: 27

## Summary

- They share 27 benchmarks with published results for both. GPT-5.4 mini scores higher in 9 categories and Llama 3.1-8B in 0 categories; 9 gaps are clear of the uncertainty.
- The widest gap is in knowledge, where GPT-5.4 mini leads 51.5 to 8.0.
- The biggest single-benchmark swing is OTIS Mock AIME 2024-2025: 88.9% for GPT-5.4 mini and 1.7% for Llama 3.1-8B.
- Llama 3.1-8B is cheaper at $0.05 / $0.08 per million input/output tokens, against $0.75 / $4.50 for GPT-5.4 mini.
- GPT-5.4 mini accepts more context: 400K tokens versus 128K.
- Llama 3.1-8B has downloadable open weights; the other is API-only.

## Snapshot

| | GPT-5.4 mini | Llama 3.1-8B |
|---|---|---|
| Provider | OpenAI | Meta |
| Noometry Index | 45.0 | 23.0 |
| Rank | 76 | 352 |
| Context | 400K | 128K |
| Input $/M | $0.75 | $0.05 |
| Output $/M | $4.50 | $0.08 |
| Weights | Proprietary | Open |

## Coding

- GPT-5.4 mini: 45.2 (#72)
- Llama 3.1-8B: 20.2 (#340)

| Benchmark | GPT-5.4 mini | Llama 3.1-8B |
|---|---|---|
| SciCode | 49.9% | 13.2% |
| WeirdML | 60.3% | 1.7% |
| LMArena Coding | 1438 | 1195 |
| FrontierCode | 27% | — |
| LMArena WebDev | 1397 | — |
| BigCodeBench Instruct | — | 32.8% |
| BigCodeBench Complete | — | 40.5% |
| ALE-Bench | 1,189 | — |
| HumanEval+ | — | 62.8% |
| MBPP+ | — | 55.6% |

## Agentic & Tool Use

- GPT-5.4 mini: 29.9 (#81)
- Llama 3.1-8B: 22.5 (#131)

| Benchmark | GPT-5.4 mini | Llama 3.1-8B |
|---|---|---|
| Berkeley Function Calling Leaderboard | — | 25.8% |
| DeepResearch Bench | 36.3% | — |
| BALROG | — | 15.1% |

## Reasoning

- GPT-5.4 mini: 30.4 (#85)
- Llama 3.1-8B: 14.9 (#321)

| Benchmark | GPT-5.4 mini | Llama 3.1-8B |
|---|---|---|
| CritPt | 10% | 0% |
| Chess Puzzles | 24% | 0% |
| LMArena Hard Prompts | 1424 | 1175 |
| DTBench | 80% | 50.9% |
| LMCA | 40.8% | 5.4% |
| Epoch Capabilities Index | 148.84 | 116.57 |
| ARC-AGI-2 | 18.9% | — |
| Kagi LLM Benchmark | 37.9% | — |
| NYT Connections (extended) | 61.8% | — |
| ARC-AGI-1 | 63.7% | — |
| Thematic Generalization | 61.7% | — |
| Mystery Game Puzzles | 11% | — |
| ForecastBench | 57 | — |
| PIQA | — | 81.2% |

## Math

- GPT-5.4 mini: 45.5 (#75)
- Llama 3.1-8B: 10.2 (#317)

| Benchmark | GPT-5.4 mini | Llama 3.1-8B |
|---|---|---|
| OTIS Mock AIME 2024-2025 | 88.9% | 1.7% |
| LMArena Math | 1419 | 1179 |
| FrontierMath (Tiers 1-3) | 51.2% | — |
| FrontierMath Tier 4 | 9.8% | — |
| ProofBench | 21% | — |
| Omni-MATH | — | 13.7% |
| MATH Level 5 | — | 22.9% |
| FrontierMath (Feb 2025 set) | 28.3% | — |
| FrontierMath Tier 4 (v1) | 2.1% | — |
| GSM8K | — | 82.4% |

## Knowledge

- GPT-5.4 mini: 51.5 (#67)
- Llama 3.1-8B: 8.0 (#307)

| Benchmark | GPT-5.4 mini | Llama 3.1-8B |
|---|---|---|
| GPQA Diamond | 86.9% | 27% |
| LMArena Expert | 1435 | 1144 |
| SimpleQA Verified | 29.4% | — |
| MMLU-Pro | — | 40.6% |
| Vectara Hallucination Rate | 5.5% | — |
| GPQA (HELM) | — | 24.7% |
| BoolQ | — | 82.8% |
| MMLU | — | 56.1% |

## Multimodal

- GPT-5.4 mini: 39.7 (#56)
- Llama 3.1-8B: —

| Benchmark | GPT-5.4 mini | Llama 3.1-8B |
|---|---|---|
| LMArena Vision | 1245 | — |

## Multilingual

- GPT-5.4 mini: 51.9 (#96)
- Llama 3.1-8B: 34.0 (#249)

| Benchmark | GPT-5.4 mini | Llama 3.1-8B |
|---|---|---|
| LMArena Non-English | 1405 | 1148 |
| LMArena Chinese | 1446 | 1151 |
| LMArena French | 1440 | 1177 |
| LMArena German | 1409 | 1144 |
| LMArena Japanese | 1374 | 1061 |
| LMArena Korean | 1368 | 1053 |
| LMArena Russian | 1417 | 1158 |
| LMArena Spanish | 1405 | 1169 |

## Instruction Following

- GPT-5.4 mini: 74.1 (#102)
- Llama 3.1-8B: 58.9 (#258)

| Benchmark | GPT-5.4 mini | Llama 3.1-8B |
|---|---|---|
| LMArena Instruction Following | 1405 | 1159 |
| IFEval | — | 74.3% |

## Long Context

- GPT-5.4 mini: 43.0 (#112)
- Llama 3.1-8B: 35.8 (#238)

| Benchmark | GPT-5.4 mini | Llama 3.1-8B |
|---|---|---|
| LMArena Longer Query | 1407 | 1182 |

## Writing & Preference

- GPT-5.4 mini: 64.0 (#58)
- Llama 3.1-8B: 29.7 (#290)

| Benchmark | GPT-5.4 mini | Llama 3.1-8B |
|---|---|---|
| LMArena Text | 1412 | 1187 |
| LMArena Creative Writing | 1370 | 1154 |
| EQ-Bench Creative Writing | 1665 | 713 |
| LMArena Multi-Turn | 1429 | 1172 |
| WildBench | — | 68.7% |

## FAQ

### Is GPT-5.4 mini better than Llama 3.1-8B?

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

### Which is cheaper, GPT-5.4 mini 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-5.4 mini lists at $0.75 and $4.50.

### Is GPT-5.4 mini or Llama 3.1-8B better for coding?

GPT-5.4 mini scores higher on coding benchmarks: 45.2 versus 20.2 in the Noometry coding category.

### Which has the bigger context window?

GPT-5.4 mini does, with 400K tokens against 128K.

### How many benchmarks do GPT-5.4 mini and Llama 3.1-8B share?

27 benchmarks have published results for both models. GPT-5.4 mini has 46 scored results on Noometry and Llama 3.1-8B has 43.
