Enter opens the highlighted result. Esc closes.

GLM 5.3 vs Llama 3.1 8B Instruct

GLM 5.3 leads Llama 3.1 8B Instruct on the Artificial Analysis Intelligence Index, 44.8 to 6.9, and Llama 3.1 8B Instruct costs 55.0x less per output token ($0.08 vs $4.40 per million). Updated October 21, 2026; 38 benchmarks have a result for both.

GLM 5.3Z.ai
Coding
70.6
Overall
44.8
Output $/M
$4.40
38
Llama 3.1 8B InstructMeta Llama
Coding
No data
Overall
6.9
Output $/M
$0.08
0
vs boards won of 38 shared

GLM 5.3 or Llama 3.1 8B Instruct: which to pick

Only GLM 5.3 has a coding score, 70.6 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 55.0x cheaper ($0.08 vs $4.40 per million).

Shared results
38
GLM 5.3 only
62
Llama 3.1 8B Instruct only
12
Like-for-like categories
6 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
GLM 5.3 70.6 from 6 benchmarks, Llama 3.1 8B Instruct not benchmarked.
Widest category
Math, 65.0 points apart on average over 3 shared benchmarks.
Widest single gap
OTIS Mock AIME: GLM 5.3 91.1% against Llama 3.1 8B Instruct 1.7%, 89.4 points apart on a 0 to 100 scale.
Output price
GLM 5.3 $4.40 against Llama 3.1 8B Instruct $0.08 per million output tokens, 55.0x apart.
Context window
GLM 5.3 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
CategoryGLM 5.3BarsLlama 3.1 8B InstructTies
Coding40
Intelligence20
Reasoning60
Math30
Knowledge40
General190
All shared boards380
CodingLike-for-likeSix of these boards feed the Vibe Coding Index40
Coding benchmarks for GLM 5.3 and Llama 3.1 8B Instruct
BenchmarkGLM 5.3Llama 3.1 8B InstructLeader
LiveBench coding82.8%Not measuredOnly GLM 5.3 measured
LMArena WebDev1621Not measuredOnly GLM 5.3 measured
AA Coding Index74.85.4GLM 5.3
LiveCodeBench (Vals AI)80.5%Not measuredOnly GLM 5.3 measured
SWE-bench Verified (Vals AI)95.4%Not measuredOnly GLM 5.3 measured
Terminal-Bench 4 (Vals AI)38.9%Not measuredOnly GLM 5.3 measured
Vibe Code Bench (Vals AI)78.1%Not measuredOnly GLM 5.3 measured
Code migration (Vals AI)44.2%Not measuredOnly GLM 5.3 measured
ProgramBench (Vals AI)1.5%Not measuredOnly GLM 5.3 measured
IOI (Vals AI)68.4%Not measuredOnly GLM 5.3 measured
Terminal-Bench 2.1 (Vals AI)71.5%Not measuredOnly GLM 5.3 measured
Vibe Code Bench 1-100 (Vals AI)20.0%Not measuredOnly GLM 5.3 measured
SkillsBench (Vals AI)47.5%Not measuredOnly GLM 5.3 measured
CyberBench (Vals AI)72.1%Not measuredOnly GLM 5.3 measured
LiveCodeBench (Artificial Analysis run)Not measured11.6%Only Llama 3.1 8B Instruct measured
SciCode59.0%Not measuredOnly GLM 5.3 measured
Terminal-Bench Hard (Artificial Analysis run)Not measured0.8%Only Llama 3.1 8B Instruct measured
FrontierCode40.1%Not measuredOnly GLM 5.3 measured
FrontierSWE30.2%Not measuredOnly GLM 5.3 measured
WeirdML75.4%1.7%GLM 5.3
ALE-Bench1317.4Not measuredOnly GLM 5.3 measured
LMArena Text: coding14971195GLM 5.3
LMArena Text: software and IT14931195GLM 5.3
LMArena WebDev: React1641Not measuredOnly GLM 5.3 measured
LMArena WebDev: HTML1595Not measuredOnly GLM 5.3 measured
Neither model has a result on the other 13 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GLM 5.3 and Llama 3.1 8B Instruct
BenchmarkGLM 5.3Llama 3.1 8B InstructLeader
AA Intelligence Index44.86.9GLM 5.3
Epoch Capabilities Index156.0116.5GLM 5.3
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index18 boards, none shared
Agentic work benchmarks for GLM 5.3 and Llama 3.1 8B Instruct
BenchmarkGLM 5.3Llama 3.1 8B InstructLeader
AA Agentic Index53.1Not measuredOnly GLM 5.3 measured
Design Arena: agents building mobile apps1194Not measuredOnly GLM 5.3 measured
Design Arena: HTML slides1189Not measuredOnly GLM 5.3 measured
Design Arena: PowerPoint slides1254Not measuredOnly GLM 5.3 measured
LiveBench research73.2%Not measuredOnly GLM 5.3 measured
LiveBench browser0.0%Not measuredOnly GLM 5.3 measured
LiveBench long agentic35.9%Not measuredOnly GLM 5.3 measured
SREBench (Vals AI)9.2%Not measuredOnly GLM 5.3 measured
Finance Agent (Vals AI)55.8%Not measuredOnly GLM 5.3 measured
Tax Agent Bench (Vals AI)39.7%Not measuredOnly GLM 5.3 measured
Legal Research Bench (Vals AI)49.0%Not measuredOnly GLM 5.3 measured
Harvey's Legal Agent Benchmark (Vals AI)14.6%Not measuredOnly GLM 5.3 measured
Excel Modeling Benchmark (Vals AI)56.3%Not measuredOnly GLM 5.3 measured
Terminal-Bench-Science (Vals AI)5.7%Not measuredOnly GLM 5.3 measured
τ²-Bench TelecomNot measured16.4%Only Llama 3.1 8B Instruct measured
APEX-Agents56.6%Not measuredOnly GLM 5.3 measured
BALROGNot measured15.1%Only Llama 3.1 8B Instruct measured
Vending-Bench 2$8,164Not measuredOnly GLM 5.3 measured
Neither model has a result on the other 21 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index60
Reasoning benchmarks for GLM 5.3 and Llama 3.1 8B Instruct
BenchmarkGLM 5.3Llama 3.1 8B InstructLeader
GPQA Diamond88.1%Not measuredOnly GLM 5.3 measured
LiveBench reasoning85.8%Not measuredOnly GLM 5.3 measured
MysteryMechanism (Vals AI)23.0%Not measuredOnly GLM 5.3 measured
GPQA Diamond (Artificial Analysis run)91.7%25.9%GLM 5.3
Humanity's Last Exam (Artificial Analysis run)42.3%5.3%GLM 5.3
GPQA Diamond (Epoch AI run)90.9%27.0%GLM 5.3
Chess puzzles37.0%Not measuredOnly GLM 5.3 measured
Mystery game puzzles33.0%Not measuredOnly GLM 5.3 measured
LMArena Text: hard prompts14901175GLM 5.3
LMArena Text: expert15141144GLM 5.3
LMArena Text: hard prompts in English14961196GLM 5.3
Neither model has a result on the other 10 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index30
Math benchmarks for GLM 5.3 and Llama 3.1 8B Instruct
BenchmarkGLM 5.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 AIME91.1%1.7%GLM 5.3
FrontierMath, tiers 1 to 368.8%Not measuredOnly GLM 5.3 measured
FrontierMath, tier 429.3%Not measuredOnly GLM 5.3 measured
ProofBench49.0%Not measuredOnly GLM 5.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: math14951179GLM 5.3
LMArena Text: mathematical work14971180GLM 5.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 GLM 5.3 and Llama 3.1 8B Instruct
BenchmarkGLM 5.3Llama 3.1 8B InstructLeader
MMLU Pro86.8%Not measuredOnly GLM 5.3 measured
LegalBench (Vals AI)84.8%Not measuredOnly GLM 5.3 measured
TaxEval (Vals AI)72.4%Not measuredOnly GLM 5.3 measured
MedCode (Vals AI)42.9%Not measuredOnly GLM 5.3 measured
MMLU Pro (Artificial Analysis run)Not measured47.6%Only Llama 3.1 8B Instruct measured
SimpleQA Verified41.0%Not measuredOnly GLM 5.3 measured
MMLUNot measured56.1%Only Llama 3.1 8B Instruct measured
LMArena Text: science14981193GLM 5.3
LMArena Text: medicine and healthcare14811182GLM 5.3
LMArena Text: legal and government14731206GLM 5.3
LMArena Text: business and finance14591166GLM 5.3
Neither model has a result on the other 6 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
Web design benchmarks for GLM 5.3 and Llama 3.1 8B Instruct
BenchmarkGLM 5.3Llama 3.1 8B InstructLeader
Design Arena: websites1295Not measuredOnly GLM 5.3 measured
Design Arena: UI components1314Not measuredOnly GLM 5.3 measured
Design Arena: game dev1311Not measuredOnly GLM 5.3 measured
Design Arena: data viz1259Not measuredOnly GLM 5.3 measured
Design Arena: 3D1332Not measuredOnly GLM 5.3 measured
Design Arena: all code categories1304Not measuredOnly GLM 5.3 measured
Design Arena: SVG1293Not measuredOnly GLM 5.3 measured
Design Arena: ASCII art1213Not measuredOnly GLM 5.3 measured
LiveBench design77.3%Not measuredOnly GLM 5.3 measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index190
General benchmarks for GLM 5.3 and Llama 3.1 8B Instruct
BenchmarkGLM 5.3Llama 3.1 8B InstructLeader
Vals Index59.7%Not measuredOnly GLM 5.3 measured
LiveBench data analysis70.2%Not measuredOnly GLM 5.3 measured
Public Benefits Bench (Vals AI)68.5%Not measuredOnly GLM 5.3 measured
MedScribe (Vals AI)88.8%Not measuredOnly GLM 5.3 measured
IFBenchNot measured28.6%Only Llama 3.1 8B Instruct measured
Long context reasoning (AA-LCR)79.7%18.0%GLM 5.3
DTBench87.7%50.9%GLM 5.3
LMCA55.5%5.4%GLM 5.3
PIQANot measured81.2%Only Llama 3.1 8B Instruct measured
LMArena Text14741187GLM 5.3
LMArena Text: instruction following14791159GLM 5.3
LMArena Text: creative writing14581154GLM 5.3
LMArena Text: English14821218GLM 5.3
LMArena Text: non-English14591148GLM 5.3
LMArena Text: Chinese15321151GLM 5.3
LMArena Text: German14881144GLM 5.3
LMArena Text: Japanese14601061GLM 5.3
LMArena Text: Korean14601053GLM 5.3
LMArena Text: French15031178GLM 5.3
LMArena Text: Spanish14621169GLM 5.3
LMArena Text: Russian14691158GLM 5.3
LMArena Text: Polish1466Not measuredOnly GLM 5.3 measured
LMArena Text: multi-turn14721172GLM 5.3
LMArena Text: longer queries14831181GLM 5.3
LMArena Text: writing and language14691162GLM 5.3
LMArena Text: entertainment and media14471145GLM 5.3
Neither model has a result on the other 20 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GLM 5.3 and Llama 3.1 8B Instruct
BenchmarkGLM 5.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

GLM 5.3$0.0036Fits 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

GLM 5.3$0.083Fits 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

GLM 5.3$0.324Fits 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 GLM 5.3 and Llama 3.1 8B Instruct
SpecificationZ.ai GLM 5.3Meta Llama 3.1 8B Instruct
MakerZ.aiMeta Llama
WeightsOpen weightsOpen weights
ReleasedAugust 18, 2026July 23, 2024
Context window1.05M131K
Input $/Mtok$1.40$0.05
Output $/Mtok$4.40$0.08
Coding index70.6Not benchmarked
Independent measurements behind it60
Cost per solved task$0.36Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5.3 better than Llama 3.1 8B Instruct for coding?

Only GLM 5.3 has a coding score, 70.6 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 55.0x cheaper ($0.08 vs $4.40 per million).

Which is cheaper, GLM 5.3 or Llama 3.1 8B Instruct?

GLM 5.3 costs $1.40 per million input tokens and $4.40 per million output tokens; Llama 3.1 8B Instruct costs $0.05 and $0.08. Cost per solved task is known for GLM 5.3 only.

Which has the bigger context window, GLM 5.3 or Llama 3.1 8B Instruct?

GLM 5.3, with 1.05M tokens against 131K.

How many benchmarks is the GLM 5.3 vs Llama 3.1 8B Instruct comparison based on?

38 benchmarks have a result for both models as of October 21, 2026. GLM 5.3's coding index rests on 6 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