Enter opens the highlighted result. Esc closes.

Grok 4.3 vs Llama 3.1 8B Instruct

Grok 4.3 leads Llama 3.1 8B Instruct on the Artificial Analysis Intelligence Index, 24.9 to 6.9, and Llama 3.1 8B Instruct costs 31.3x less per output token ($0.08 vs $2.50 per million). Updated October 21, 2026; 40 benchmarks have a result for both.

Grok 4.3xAI
Coding
37.4
Overall
53.1
Output $/M
$2.50
40
Llama 3.1 8B InstructMeta Llama
Coding
No data
Overall
17.9
Output $/M
$0.08
0
vs boards won of 40 shared

Grok 4.3 or Llama 3.1 8B Instruct: which to pick

Only Grok 4.3 has a coding score, 37.4 on the Vibe Coding Index; Llama 3.1 8B Instruct has none, so the two cannot be ranked on coding.

Pick Llama 3.1 8B Instruct for output tokens 31.3x cheaper ($0.08 vs $2.50 per million).

Shared results
40
Grok 4.3 only
64
Llama 3.1 8B Instruct only
11
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
Grok 4.3 37.4 from 3 benchmarks, Llama 3.1 8B Instruct not benchmarked.
Widest category
Agentic work, 81.3 points apart on average over 1 shared benchmark.
Widest single gap
OTIS Mock AIME: Grok 4.3 93.3% against Llama 3.1 8B Instruct 1.7%, 91.7 points apart on a 0 to 100 scale.
Output price
Grok 4.3 $2.50 against Llama 3.1 8B Instruct $0.08 per million output tokens, 31.3x apart.
Context window
Grok 4.3 takes 1M 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
CategoryGrok 4.3BarsLlama 3.1 8B InstructTies
Coding50
Intelligence10
Agentic work10
Reasoning60
Math30
Knowledge40
General200
All shared boards400
CodingLike-for-likeSix of these boards feed the Vibe Coding Index50
Coding benchmarks for Grok 4.3 and Llama 3.1 8B Instruct
BenchmarkGrok 4.3Llama 3.1 8B InstructLeader
LMArena WebDev1358Not measuredOnly Grok 4.3 measured
AA Coding Index42.25.4Grok 4.3
LiveCodeBench (Vals AI)84.5%Not measuredOnly Grok 4.3 measured
SWE-bench Verified (Vals AI)71.4%Not measuredOnly Grok 4.3 measured
Vibe Code Bench (Vals AI)19.4%Not measuredOnly Grok 4.3 measured
Code migration (Vals AI)6.8%Not measuredOnly Grok 4.3 measured
ProgramBench (Vals AI)0.0%Not measuredOnly Grok 4.3 measured
Terminal-Bench 2.1 (Vals AI)42.0%Not measuredOnly Grok 4.3 measured
SkillsBench (Vals AI)40.6%Not measuredOnly Grok 4.3 measured
LiveCodeBench (Artificial Analysis run)Not measured11.6%Only Llama 3.1 8B Instruct measured
SciCode48.3%Not measuredOnly Grok 4.3 measured
Terminal-Bench Hard (Artificial Analysis run)37.9%0.8%Grok 4.3
WeirdML49.9%1.7%Grok 4.3
ALE-Bench944.2Not measuredOnly Grok 4.3 measured
LMArena Text: coding14151195Grok 4.3
LMArena Text: software and IT14161195Grok 4.3
LMArena WebDev: React1353Not measuredOnly Grok 4.3 measured
LMArena WebDev: HTML1367Not measuredOnly Grok 4.3 measured
LMArena WebDev: from an image1375Not measuredOnly Grok 4.3 measured
Neither model has a result on the other 20 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for Grok 4.3 and Llama 3.1 8B Instruct
BenchmarkGrok 4.3Llama 3.1 8B InstructLeader
AA Intelligence Index24.96.9Grok 4.3
Epoch Capabilities IndexNot measured116.5Only Llama 3.1 8B Instruct measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for Grok 4.3 and Llama 3.1 8B Instruct
BenchmarkGrok 4.3Llama 3.1 8B InstructLeader
AA Agentic Index15.5Not measuredOnly Grok 4.3 measured
Design Arena: agents building web apps1126Not measuredOnly Grok 4.3 measured
Design Arena: agents building full-stack apps1006Not measuredOnly Grok 4.3 measured
Design Arena: agents building mobile apps1059Not measuredOnly Grok 4.3 measured
Design Arena: agents building Android apps961Not measuredOnly Grok 4.3 measured
Design Arena: agents building Godot games914Not measuredOnly Grok 4.3 measured
Design Arena: agents building games1007Not measuredOnly Grok 4.3 measured
Design Arena: HTML slides1008Not measuredOnly Grok 4.3 measured
Design Arena: PowerPoint slides1013Not measuredOnly Grok 4.3 measured
Finance Agent (Vals AI)37.7%Not measuredOnly Grok 4.3 measured
Tax Agent Bench (Vals AI)6.2%Not measuredOnly Grok 4.3 measured
Legal Research Bench (Vals AI)15.4%Not measuredOnly Grok 4.3 measured
Excel Modeling Benchmark (Vals AI)18.4%Not measuredOnly Grok 4.3 measured
τ²-Bench Telecom97.7%16.4%Grok 4.3
BALROGNot measured15.1%Only Llama 3.1 8B Instruct measured
Vending-Bench 2$35Not measuredOnly Grok 4.3 measured
LMArena Search1166Not measuredOnly Grok 4.3 measured
Berkeley Function Calling Leaderboard (BFCL)Not measured25.8%Only Llama 3.1 8B Instruct measured
Neither model has a result on the other 23 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index60
Reasoning benchmarks for Grok 4.3 and Llama 3.1 8B Instruct
BenchmarkGrok 4.3Llama 3.1 8B InstructLeader
GPQA Diamond91.4%Not measuredOnly Grok 4.3 measured
MMMU Pro (Vals AI)83.1%Not measuredOnly Grok 4.3 measured
GPQA Diamond (Artificial Analysis run)90.1%25.9%Grok 4.3
Humanity's Last Exam (Artificial Analysis run)37.2%5.3%Grok 4.3
GPQA Diamond (Epoch AI run)88.8%27.0%Grok 4.3
Chess puzzles18.0%Not measuredOnly Grok 4.3 measured
LMArena Text: hard prompts13961175Grok 4.3
LMArena Text: expert13841144Grok 4.3
LMArena Text: hard prompts in English14021196Grok 4.3
LMArena Vision: diagrams1241Not measuredOnly Grok 4.3 measured
LMArena Vision: homework1241Not measuredOnly Grok 4.3 measured
Neither model has a result on the other 11 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index30
Math benchmarks for Grok 4.3 and Llama 3.1 8B Instruct
BenchmarkGrok 4.3Llama 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 AIME93.3%1.7%Grok 4.3
FrontierMath, tiers 1 to 342.8%Not measuredOnly Grok 4.3 measured
FrontierMath, tier 414.6%Not measuredOnly Grok 4.3 measured
ProofBench11.0%Not measuredOnly Grok 4.3 measured
MATH level 5Not measured22.9%Only Llama 3.1 8B Instruct measured
GSM8KNot measured82.4%Only Llama 3.1 8B Instruct measured
LMArena Text: math13871179Grok 4.3
LMArena Text: mathematical work13961180Grok 4.3
Neither model has a result on the other 3 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index40
Knowledge benchmarks for Grok 4.3 and Llama 3.1 8B Instruct
BenchmarkGrok 4.3Llama 3.1 8B InstructLeader
MMLU Pro85.8%Not measuredOnly Grok 4.3 measured
LegalBench (Vals AI)84.5%Not measuredOnly Grok 4.3 measured
CaseLaw (Vals AI)79.3%Not measuredOnly Grok 4.3 measured
CorpFin (Vals AI)68.5%Not measuredOnly Grok 4.3 measured
TaxEval (Vals AI)70.8%Not measuredOnly Grok 4.3 measured
MortgageTax (Vals AI)48.3%Not measuredOnly Grok 4.3 measured
MedCode (Vals AI)38.1%Not measuredOnly Grok 4.3 measured
MMLU Pro (Artificial Analysis run)Not measured47.6%Only Llama 3.1 8B Instruct measured
SimpleQA Verified33.2%Not measuredOnly Grok 4.3 measured
MMLUNot measured56.1%Only Llama 3.1 8B Instruct measured
LMArena Text: science13991193Grok 4.3
LMArena Text: medicine and healthcare13841182Grok 4.3
LMArena Text: legal and government13861206Grok 4.3
LMArena Text: business and finance13811166Grok 4.3
Neither model has a result on the other 4 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for Grok 4.3 and Llama 3.1 8B Instruct
BenchmarkGrok 4.3Llama 3.1 8B InstructLeader
Design Arena: websites1196Not measuredOnly Grok 4.3 measured
Design Arena: UI components1192Not measuredOnly Grok 4.3 measured
Design Arena: game dev1174Not measuredOnly Grok 4.3 measured
Design Arena: data viz1179Not measuredOnly Grok 4.3 measured
Design Arena: 3D1125Not measuredOnly Grok 4.3 measured
Design Arena: all code categories1187Not measuredOnly Grok 4.3 measured
Design Arena: SVG1081Not measuredOnly Grok 4.3 measured
Design Arena: ASCII art1125Not measuredOnly Grok 4.3 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index200
General benchmarks for Grok 4.3 and Llama 3.1 8B Instruct
BenchmarkGrok 4.3Llama 3.1 8B InstructLeader
Public Benefits Bench (Vals AI)51.7%Not measuredOnly Grok 4.3 measured
SAGE (Vals AI)19.7%Not measuredOnly Grok 4.3 measured
MedScribe (Vals AI)74.4%Not measuredOnly Grok 4.3 measured
Vals Multimodal Index43.3%Not measuredOnly Grok 4.3 measured
IFBench83.3%28.6%Grok 4.3
Long context reasoning (AA-LCR)75.0%18.0%Grok 4.3
DTBench90.7%50.9%Grok 4.3
LMCA38.3%5.4%Grok 4.3
PIQANot measured81.2%Only Llama 3.1 8B Instruct measured
LMArena Text13971187Grok 4.3
LMArena Text: instruction following13661159Grok 4.3
LMArena Text: creative writing13801154Grok 4.3
LMArena Vision1229Not measuredOnly Grok 4.3 measured
LMArena Text: English14041218Grok 4.3
LMArena Text: non-English13851148Grok 4.3
LMArena Text: Chinese14221151Grok 4.3
LMArena Text: German13951144Grok 4.3
LMArena Text: Japanese13791061Grok 4.3
LMArena Text: Korean13541053Grok 4.3
LMArena Text: French14111178Grok 4.3
LMArena Text: Spanish13991169Grok 4.3
LMArena Text: Russian13991158Grok 4.3
LMArena Text: Polish1398Not measuredOnly Grok 4.3 measured
LMArena Text: multi-turn14061172Grok 4.3
LMArena Text: longer queries13931181Grok 4.3
LMArena Text: writing and language13851162Grok 4.3
LMArena Text: entertainment and media13701145Grok 4.3
LMArena Vision: English1235Not measuredOnly Grok 4.3 measured
LMArena Vision: Chinese1257Not measuredOnly Grok 4.3 measured
LMArena Vision: reading text1235Not measuredOnly Grok 4.3 measured
LMArena Vision: humor1222Not measuredOnly Grok 4.3 measured
LMArena Vision: recognizing things1217Not measuredOnly Grok 4.3 measured
LMArena Vision: creative writing1237Not measuredOnly Grok 4.3 measured
Neither model has a result on the other 13 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Grok 4.3 and Llama 3.1 8B Instruct
BenchmarkGrok 4.3Llama 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

Grok 4.3$0.0025Fits 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

Grok 4.3$0.070Fits 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

Grok 4.3$0.275Fits 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 Grok 4.3 and Llama 3.1 8B Instruct
SpecificationSpaceXAI Grok 4.3Meta Llama 3.1 8B Instruct
MakerxAIMeta Llama
WeightsNo public weights listedOpen weights
ReleasedApril 30, 2026July 23, 2024
Context window1M131K
Input $/Mtok$1.25$0.05
Output $/Mtok$2.50$0.08
Coding index37.4Not benchmarked
Independent measurements behind it30
Cost per solved task$0.31Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Grok 4.3 better than Llama 3.1 8B Instruct for coding?

Only Grok 4.3 has a coding score, 37.4 on the Vibe Coding Index; Llama 3.1 8B Instruct has none, so the two cannot be ranked on coding. Pick Llama 3.1 8B Instruct for output tokens 31.3x cheaper ($0.08 vs $2.50 per million).

Which is cheaper, Grok 4.3 or Llama 3.1 8B Instruct?

Grok 4.3 costs $1.25 per million input tokens and $2.50 per million output tokens; Llama 3.1 8B Instruct costs $0.05 and $0.08. Cost per solved task is known for Grok 4.3 only.

Which has the bigger context window, Grok 4.3 or Llama 3.1 8B Instruct?

Grok 4.3, with 1M tokens against 131K.

How many benchmarks is the Grok 4.3 vs Llama 3.1 8B Instruct comparison based on?

40 benchmarks have a result for both models as of October 21, 2026. Grok 4.3's coding index rests on 3 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