Enter opens the highlighted result. Esc closes.

GPT-4.1 Nano vs Llama 3.1 8B Instruct

GPT-4.1 Nano leads Llama 3.1 8B Instruct on the Artificial Analysis Intelligence Index, 7.8 to 6.9, and Llama 3.1 8B Instruct costs 5.0x less per output token ($0.08 vs $0.40 per million). Updated October 22, 2026; 44 benchmarks have a result for both.

GPT-4.1 NanoOpenAI
Coding
No data
Overall
24.7
Output $/M
$0.40
43
Llama 3.1 8B InstructMeta Llama
Coding
No data
Overall
17.9
Output $/M
$0.08
1
vs boards won of 44 shared

GPT-4.1 Nano or Llama 3.1 8B Instruct: which to pick

Neither model has a coding score yet, so the two cannot be ranked on coding.

Pick GPT-4.1 Nano for a larger context window (1.05M against 131K tokens) and work measured by Humanity's Last Exam (Artificial Analysis run), where it leads.

Shared results
44
GPT-4.1 Nano only
27
Llama 3.1 8B Instruct only
7
Like-for-like categories
7 of 9

Only benchmarks that tested both models count toward a pick; a result only one model has is shown but not compared.

Which one for your work

Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.

At a glance

Coding index
GPT-4.1 Nano not benchmarked, Llama 3.1 8B Instruct not benchmarked.
Widest category
Math, 24.2 points apart on average over 6 shared benchmarks.
Widest single gap
MATH level 5: GPT-4.1 Nano 70.0% against Llama 3.1 8B Instruct 22.9%, 47.1 points apart on a 0 to 100 scale.
Output price
GPT-4.1 Nano $0.40 against Llama 3.1 8B Instruct $0.08 per million output tokens, 5.0x apart.
Context window
GPT-4.1 Nano takes 1.05M tokens, Llama 3.1 8B Instruct 131K.

Benchmark by benchmark

First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.

Boards won, where both have a result
CategoryGPT-4.1 NanoBarsLlama 3.1 8B InstructTies
Coding60
Intelligence20
Agentic work20
Reasoning51
Math60
Knowledge50
General170
All shared boards431
CodingLike-for-likeSix of these boards feed the Vibe Coding Index60
Coding benchmarks for GPT-4.1 Nano and Llama 3.1 8B Instruct
BenchmarkGPT-4.1 NanoLlama 3.1 8B InstructLeader
Aider polyglot8.9%Not measuredOnly GPT-4.1 Nano measured
AA Coding Index11.15.4GPT-4.1 Nano
LiveCodeBench (Vals AI)42.7%Not measuredOnly GPT-4.1 Nano measured
LiveCodeBench (Artificial Analysis run)32.6%11.6%GPT-4.1 Nano
Terminal-Bench Hard (Artificial Analysis run)3.8%0.8%GPT-4.1 Nano
WeirdML19.0%1.7%GPT-4.1 Nano
LMArena Text: coding13061195GPT-4.1 Nano
LMArena Text: software and IT13051195GPT-4.1 Nano
Neither model has a result on the other 31 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GPT-4.1 Nano and Llama 3.1 8B Instruct
BenchmarkGPT-4.1 NanoLlama 3.1 8B InstructLeader
AA Intelligence Index7.86.9GPT-4.1 Nano
Epoch Capabilities Index129.5116.5GPT-4.1 Nano
Agentic workLike-for-likePublic boards, shown as published, kept out of the index20
Agentic work benchmarks for GPT-4.1 Nano and Llama 3.1 8B Instruct
BenchmarkGPT-4.1 NanoLlama 3.1 8B InstructLeader
τ²-Bench Telecom17.3%16.4%GPT-4.1 Nano
BALROGNot measured15.1%Only Llama 3.1 8B Instruct measured
Berkeley Function Calling Leaderboard (BFCL)33.1%25.8%GPT-4.1 Nano
Neither model has a result on the other 38 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index51
Reasoning benchmarks for GPT-4.1 Nano and Llama 3.1 8B Instruct
BenchmarkGPT-4.1 NanoLlama 3.1 8B InstructLeader
GPQA Diamond50.8%Not measuredOnly GPT-4.1 Nano measured
MMMU Pro (Vals AI)55.0%Not measuredOnly GPT-4.1 Nano measured
GPQA Diamond (Artificial Analysis run)51.2%25.9%GPT-4.1 Nano
Humanity's Last Exam (Artificial Analysis run)3.8%5.3%Llama 3.1 8B Instruct
GPQA Diamond (Epoch AI run)48.9%27.0%GPT-4.1 Nano
ARC-AGI0.0%Not measuredOnly GPT-4.1 Nano measured
ARC-AGI-20.0%Not measuredOnly GPT-4.1 Nano measured
Chess puzzles0.0%Not measuredOnly GPT-4.1 Nano measured
LMArena Text: hard prompts12861175GPT-4.1 Nano
LMArena Text: expert12711144GPT-4.1 Nano
LMArena Text: hard prompts in English12931196GPT-4.1 Nano
Kagi LLM Benchmark33.3%Not measuredOnly GPT-4.1 Nano measured
Neither model has a result on the other 10 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index60
Math benchmarks for GPT-4.1 Nano and Llama 3.1 8B Instruct
BenchmarkGPT-4.1 NanoLlama 3.1 8B InstructLeader
AIME26.5%Not measuredOnly GPT-4.1 Nano measured
MATH 500 (Vals AI)80.2%Not measuredOnly GPT-4.1 Nano measured
MGSM (Vals AI)69.3%Not measuredOnly GPT-4.1 Nano measured
AA Math Index24.04.3GPT-4.1 Nano
AIME 2025 (Artificial Analysis run)24.0%4.3%GPT-4.1 Nano
OTIS Mock AIME28.9%1.7%GPT-4.1 Nano
MATH level 570.0%22.9%GPT-4.1 Nano
GSM8KNot measured82.4%Only Llama 3.1 8B Instruct measured
LMArena Text: math12741179GPT-4.1 Nano
LMArena Text: mathematical work12741180GPT-4.1 Nano
Neither model has a result on the other 3 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index50
Knowledge benchmarks for GPT-4.1 Nano and Llama 3.1 8B Instruct
BenchmarkGPT-4.1 NanoLlama 3.1 8B InstructLeader
MMLU Pro63.5%Not measuredOnly GPT-4.1 Nano measured
LegalBench (Vals AI)61.1%Not measuredOnly GPT-4.1 Nano measured
CorpFin (Vals AI)42.1%Not measuredOnly GPT-4.1 Nano measured
TaxEval (Vals AI)60.8%Not measuredOnly GPT-4.1 Nano measured
MortgageTax (Vals AI)52.8%Not measuredOnly GPT-4.1 Nano measured
MedQA (Vals AI)68.2%Not measuredOnly GPT-4.1 Nano measured
MMLU Pro (Artificial Analysis run)65.7%47.6%GPT-4.1 Nano
SimpleQA Verified6.0%Not measuredOnly GPT-4.1 Nano measured
MMLUNot measured56.1%Only Llama 3.1 8B Instruct measured
LMArena Text: science12971193GPT-4.1 Nano
LMArena Text: medicine and healthcare12761182GPT-4.1 Nano
LMArena Text: legal and government13001206GPT-4.1 Nano
LMArena Text: business and finance12671166GPT-4.1 Nano
Neither model has a result on the other 5 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
Web design benchmarks for GPT-4.1 Nano and Llama 3.1 8B Instruct
BenchmarkGPT-4.1 NanoLlama 3.1 8B InstructLeader
Design Arena: websites972Not measuredOnly GPT-4.1 Nano measured
Design Arena: UI components913Not measuredOnly GPT-4.1 Nano measured
Design Arena: game dev970Not measuredOnly GPT-4.1 Nano measured
Design Arena: data viz891Not measuredOnly GPT-4.1 Nano measured
Design Arena: 3D924Not measuredOnly GPT-4.1 Nano measured
Design Arena: all code categories962Not measuredOnly GPT-4.1 Nano measured
Neither model has a result on the other 3 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index170
General benchmarks for GPT-4.1 Nano and Llama 3.1 8B Instruct
BenchmarkGPT-4.1 NanoLlama 3.1 8B InstructLeader
IFBench32.0%28.6%GPT-4.1 Nano
Long context reasoning (AA-LCR)20.3%18.0%GPT-4.1 Nano
DTBench52.5%50.9%GPT-4.1 Nano
LMCA5.5%5.4%GPT-4.1 Nano
Fiction.LiveBench25.0%Not measuredOnly GPT-4.1 Nano measured
PIQANot measured81.2%Only Llama 3.1 8B Instruct measured
LMArena Text12851187GPT-4.1 Nano
LMArena Text: instruction following12661159GPT-4.1 Nano
LMArena Text: creative writing12601154GPT-4.1 Nano
LMArena Vision1063Not measuredOnly GPT-4.1 Nano measured
LMArena Text: English13031218GPT-4.1 Nano
LMArena Text: non-English12601148GPT-4.1 Nano
LMArena Text: Chinese12701151GPT-4.1 Nano
LMArena Text: German12881144GPT-4.1 Nano
LMArena Text: Japanese11981061GPT-4.1 Nano
LMArena Text: KoreanNot measured1053Only Llama 3.1 8B Instruct measured
LMArena Text: FrenchNot measured1178Only Llama 3.1 8B Instruct measured
LMArena Text: SpanishNot measured1169Only Llama 3.1 8B Instruct measured
LMArena Text: Russian12611158GPT-4.1 Nano
LMArena Text: multi-turn12771172GPT-4.1 Nano
LMArena Text: longer queries12831181GPT-4.1 Nano
LMArena Text: writing and language12611162GPT-4.1 Nano
LMArena Text: entertainment and media12431145GPT-4.1 Nano
LMArena Vision: English1101Not measuredOnly GPT-4.1 Nano measured
Neither model has a result on the other 22 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GPT-4.1 Nano and Llama 3.1 8B Instruct
BenchmarkGPT-4.1 NanoLlama 3.1 8B InstructLeader
Neither model has a result on 5 boards here

What each workload costs

Three fixed token mixes at each model's listed price, so per-token rates become a bill.

Chat turn

1K input + 500 output tokens

GPT-4.1 Nano$0.0003Fits in one request
Llama 3.1 8B Instruct$0.0001Fits in one request

Llama 3.1 8B Instruct costs less

Repository review

50K input + 3K output tokens

GPT-4.1 Nano$0.0062Fits in one request
Llama 3.1 8B Instruct$0.0027Fits in one request

Llama 3.1 8B Instruct costs less

Agent loop

200K input + 10K output tokens

GPT-4.1 Nano$0.024Fits in one request
Llama 3.1 8B Instruct$0.011Exceeds the context window

Llama 3.1 8B Instruct costs less

Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.

Specification differences

The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.

Specifications of GPT-4.1 Nano and Llama 3.1 8B Instruct
SpecificationOpenAI GPT-4.1 NanoMeta Llama 3.1 8B Instruct
MakerOpenAIMeta Llama
WeightsNo public weights listedOpen weights
ReleasedApril 14, 2025July 23, 2024
Context window1.05M131K
Input $/Mtok$0.10$0.05
Output $/Mtok$0.40$0.08
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it00
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

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

Neither model has a coding score yet, so the two cannot be ranked on coding. Pick GPT-4.1 Nano for a larger context window (1.05M against 131K tokens) and work measured by Humanity's Last Exam (Artificial Analysis run), where it leads.

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

GPT-4.1 Nano costs $0.10 per million input tokens and $0.40 per million output tokens; Llama 3.1 8B Instruct costs $0.05 and $0.08. Cost per solved task is known for neither of them.

Which has the bigger context window, GPT-4.1 Nano or Llama 3.1 8B Instruct?

GPT-4.1 Nano, with 1.05M tokens against 131K.

How many benchmarks is the GPT-4.1 Nano vs Llama 3.1 8B Instruct comparison based on?

44 benchmarks have a result for both models as of October 22, 2026. GPT-4.1 Nano's coding index rests on 0 independent benchmarks and Llama 3.1 8B Instruct's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next