Skip to main content

Model comparison

GLM-5.2 vs Grok 4.20

Updated July 31, 2026. Public scores include evidence status and uncertainty. They are not guarantees for a specific workload.

21 confirmed releases in the last 30 daystrack changes
GLM-5.2

Z.AI

62.9/100

Estimated · Public rank #41

90% interval 47.7–78.2

Grok 4.20

xAI

53.9/100

Estimated · Public rank #94

90% interval 37.2–70.7

GLM-5.2 has the higher public score estimate, 62.94 versus 53.91, but the 90% score intervals overlap. Treat that as a lead, not a settled winner.

4 results are shared. Category rows based on different benchmark sets are marked directional and do not name a winner.

Which one for your work

Recommendations appear only when a shared evidence basis or an explicit operating constraint supports the call. Secondary and unsupported use cases stay disclosed below the initial list.

  • Agentic work

    Tool use, computer use, and multi-step task completion

    GLM-5.2

    GLM-5.2 leads on the same 1 weighted benchmark row.

    Confidence: limited

  • Long documents

    Prompts that approach the documented context limit

    Grok 4.20

    Grok 4.20 has the larger documented context window.

    Confidence: documented

  • Chat turn cost

    1K fresh input + 500 output tokens

    GLM-5.2

    GLM-5.2 has the lower estimated token cost for this stated workload. Costs use the listed standard API rates.

    Confidence: listed-rates

Show secondary and unsupported calls
  • Cache-heavy agent loop cost

    200K cached + 20K fresh input + 10K output tokens

    GLM-5.2

    GLM-5.2 has the lower estimated token cost for this stated workload. GLM-5.2 has no published cached-input rate, so cached tokens use its listed input rate. Grok 4.20 has no published cached-input rate, so cached tokens use its listed input rate.

    Confidence: rate-fallback

  • Repository review cost

    50K fresh input + 3K output tokens

    GLM-5.2

    GLM-5.2 has the lower estimated token cost for this stated workload. Costs use the listed standard API rates.

    Confidence: listed-rates

  • Coding work

    Code generation, repair, and software-engineering tasks

    Not enough matched evidence

    The category averages use different weighted benchmark sets, so they are directional rather than like-for-like.

    Confidence: limited

What is actually comparable

Shared results can support a head-to-head reading. Results present for only one model describe coverage, not superiority.

Shared results
4
GLM-5.2 only
14
Grok 4.20 only
14
Like-for-like categories
1 / 8

1 category uses different evidence sets. Those rows remain visible for coverage context but do not name a winner.

Category results, on a stated basis

Each row states whether both averages use the same weighted benchmark set. Directional and not-comparable rows remain visible, but they never receive a winner in this template.

Agentic

Like-for-like
GLM-5.2
81.0
Grok 4.20
47.1
Weighted basis
1 vs 1 rows
Reading
GLM-5.2 leads

Coding

Directional only
GLM-5.2
62.1
Grok 4.20
67.1
Weighted basis
1 vs 2 rows
Reading
Directional only

Reasoning

Not comparable
GLM-5.2
Not measured
Grok 4.20
53.3
Weighted basis
0 vs 1 rows
Reading
Not comparable

Knowledge

Not comparable
GLM-5.2
59.6
Grok 4.20
Not measured
Weighted basis
2 vs 0 rows
Reading
Not comparable

Math

Not comparable
GLM-5.2
95.9
Grok 4.20
Not measured
Weighted basis
2 vs 0 rows
Reading
Not comparable

Multilingual

Not comparable
GLM-5.2
Not measured
Grok 4.20
Not measured
Weighted basis
0 vs 0 rows
Reading
Not comparable

Multimodal

Not comparable
GLM-5.2
Not measured
Grok 4.20
70.1
Weighted basis
0 vs 2 rows
Reading
Not comparable

Instruction following

Not comparable
GLM-5.2
Not measured
Grok 4.20
Not measured
Weighted basis
0 vs 0 rows
Reading
Not comparable

Shape of the matched evidence

Only shared public evidence is shown. Sparse evidence stays a ruled list rather than being closed into a radar shape.

Too few matched category axes support a radar. The ruled list below shows only shared benchmark results; positions use each benchmark’s normalized display scale when available.

What each workload costs

Three fixed token mixes turn per-token rates into comparable decisions. Each scenario states context fit and whether cached input had to fall back to the published list-input rate.

Chat turn

1K fresh input + 500 output tokens

GLM-5.2
$0.0036
Fits in one request
Grok 4.20
$0.005
Fits in one request

GLM-5.2 has the lower modeled cost

Costs use the listed standard API rates.

Repository review

50K fresh input + 3K output tokens

GLM-5.2
$0.0832
Fits in one request
Grok 4.20
$0.118
Fits in one request

GLM-5.2 has the lower modeled cost

Costs use the listed standard API rates.

Cache-heavy agent loop

200K cached + 20K fresh input + 10K output tokens

GLM-5.2
$0.352
Fits in one request
Cached input priced at the published list-input rate
Grok 4.20
$0.5
Fits in one request
Cached input priced at the published list-input rate

GLM-5.2 has the lower modeled cost

GLM-5.2 has no published cached-input rate, so cached tokens use its listed input rate. Grok 4.20 has no published cached-input rate, so cached tokens use its listed input rate.

Specification differences

Sourced differences are shown directly. Missing facts stay explicit instead of being inferred from a model name or family.

Context window

Maximum documented context; output-token limits may be lower.

GLM-5.2

1M

Grok 4.20

2M

API model ID

GLM-5.2

Not sourced

Grok 4.20

Not sourced

Cached-input rate

A missing cached-input rate falls back to the listed input rate only in the stated workload estimate.

GLM-5.2

Not published

Grok 4.20

Not published

Documented inputs

GLM-5.2

Not sourced

Grok 4.20

Not sourced

Documented outputs

GLM-5.2

Not sourced

Grok 4.20

Not sourced

Provider availability

GLM-5.2

Not sourced

Grok 4.20

Not sourced

Reasoning profile

GLM-5.2

Reasoning

Grok 4.20

Reasoning

Weight access

GLM-5.2

Open Weight

Grok 4.20

Proprietary

License

GLM-5.2

Open Weight

Grok 4.20

Proprietary

Release date

GLM-5.2

2026-06-16

Grok 4.20

2026-03-10

If you already use one of these models
Deployment change
The models list different providers, so authentication, endpoint behavior, limits, and feature support may change.
Quality signal
GLM-5.2 has the higher public score estimate, 62.94 versus 53.91, but the 90% score intervals overlap.
Workload cost
Repository review: $0.0832 vs $0.118. Cache-heavy agent loop: $0.352 vs $0.5.
Context tradeoff
Grok 4.20 has the larger documented window (2M).

Run the same representative tasks against both endpoints before changing production traffic.

Benchmark evidence

The full public result ledger is available for audit without forcing a wide desktop table onto a phone.

Browse raw public benchmark evidence32 rows

Agentic

  • Terminal-Bench 2.0

    GLM-5.281%
    Source
    Grok 4.2047.1%
    Source

    GLM-5.2 leads this result

  • MCP Atlas

    GLM-5.276.8%
    Source
    Grok 4.20

    Not directly comparable

  • Toolathlon

    GLM-5.248.2%
    Source
    Grok 4.20

    Not directly comparable

  • ResearchClawBench

    GLM-5.220.7%
    Source
    Grok 4.20

    Not directly comparable

  • DeepSearchQA

    GLM-5.2
    Grok 4.2062.8%
    Source

    Not directly comparable

  • Gert Labs

    GLM-5.2
    Grok 4.2038.36%
    Source

    Not directly comparable

Coding

  • SWE-bench Pro

    GLM-5.262.1%
    Source
    Grok 4.2051.8%
    Source

    GLM-5.2 leads this result

  • NL2Repo

    GLM-5.248.9%
    Source
    Grok 4.20

    Not directly comparable

  • Terminal-Bench 2.0

    GLM-5.281.0%
    Source
    Grok 4.20

    Not directly comparable

  • ProgramBench

    GLM-5.263.7%
    Source
    Grok 4.20

    Not directly comparable

  • cursorBench32

    GLM-5.255.0%
    Source
    Grok 4.20

    Not directly comparable

  • LiveCodeBench Pro

    GLM-5.2
    Grok 4.2074.2%
    Source

    Not directly comparable

  • SWE-bench Verified

    GLM-5.2
    Grok 4.2076.7%
    Source

    Not directly comparable

  • Vibe Code Bench

    GLM-5.2
    Grok 4.204.06%
    Source

    Not directly comparable

Reasoning

  • CritPt

    GLM-5.220.9%
    Source
    Grok 4.20

    Not directly comparable

  • ARC-AGI-2

    GLM-5.2
    Grok 4.2053.3%
    Source

    Not directly comparable

  • ARC-AGI-3

    GLM-5.2
    Grok 4.200.1%
    Source

    Not directly comparable

Knowledge

  • GPQA

    GLM-5.291.2%
    Source
    Grok 4.20

    Not directly comparable

  • GPQA-D

    GLM-5.291.2%
    Source
    Grok 4.2088.5%
    Source

    GLM-5.2 leads this result

  • HLE

    GLM-5.254.7%
    Source
    Grok 4.20

    Not directly comparable

  • HLE w/o tools

    GLM-5.240.5%
    Source
    Grok 4.2031.6%
    Source

    GLM-5.2 leads this result

  • HealthBench Hard

    GLM-5.2
    Grok 4.2020.3%
    Source

    Not directly comparable

  • MedXpertQA (Text)

    GLM-5.2
    Grok 4.2050.2%
    Source

    Not directly comparable

Math

  • AIME26

    GLM-5.299.2%
    Source
    Grok 4.20

    Not directly comparable

  • HMMT Nov 2025

    GLM-5.294.4%
    Source
    Grok 4.20

    Not directly comparable

  • HMMT Feb 2026

    GLM-5.292.5%
    Source
    Grok 4.20

    Not directly comparable

  • MMAnswerBench

    GLM-5.291.0%
    Source
    Grok 4.20

    Not directly comparable

Multimodal

  • MMMU-Pro

    GLM-5.2
    Grok 4.2075.2%
    Source

    Not directly comparable

  • CharXiv

    GLM-5.2
    Grok 4.2060.9%
    Source

    Not directly comparable

  • ERQA

    GLM-5.2
    Grok 4.2054.1%
    Source

    Not directly comparable

  • SimpleVQA

    GLM-5.2
    Grok 4.2057.4%
    Source

    Not directly comparable

  • MedXpertQA (MM)

    GLM-5.2
    Grok 4.2065.8%
    Source

    Not directly comparable

Frequently asked questions

Which is better, GLM-5.2 or Grok 4.20?

GLM-5.2 has the higher public score estimate, 62.94 versus 53.91, but the 90% score intervals overlap. The higher estimate is not a decisive winner because the uncertainty ranges overlap.

Which is better for coding, GLM-5.2 or Grok 4.20?

The current coding averages use different weighted benchmark sets, so BenchLM does not name a winner from them. Read the shared benchmark rows directly and test the models on the same task set.

Which is better for agentic tasks, GLM-5.2 or Grok 4.20?

GLM-5.2 leads the like-for-like agentic tasks comparison across 1 shared weighted benchmark row.

Which costs less, GLM-5.2 or Grok 4.20?

For the stated presets, chat costs $0.0036 on GLM-5.2 and $0.005 on Grok 4.20; repository review costs $0.0832 and $0.118; the cache-heavy agent loop costs $0.352 and $0.5. GLM-5.2 has no published cached-input rate, so cached tokens use its listed input rate. Grok 4.20 has no published cached-input rate, so cached tokens use its listed input rate.

Which has the larger context window, GLM-5.2 or Grok 4.20?

Grok 4.20 has the larger documented context window: 2M, compared with 1M.

Related comparisons

Last updated July 31, 2026

Watch GLM-5.2 vs Grok 4.20

One weekly email when material rank, price, or benchmark evidence changes make this matchup worth revisiting.

Read a sample issue

Join 2,000+ readers.