Compare / Llama 3.1 8B Instruct vs GPT-4.1 Nano

Llama 3.1 8B Instruct vs GPT-4.1 Nano

Which is cheaper, which is more capable, and which does better at each kind of work, from 23 results on 3 sources that measured both models.

Llama 3.1 8B Instruct
Meta · profile
GPT-4.1 Nano
OpenAI · profile
Results compared
23
Shared sources
3

Llama 3.1 8B Instruct or GPT-4.1 Nano? The short answer

  • Llama 3.1 8B Instruct is cheaper: $0.058 against $0.18 per million tokens, 3.0 times less.
  • They score about the same on the Artificial Analysis Intelligence Index (6.9 and 7.8).
  • On our business benchmarks, GPT-4.1 Nano ranks higher for agents and tool use, reasoning and knowledge and writing.

At a glance

Llama 3.1 8B InstructGPT-4.1 Nano
Price per million tokens$0.050 in · $0.080 out$0.10 in · $0.40 out
Blended (3 in : 1 out)$0.058$0.18
Cheapest host, blended$0.025 (DeepInfra, FP8)$0.18 (Azure)
Intelligence Index6.97.8
Spring Prompt overall––
Output speed, tokens a second––
Context window131,072 tokens1,047,576 tokens
WeightsOpenClosed
Developer based inthe USthe US

Prices are the developer's list price where we have read it, otherwise the typical host on OpenRouter; see every model's price. Intelligence and speed from Artificial Analysis.

Which is better for what

Each model's rank among models available today, for each kind of work, from our own benchmarks and licensed sources. The better rank is in green.

Use caseLlama 3.1 8B InstructGPT-4.1 Nano
Agents and tool useMulti-step tasks with tools: support desks, coding agents, function calls 154 of 161 139 of 161
Reasoning and knowledgeHard questions across science, maths and general knowledge 173 of 195 169 of 195
WritingWhat people prefer in blind comparisons, and judged writing quality 178 of 187 162 of 187
Sticking to the factsSummarising without inventing things, and factual answers not measured 151 of 153

Every shared result

BenchmarkMetricLlama 3.1 8B InstructGPT-4.1 Nano
Arena (formerly LMArena)reportedBusiness, management and financeArena rating 1,2101,321
Arena (formerly LMArena)reportedCreative writingArena rating 1,1771,307
Arena (formerly LMArena)reportedExpert promptsArena rating 1,1981,313
Arena (formerly LMArena)reportedInstruction followingArena rating 1,1911,300
Arena (formerly LMArena)reportedOverallArena rating 1,2111,322
Arena (formerly LMArena)reportedWriting, literature and languageArena rating 1,1821,299
Artificial AnalysisreportedArtificial Analysis Coding Indexindex score 5.4011.1
Artificial AnalysisreportedArtificial Analysis Intelligence Indexindex score 6.907.80
Artificial AnalysisreportedGPQA Diamond% of questions 25.9%51.2%
Artificial AnalysisreportedHumanity's Last Exam% of questions 5.3%3.8%
Artificial AnalysisreportedIFBench% of instructions 28.6%32.0%
Artificial AnalysisreportedLong-context reasoning (AA-LCR)% of questions 18.0%20.3%
Artificial AnalysisreportedTerminal-Bench 2.1% of tasks 1.5%3.7%
Artificial AnalysisreportedTerminal-Bench Hard% of tasks 0.8%3.8%
Artificial AnalysisreportedΤ²-bench telecom% of tasks 16.4%17.3%
Berkeley Function Calling Leaderboard (BFCL) V4reportedIrrelevance detection% correct 42.7%83.4%
Berkeley Function Calling Leaderboard (BFCL) V4reportedMemory% correct 10.8%18.9%
Berkeley Function Calling Leaderboard (BFCL) V4reportedMulti-turn tasks% correct 11.1%23.6%
Berkeley Function Calling Leaderboard (BFCL) V4reportedOverall accuracy% correct 25.8%33.0%
Berkeley Function Calling Leaderboard (BFCL) V4reportedRelevance detection% correct 93.8%93.8%
Berkeley Function Calling Leaderboard (BFCL) V4reportedSingle-turn calls (curated)% correct 84.0%73.0%
Berkeley Function Calling Leaderboard (BFCL) V4reportedSingle-turn calls (user-contributed)% correct 70.8%60.8%
Berkeley Function Calling Leaderboard (BFCL) V4reportedWeb search% correct 3.0%11.0%

Bold green marks the better value on that metric. Where a source reports ranges that overlap, the difference may not be meaningful; see the benchmark page for ranges.

Quick answers

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

It depends on the task. Among models available today, on our benchmarks and licensed sources, GPT-4.1 Nano ranks higher for agents and tool use, reasoning and knowledge and writing.

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

Llama 3.1 8B Instruct costs $0.058 per million tokens (three input to one output), against $0.18 for GPT-4.1 Nano.

Run Llama 3.1 8B Instruct and GPT-4.1 Nano on your own prompt

Benchmarks aren't your data. Try both side by side in the playground, with the cost of every answer.