Enter opens the highlighted result. Esc closes.

Gemma 4 26B A4B vs Llama 3.1 8B Instruct

Gemma 4 26B A4B leads Llama 3.1 8B Instruct on the Artificial Analysis Intelligence Index, 16.7 to 6.9, and Llama 3.1 8B Instruct costs 7.5x less per output token ($0.08 vs $0.60 per million). Updated October 22, 2026; 38 benchmarks have a result for both.

Gemma 4 26B A4BGoogle
Coding
No data
Overall
54.7
Output $/M
$0.60
38
Llama 3.1 8B InstructMeta Llama
Coding
No data
Overall
17.9
Output $/M
$0.08
0
vs boards won of 38 shared

Gemma 4 26B A4B 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 Gemma 4 26B A4B for a larger context window (262K against 131K tokens).

Shared results
38
Gemma 4 26B A4B only
17
Llama 3.1 8B Instruct only
13
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
Gemma 4 26B A4B not benchmarked, Llama 3.1 8B Instruct not benchmarked.
Widest category
Math, 59.4 points apart on average over 3 shared benchmarks.
Widest single gap
OTIS Mock AIME: Gemma 4 26B A4B 82.2% against Llama 3.1 8B Instruct 1.7%, 80.6 points apart on a 0 to 100 scale.
Output price
Gemma 4 26B A4B $0.60 against Llama 3.1 8B Instruct $0.08 per million output tokens, 7.5x apart.
Context window
Gemma 4 26B A4B takes 262K 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
CategoryGemma 4 26B A4BBarsLlama 3.1 8B InstructTies
Coding50
Intelligence20
Agentic work10
Reasoning60
Math30
Knowledge40
General170
All shared boards380
CodingLike-for-likeSix of these boards feed the Vibe Coding Index50
Coding benchmarks for Gemma 4 26B A4B and Llama 3.1 8B Instruct
BenchmarkGemma 4 26B A4BLlama 3.1 8B InstructLeader
LMArena WebDev1360Not measuredOnly Gemma 4 26B A4B measured
AA Coding Index39.35.4Gemma 4 26B A4B
LiveCodeBench (Artificial Analysis run)Not measured11.6%Only Llama 3.1 8B Instruct measured
SciCode40.0%Not measuredOnly Gemma 4 26B A4B measured
Terminal-Bench Hard (Artificial Analysis run)25.0%0.8%Gemma 4 26B A4B
WeirdML35.2%1.7%Gemma 4 26B A4B
ALE-Bench927.2Not measuredOnly Gemma 4 26B A4B measured
LMArena Text: coding14461195Gemma 4 26B A4B
LMArena Text: software and IT14541195Gemma 4 26B A4B
LMArena WebDev: React1351Not measuredOnly Gemma 4 26B A4B measured
LMArena WebDev: HTML1362Not measuredOnly Gemma 4 26B A4B measured
Neither model has a result on the other 28 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Gemma 4 26B A4B and Llama 3.1 8B Instruct
BenchmarkGemma 4 26B A4BLlama 3.1 8B InstructLeader
AA Intelligence Index16.76.9Gemma 4 26B A4B
Epoch Capabilities Index141.9116.5Gemma 4 26B A4B
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for Gemma 4 26B A4B and Llama 3.1 8B Instruct
BenchmarkGemma 4 26B A4BLlama 3.1 8B InstructLeader
AA Agentic Index2.9Not measuredOnly Gemma 4 26B A4B measured
τ²-Bench Telecom43.6%16.4%Gemma 4 26B A4B
BALROGNot measured15.1%Only Llama 3.1 8B Instruct measured
Berkeley Function Calling Leaderboard (BFCL)Not measured25.8%Only Llama 3.1 8B Instruct measured
Neither model has a result on the other 37 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index60
Reasoning benchmarks for Gemma 4 26B A4B and Llama 3.1 8B Instruct
BenchmarkGemma 4 26B A4BLlama 3.1 8B InstructLeader
GPQA Diamond (Artificial Analysis run)79.2%25.9%Gemma 4 26B A4B
Humanity's Last Exam (Artificial Analysis run)19.3%5.3%Gemma 4 26B A4B
GPQA Diamond (Epoch AI run)73.2%27.0%Gemma 4 26B A4B
LMArena Text: hard prompts14381175Gemma 4 26B A4B
LMArena Text: expert14471144Gemma 4 26B A4B
LMArena Text: hard prompts in English14481196Gemma 4 26B A4B
LMArena Vision: diagrams1264Not measuredOnly Gemma 4 26B A4B measured
LMArena Vision: homework1293Not measuredOnly Gemma 4 26B A4B measured
Neither model has a result on the other 14 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index30
Math benchmarks for Gemma 4 26B A4B and Llama 3.1 8B Instruct
BenchmarkGemma 4 26B A4BLlama 3.1 8B InstructLeader
AA Math IndexNot measured4.3Only Llama 3.1 8B Instruct measured
AIME 2025 (Artificial Analysis run)Not measured4.3%Only Llama 3.1 8B Instruct measured
OTIS Mock AIME82.2%1.7%Gemma 4 26B A4B
MATH level 5Not measured22.9%Only Llama 3.1 8B Instruct measured
GSM8KNot measured82.4%Only Llama 3.1 8B Instruct measured
LMArena Text: math14701179Gemma 4 26B A4B
LMArena Text: mathematical work14751180Gemma 4 26B A4B
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index40
Knowledge benchmarks for Gemma 4 26B A4B and Llama 3.1 8B Instruct
BenchmarkGemma 4 26B A4BLlama 3.1 8B InstructLeader
MMLU Pro (Artificial Analysis run)Not measured47.6%Only Llama 3.1 8B Instruct measured
MMLUNot measured56.1%Only Llama 3.1 8B Instruct measured
LMArena Text: science14461193Gemma 4 26B A4B
LMArena Text: medicine and healthcare14281182Gemma 4 26B A4B
LMArena Text: legal and government14571206Gemma 4 26B A4B
LMArena Text: business and finance14291166Gemma 4 26B A4B
FACTS Benchmark Suite42.7%Not measuredOnly Gemma 4 26B A4B measured
Neither model has a result on the other 11 boards here
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Web design benchmarks for Gemma 4 26B A4B and Llama 3.1 8B Instruct
BenchmarkGemma 4 26B A4BLlama 3.1 8B InstructLeader
Neither model has a result on 9 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index170
General benchmarks for Gemma 4 26B A4B and Llama 3.1 8B Instruct
BenchmarkGemma 4 26B A4BLlama 3.1 8B InstructLeader
IFBench72.4%28.6%Gemma 4 26B A4B
Long context reasoning (AA-LCR)65.7%18.0%Gemma 4 26B A4B
DTBench74.9%50.9%Gemma 4 26B A4B
LMCA29.7%5.4%Gemma 4 26B A4B
PIQANot measured81.2%Only Llama 3.1 8B Instruct measured
LMArena Text14341187Gemma 4 26B A4B
LMArena Text: instruction following14201159Gemma 4 26B A4B
LMArena Text: creative writing14001154Gemma 4 26B A4B
LMArena Vision1260Not measuredOnly Gemma 4 26B A4B measured
LMArena Text: English14441218Gemma 4 26B A4B
LMArena Text: non-English14211148Gemma 4 26B A4B
LMArena Text: Chinese14951151Gemma 4 26B A4B
LMArena Text: GermanNot measured1144Only Llama 3.1 8B Instruct measured
LMArena Text: JapaneseNot measured1061Only Llama 3.1 8B Instruct measured
LMArena Text: KoreanNot measured1053Only Llama 3.1 8B Instruct measured
LMArena Text: French14601178Gemma 4 26B A4B
LMArena Text: Spanish14151169Gemma 4 26B A4B
LMArena Text: Russian14341158Gemma 4 26B A4B
LMArena Text: multi-turn14411172Gemma 4 26B A4B
LMArena Text: longer queries14271181Gemma 4 26B A4B
LMArena Text: writing and language14051162Gemma 4 26B A4B
LMArena Text: entertainment and media14031145Gemma 4 26B A4B
LMArena Vision: English1256Not measuredOnly Gemma 4 26B A4B measured
LMArena Vision: Chinese1312Not measuredOnly Gemma 4 26B A4B measured
LMArena Vision: reading text1268Not measuredOnly Gemma 4 26B A4B measured
LMArena Vision: humor1272Not measuredOnly Gemma 4 26B A4B measured
LMArena Vision: captioning1297Not measuredOnly Gemma 4 26B A4B measured
LMArena Vision: recognizing things1191Not measuredOnly Gemma 4 26B A4B measured
LMArena Vision: creative writing1256Not measuredOnly Gemma 4 26B A4B measured
Neither model has a result on the other 17 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Gemma 4 26B A4B and Llama 3.1 8B Instruct
BenchmarkGemma 4 26B A4BLlama 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

Gemma 4 26B A4B$0.0004Fits 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

Gemma 4 26B A4B$0.0093Fits 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

Gemma 4 26B A4B$0.036Fits 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 Gemma 4 26B A4B and Llama 3.1 8B Instruct
SpecificationGoogle Gemma 4 26B A4BMeta Llama 3.1 8B Instruct
MakerGoogleMeta Llama
WeightsOpen weightsOpen weights
ReleasedApril 3, 2026July 23, 2024
Context window262K131K
Input $/Mtok$0.15$0.05
Output $/Mtok$0.60$0.08
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it10
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemma 4 26B A4B 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 Gemma 4 26B A4B for a larger context window (262K against 131K tokens).

Which is cheaper, Gemma 4 26B A4B or Llama 3.1 8B Instruct?

Gemma 4 26B A4B costs $0.15 per million input tokens and $0.60 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, Gemma 4 26B A4B or Llama 3.1 8B Instruct?

Gemma 4 26B A4B, with 262K tokens against 131K.

How many benchmarks is the Gemma 4 26B A4B vs Llama 3.1 8B Instruct comparison based on?

38 benchmarks have a result for both models as of October 22, 2026. Gemma 4 26B A4B's coding index rests on 1 independent benchmark 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