Skip to main content
Launching the open-source gateway

GPT-4o mini vs Llama 3.1 8B Instruct

SpecGPT-4o miniLlama 3.1 8B Instruct
Respan Index10.7 (#157)6.9 (#161)
Blended price per 1M$0.262$0.025
Context window128K128K
Input / output per 1M$0.15 / $0.6$0.02 / $0.04
Max output16K-
Inputtext, visiontext
Released2024-07-182024-07-23

Respan Index by category

Each category is scored 0 to 100, and how far ahead the winner is. Leads under a point are close to even.

CategoryGPT-4o miniLlama 3.1 8B Instruct
Coding0.6 GPT-4o mini0.0 Llama 3.1 8B Instruct
Agents1.8 GPT-4o mini0.8 Llama 3.1 8B Instruct
Reasoning17.7 GPT-4o mini13.8 Llama 3.1 8B Instruct
Knowledge & language8.2 GPT-4o mini0.4 Llama 3.1 8B Instruct
Human preference32.2 GPT-4o mini21.6 Llama 3.1 8B Instruct

How the Respan Index works

Benchmarks both report

GPT-4o mini leads on 7 of the 7 benchmarks both report. Higher is better. Each score links to where it was published.

BenchmarkGPT-4o miniLlama 3.1 8B Instruct
LMArena Elo13181211
GPQA Diamond40.2%27%
MATH Level 5 (Epoch AI)52.6%22.9%
OTIS Mock AIME 2024-2025 (Epoch AI)6.9%1.7%
WeirdML (Håvard Tveit Ihle)11.8%1.7%
MMLU82%69.4%
BALROG (BALROG)17.4%15.1%

FAQ

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

GPT-4o mini scores 10.7 on the Respan Index (#157), ahead of Llama 3.1 8B Instruct at 6.9 (#161). GPT-4o mini leads on 7 of the 7 benchmarks both report.

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

GPT-4o mini lists at $0.15 input and $0.6 output per 1M tokens; Llama 3.1 8B Instruct at $0.02 and $0.04. Llama 3.1 8B Instruct is 10x cheaper per token at list price.

Which has the larger context window?

Both accept 128K tokens of context.

Compare other models

vs

Built for AI agents.
Break less.
Ship more.