Skip to main content
BenchLM
Data

GLM-4.7 vs GPT-5.2-Codex

Updated December 2, 2026. Rank says GPT-5.2-Codex is ahead. Price, access, and your workload can each overturn that. Public scores include evidence status and uncertainty.

Share or export
Share on XLinkedInAPI/MCP

Decision reading

GPT-5.2-Codex has the higher public point estimate, 49.2 versus 43.8. Their conditional score ranges overlap. These ranges do not establish rank confidence. 3 results are shared. Category rows resting on Estimated evidence or different benchmark sets are marked directional and do not name a winner.

Model A
Z.AI logo

Z.AI

43.8/100

Supported · Public rank #125

Conditional range 37.4–50.3

Model B
OpenAI logo

OpenAI

49.2/100

Supported · Public rank #95

Conditional range 42.6–55.8

API price per 1M tokens

GLM-4.7: No comparable API price

GPT-5.2-Codex: $1.75 input / $14 output

Context window

GLM-4.7: 200K

GPT-5.2-Codex: 400K

Released

GLM-4.7: December 22, 2025

GPT-5.2-Codex: December 18, 2025

Shared results
3
GLM-4.7 only
14
GPT-5.2-Codex only
3
Like-for-like categories
2 / 8
Supported: GLM-4.7 and GPT-5.2-Codex. Conditional ranges do not establish rank confidence.How the comparison works

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.

  • Coding work

    Code generation, repair, and software-engineering tasks

    GPT-5.2-Codex

    GPT-5.2-Codex has the higher public coding point estimate, 44.8 to 43, with Supported evidence for both models. The conditional ranges do not establish rank confidence.

    Confidence: limited
  • Agentic work

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

    GPT-5.2-Codex

    GPT-5.2-Codex has the higher public agentic point estimate, 48.9 to 37.7, with Supported evidence for both models. The conditional ranges do not establish rank confidence.

    Confidence: limited
  • Long documents

    Prompts that approach the documented context limit

    GPT-5.2-Codex

    GPT-5.2-Codex has the larger documented context window.

    Confidence: documented
Show secondary and unsupported calls
  • Chat turn cost

    1K fresh input + 500 output tokens

    Not enough matched evidence

    A complete comparable API-rate estimate is not available for both models.

    Confidence: listed-rates
  • Cache-heavy agent loop cost

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

    Not enough matched evidence

    The page does not recommend a cost winner because at least one model cannot fit the stated workload in one request. GLM-4.7 does not fit this workload in one request. GPT-5.2-Codex has no published cached-input rate, so cached tokens use its listed input rate. GLM-4.7 has no comparable published API token rate.

    Confidence: rate-fallback
  • Repository review cost

    50K fresh input + 3K output tokens

    Not enough matched evidence

    A complete comparable API-rate estimate is not available for both models.

    Confidence: listed-rates

Which one for a specific job

Choose a job from the LLM Selector's task catalog to see the category row it rests on, under the same basis rules as the table below. A directional row stays directional; choosing a job never creates a winner.

The same task catalog as the LLM Selector. Each job names the evidence surface it rests on; nothing here adds a new score.

43.0GLM-4.744.8GPT-5.2-Codex

Like-for-like · BenchAlign v6.0

GPT-5.2-Codex has the higher coding point estimate. Conditional score ranges do not establish rank confidence.

Coding scores combine specific tasks and setups. Match the editor, harness, and effort to your workflow.

Same basis rules as the category table below

Or describe your own job

The LLM Selector reads what you need a model for and returns a shortlist, ranked in the same order the job pages publish.

Describe the task and constraints. This selector recommends models; it cannot carry out the task or access your files and accounts.

We keep what you type here, drafts included, for 180 days, and after that only the job and requirements read from it. Nothing is tied to your IP address or account. Leave out names and other personal details. Privacy

What is actually comparable

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

2 categories rest on Estimated evidence or different evidence sets. Those rows remain visible for coverage context but do not name a winner.

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.

Bars run 0–100 on each benchmark’s normalized display scale

Category results, on a stated basis

Each row shows the public-lane category score for both models: the BenchAlign v6.0 lane in every category, with the same rank each model page reports. A row is like-for-like only when both scores rest on Supported evidence. Directional and not-comparable rows remain visible, but they never receive a winner.

Agentic

Like-for-like
GLM-4.7
37.7
Supported · #151/183
GPT-5.2-Codex
48.9
Supported · #99/183
Basis
BenchAlign v6.0 lane · 4 vs 2 public rows
Reading
GPT-5.2-Codex leads · intervals overlap

Coding

Like-for-like
GLM-4.7
43.0
Supported · #119/181
GPT-5.2-Codex
44.8
Supported · #105/181
Basis
BenchAlign v6.0 lane · 6 vs 4 public rows
Reading
GPT-5.2-Codex leads · intervals overlap

Reasoning

Directional only
GLM-4.7
45.7
Supported · #95/161
GPT-5.2-Codex
48.7
Estimated · #81/161
Basis
BenchAlign v6.0 lane · 0 vs 0 public rows
Reading
Directional only

Knowledge

Directional only
GLM-4.7
40.6
Estimated · #125/158
GPT-5.2-Codex
51.3
Estimated · #85/158
Basis
BenchAlign v6.0 lane · 5 vs 0 public rows
Reading
Directional only

Multimodal

Not comparable
GLM-4.7
Not ranked
GPT-5.2-Codex
Not ranked
Basis
BenchAlign v6.0 lane · 0 vs 0 public rows
Reading
Not comparable

Multilingual

Not comparable
GLM-4.7
Not ranked
GPT-5.2-Codex
Not ranked
Basis
BenchAlign v6.0 lane · 0 vs 0 public rows
Reading
Not comparable

Instruction following

Not comparable
GLM-4.7
Not ranked
GPT-5.2-Codex
48.2
Supported · #73/143
Basis
BenchAlign v6.0 lane · 0 vs 0 public rows
Reading
Not comparable

Math

Not comparable
GLM-4.7
Not ranked
GPT-5.2-Codex
48.8
Estimated · #70/128
Basis
BenchAlign v6.0 lane · 2 vs 0 public rows
Reading
Not comparable

Ranks count the models scored in each category’s BenchAlign v6.0 lane, so denominators differ by category. Like-for-like rows within 0.5 points read as a practical tie.

Supported evidence per lane · bars run 0–100Methodology

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-4.7
Self-hosted; infrastructure cost varies
Fits in one request
GPT-5.2-Codex
$0.00875
Fits in one request

GLM-4.7 has no comparable published API token rate.

Repository review

50K fresh input + 3K output tokens

GLM-4.7
Self-hosted; infrastructure cost varies
Fits in one request
GPT-5.2-Codex
$0.1295
Fits in one request

GLM-4.7 has no comparable published API token rate.

Cache-heavy agent loop

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

GLM-4.7
Self-hosted; infrastructure cost varies
Does not fit in one request
Cached-input rate unavailable
GPT-5.2-Codex
$0.525
Fits in one request
Cached input priced at the published list-input rate

GLM-4.7 does not fit this workload in one request. GPT-5.2-Codex has no published cached-input rate, so cached tokens use its listed input rate. GLM-4.7 has no comparable published API token rate.

Cached input falls back to the list input rate only where a cached rate is unpublished

Price against score, among all priced models

Overall score against output price per 1M tokens, one model per family. Pricing as of December 2, 2026.

GPT-5.2-Codex

20406080100$0.10$0.50$1$5$10$50$100Output price, $ per 1M tokens (log)Overall score
  • GLM-4.7 has no public API price, so it is not plotted.
  • 33 models score at least as high as GPT-5.2-Codex for the same price or less. The nearest is GPT-5.2 (score 60.4, also $14.00 per 1M output tokens).

Gray dots are the other priced models. The dark step line is the efficiency frontier: for a model under it, another model costs no more and scores at least as high.

See GPT-5.2-Codex on the full price vs performance chart

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-4.7

200K

GPT-5.2-Codex

400K

API model ID

GLM-4.7

Not sourced

GPT-5.2-Codex

Not sourced

Cached-input rate

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

GLM-4.7

No comparable hosted API rate

GPT-5.2-Codex

Not published

Provider availability

GLM-4.7

Not sourced

GPT-5.2-Codex

Not sourced

Reasoning profile

GLM-4.7

Reasoning

GPT-5.2-Codex

Reasoning

Weight access

GLM-4.7

Open Weight

GPT-5.2-Codex

Proprietary

License

GLM-4.7

Open Weight

GPT-5.2-Codex

Proprietary

Release date

GLM-4.7

2025-12-22

GPT-5.2-Codex

2025-12-18

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
GPT-5.2-Codex has the higher public point estimate, 49.2 versus 43.8. Their conditional score ranges overlap. These ranges do not establish rank confidence.
Workload cost
A complete comparable API-rate estimate is not available for both models.
Context tradeoff
GPT-5.2-Codex has the larger documented window (400K).
Run the same representative tasks against both endpoints before changing production traffic.

Questions

Which is better, GLM-4.7 or GPT-5.2-Codex?

GPT-5.2-Codex has the higher public point estimate, 49.2 versus 43.8. Their conditional score ranges overlap. These ranges do not establish rank confidence. The page therefore keeps the decision tied to the specific documented workload.

Which is better for coding, GLM-4.7 or GPT-5.2-Codex?

GPT-5.2-Codex has the higher public coding point estimate, 44.8 to 43, with Supported evidence for both models. The conditional ranges do not establish rank confidence.

Which is better for agentic tasks, GLM-4.7 or GPT-5.2-Codex?

GPT-5.2-Codex has the higher public agentic tasks point estimate, 48.9 to 37.7, with Supported evidence for both models. The conditional ranges do not establish rank confidence.

Which costs less, GLM-4.7 or GPT-5.2-Codex?

Both models do not have comparable published API token rates, so this page does not name a universal price winner.

Which has the larger context window, GLM-4.7 or GPT-5.2-Codex?

GPT-5.2-Codex has the larger documented context window: 400K, compared with 200K.

Benchmark evidence

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

Browse raw public benchmark evidence23 rows

Agentic

  • Terminal-Bench 2.0

    GLM-4.741%
    Source
    GPT-5.2-Codex—

    Not directly comparable

  • BrowseComp

    GLM-4.752%
    Source
    GPT-5.2-Codex—

    Not directly comparable

  • VITA-Bench

    GLM-4.715.5%
    Source
    GPT-5.2-Codex—

    Not directly comparable

  • GLM-4.723.81%
    GPT-5.2-Codex27.32%

    GPT-5.2-Codex leads this result

  • JobBench

    GLM-4.7—
    GPT-5.2-Codex26.0%
    Source

    Not directly comparable

  • BinaryAudit

    Shown onlyShared source
    GLM-4.724.6%
    GPT-5.2-Codex45.6%

    GPT-5.2-Codex leads this result

Coding

  • SWE-bench Verified

    GLM-4.773.8%
    Source
    GPT-5.2-Codex—

    Not directly comparable

  • LiveCodeBench v6

    GLM-4.784.9%
    Source
    GPT-5.2-Codex—

    Not directly comparable

  • SWE-Rebench

    GLM-4.758.7%
    Source
    GPT-5.2-Codex—

    Not directly comparable

  • Terminal-Bench 2.0

    GLM-4.741.0%
    Source
    GPT-5.2-Codex—

    Not directly comparable

  • LiveCodeBench (Vals)

    GLM-4.782.2%
    Source
    GPT-5.2-Codex88.0%
    Source

    GPT-5.2-Codex leads this result

  • SWE-bench (Vals)

    GLM-4.769.4%
    Source
    GPT-5.2-Codex72.4%
    Source

    GPT-5.2-Codex leads this result

  • Vibe Code Bench

    GLM-4.7—
    GPT-5.2-Codex37.91%
    Source

    Not directly comparable

  • PostTrainBench v1

    GLM-4.7—
    GPT-5.2-Codex17.2%
    Source

    Not directly comparable

  • OTelBench

    Shown onlyShared source
    GLM-4.713.0%
    GPT-5.2-Codex15.9%

    GPT-5.2-Codex leads this result

Reasoning

  • Chess Puzzles

    Shown only
    GLM-4.721.0%
    Source
    GPT-5.2-Codex—

    Not directly comparable

Knowledge

  • GPQA

    GLM-4.785.7%
    Source
    GPT-5.2-Codex—

    Not directly comparable

  • MMLU-Pro

    GLM-4.784.3%
    Source
    GPT-5.2-Codex—

    Not directly comparable

  • HLE

    GLM-4.724.8%
    Source
    GPT-5.2-Codex—

    Not directly comparable

  • GPQA Diamond (Vals)

    GLM-4.780.1%
    Source
    GPT-5.2-Codex—

    Not directly comparable

  • MMLU-Pro (Vals)

    GLM-4.782.7%
    Source
    GPT-5.2-Codex—

    Not directly comparable

Math

  • AIME 2025

    GLM-4.795.7%
    Source
    GPT-5.2-Codex—

    Not directly comparable

  • HMMT Feb 2025

    GLM-4.797.1%
    Source
    GPT-5.2-Codex—

    Not directly comparable

20 public results · 3 shared

Watch GLM-4.7 vs GPT-5.2-Codex

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

Read a sample issue

Join 7,500+ subscribers.

Last updated December 2, 2026