Model comparison

GLM-5.1 vs GPT-5.2 Codex

GLM-5.1 is the stronger model overall, scoring 47.6 to 42.2 on the Noometry Index.

Last verified . 2 shared benchmarks.

GLM-5.1 Z.ai (Zhipu)

47.6

Rank #51 Confirmed

GPT-5.2 Codex OpenAI

42.2

Rank #107 Reported

Summary

  • They share 2 benchmarks with published results for both. GLM-5.1 scores higher in 1 category and GPT-5.2 Codex in 1 category; 2 gaps are clear of the uncertainty.
  • The widest gap is in agentic & tool use, where GPT-5.2 Codex leads 40.7 to 24.8.
  • GLM-5.1 is cheaper at $1.40 / $4.40 per million input/output tokens, against $1.75 / $14 for GPT-5.2 Codex.
  • GPT-5.2 Codex accepts more context: 400K tokens versus 200K.
  • GLM-5.1 has downloadable open weights; the other is API-only.

Side by side

GLM-5.1 and GPT-5.2 Codex specifications
GLM-5.1GPT-5.2 Codex
ProviderZ.ai (Zhipu)OpenAI
Noometry Index47.642.2
Released2026-04-072025-12-18
WeightsOpenProprietary
Context window200K400K
Max output131K128K
Input $ / M tokens$1.40$1.75
Output $ / M tokens$4.40$14
Results tracked415

Sponsored placements are available on pages like this one. Advertise on Noometry

Category by category

Coding GLM-5.1 leads

GLM-5.1: 48.5 (#52), GPT-5.2 Codex: 45.4 (#66)

Coding benchmarks
BenchmarkGLM-5.1GPT-5.2 Codex
LMArena WebDev15091339
ALE-Bench887.11,300
SWE-bench Verified74.2%—
SWE-bench Verified (bash only)—72.8%
SWE-bench Multilingual—66.3%
SciCode43.8%—
WeirdML57.1%—
LMArena Coding1486—

Agentic & Tool Use GPT-5.2 Codex leads

GLM-5.1: 24.8 (#106), GPT-5.2 Codex: 40.7 (#20)

Agentic & Tool Use benchmarks
BenchmarkGLM-5.1GPT-5.2 Codex
Terminal-Bench—66.5%
APEX-Agents40.9%—
ExploitBench18.1%—
GBAEval0%—
Vending-Bench 25,634—

Reasoning Not comparable

GLM-5.1: 38.2 (#57), GPT-5.2 Codex: —

Reasoning benchmarks
BenchmarkGLM-5.1GPT-5.2 Codex
SimpleBench55.1%—
NYT Connections (extended)77.7%—
CritPt4.6%—
Chess Puzzles19%—
Thematic Generalization69.8%—
LMArena Hard Prompts1472—
Epoch Capabilities Index149.86—

Math Not comparable

GLM-5.1: 49.0 (#48), GPT-5.2 Codex: —

Knowledge Not comparable

GLM-5.1: 55.0 (#45), GPT-5.2 Codex: —

Knowledge benchmarks
BenchmarkGLM-5.1GPT-5.2 Codex
GPQA Diamond89.9%—
SimpleQA Verified34%—
LMArena Expert1477—

Multilingual Not comparable

GLM-5.1: 55.2 (#34), GPT-5.2 Codex: —

Multilingual benchmarks
BenchmarkGLM-5.1GPT-5.2 Codex
LMArena Non-English1448—
LMArena Chinese1516—
LMArena French1478—
LMArena German1466—
LMArena Japanese1436—
LMArena Korean1423—
LMArena Russian1453—
LMArena Spanish1467—

Instruction Following Not comparable

GLM-5.1: 76.5 (#41), GPT-5.2 Codex: —

Instruction Following benchmarks
BenchmarkGLM-5.1GPT-5.2 Codex
LMArena Instruction Following1451—

Long Context Not comparable

GLM-5.1: 44.9 (#51), GPT-5.2 Codex: —

Long Context benchmarks
BenchmarkGLM-5.1GPT-5.2 Codex
LMArena Longer Query1467—

Writing & Preference Not comparable

GLM-5.1: 67.2 (#29), GPT-5.2 Codex: —

Writing & Preference benchmarks
BenchmarkGLM-5.1GPT-5.2 Codex
LMArena Text1462—
LMArena Creative Writing1454—
EQ-Bench Creative Writing1592—
LMArena Multi-Turn1473—

Frequently asked questions

Is GLM-5.1 better than GPT-5.2 Codex?

GLM-5.1 is the stronger model overall, scoring 47.6 to 42.2 on the Noometry Index.

Which is cheaper, GLM-5.1 or GPT-5.2 Codex?

GLM-5.1 is cheaper. It lists at $1.40 per million input tokens and $4.40 per million output tokens; GPT-5.2 Codex lists at $1.75 and $14.

Is GLM-5.1 or GPT-5.2 Codex better for coding?

GLM-5.1 scores higher on coding benchmarks: 48.5 versus 45.4 in the Noometry coding category.

Which has the bigger context window?

GPT-5.2 Codex does, with 400K tokens against 200K.

How many benchmarks do GLM-5.1 and GPT-5.2 Codex share?

2 benchmarks have published results for both models. GLM-5.1 has 41 scored results on Noometry and GPT-5.2 Codex has 5.

Related comparisons

Go deeper