ZMIME
Comparison · 2 models · Updated Nov 18, 2026

GLM-5 vs GPT-5.2

GPT-5.2 comes out ahead, 75 to 62 on our weighted score, though GLM-5 is 3.1× cheaper per token.

Price in rating: Excluded · Include price

  1. Z.ai (Zhipu)

    GLM-5

    Released Feb 12, 2026

    62/100
    • ECI146.5
    • Price$1.00 / $3.20
    • Context205K
  2. Our pick

    OpenAI

    GPT-5.2

    Released Dec 11, 2025

    75/100
    • ECI154.5
    • Price$1.75 / $14.00
    • Context400K
  3. Add a model

    Make it a three-way comparison.

01 — Verdict

GPT-5.2 is our pick

GPT-5.2 is the better all-round choice, scoring 75/100 against GLM-5 (62). It leads on capability, inputs & features and context window. The score weighs capability 67%, inputs & features 20%, context window 13%.

  • CapabilityGPT-5.2Capabilities Index (ECI): GPT-5.2 154.5 · GLM-5 146.5
  • Lowest priceGLM-5GLM-5 $1.55 · GPT-5.2 $4.81 per 1M tokens (3:1 blend)
  • Longest contextGPT-5.2GPT-5.2 400,000 · GLM-5 204,800 tokens
  • Widest inputsGPT-5.2GLM-5: Text · GPT-5.2: Text, Images
  • Self-hostingGLM-5Publishes downloadable weights
How the score is built
MeasureWeightGLM-5GPT-5.2
CapabilityCapabilities Index (ECI)67%7482
Inputs & features20%3570
Context window13%3950
Overall100%62/10075/100
02 — Side by side

Every spec in one table

Highlighted cells lead their row. Dashes mean the data is not published.

GLM-5 vs GPT-5.2 specifications side by side
SpecificationGLM-5Z.ai (Zhipu)GPT-5.2OpenAI
Capability
Capabilities Index (ECI)146.5154.5 (best)
ECI rank#85 of 158#51 of 158 (best)
GPQA DiamondGraduate-level science questions87.8%91.4% (best)
FrontierMath Tiers 1–3Research-level mathematics—67.4%
OTIS Mock AIME 2024–2025Competition mathematics80.0%96.1% (best)
SWE-bench VerifiedFixing real GitHub issues72.1%73.8% (best)
SimpleQA VerifiedShort factual questions—37.1%
Price per million tokens
Input$1.00 (best)$1.75
Output$3.20 (best)$14.00
Cached input$0.20$0.175 (best)
Blended (3:1)$1.55 (best)$4.81
Long-context rateSame rateSame rate
Price sourceOfficial Z.AI APIOfficial OpenAI API
Limits
Context window204,800 tokens400,000 tokens (best)
Max output131,072 tokens (best)128,000 tokens
Inputs and features
TextYesYes
ImagesNoYes
PDFsNoNo
AudioNoNo
VideoNoNo
ReasoningYesYeslow · medium · high · xhigh
Tool callingYesYes
Structured outputNoYes
Availability
WeightsOpenProprietary
API model IDglm-5gpt-5.2
API providers37 (best)36
ReleasedFeb 12, 2026Dec 11, 2025
Knowledge cutoff—Aug 31, 2025
03 — Cost

What would a month cost?

Enter your expected volume in millions of tokens. List prices only; caching and batch discounts would lower these.

  • GLM-5$16.40
  • GPT-5.2$45.50
04 — Questions

Which should you choose?

Which is better: GLM-5 or GPT-5.2?

GPT-5.2 is the better all-round choice, scoring 75/100 against GLM-5 (62). It leads on capability, inputs & features and context window. The score weighs capability 67%, inputs & features 20%, context window 13%.

Which is cheaper, GLM-5 or GPT-5.2?

GLM-5 is cheaper at $1.00 input / $3.20 output per million tokens (official Z.AI API price). GPT-5.2 costs $1.75 input / $14.00 output per million tokens (official OpenAI API price). At a typical mix of three input tokens to one output token, that is $1.55 per million tokens for GLM-5 versus $4.81 for GPT-5.2 (3.1× as much).

Which scores higher on benchmarks?

GPT-5.2 scores higher on the Capabilities Index (ECI): GPT-5.2 154.5 (#51 of 158) and GLM-5 146.5 (#85 of 158). Their confidence ranges do not overlap (152.9–156.3 vs 145.0–148.1), so the gap is a real one. On individual benchmarks: GPQA Diamond — GPT-5.2 91.4%, GLM-5 87.8%; OTIS Mock AIME 2024–2025 — GPT-5.2 96.1%, GLM-5 80.0%; SWE-bench Verified — GPT-5.2 73.8%, GLM-5 72.1%.

Which is better for coding?

GPT-5.2 resolves more real GitHub issues on SWE-bench Verified: GPT-5.2 73.8% and GLM-5 72.1%. Both support tool calling for agent workflows.

Which has the bigger context window?

GPT-5.2 has the largest context window at 400,000 tokens, against 204,800 for GLM-5. Maximum output per response: GLM-5 up to 131,072, GPT-5.2 up to 128,000 tokens.

Which can read images, PDFs, audio or video?

GLM-5 accepts text; GPT-5.2 accepts text and images. GPT-5.2 handles the widest range of inputs.

Are any of these open source?

GLM-5 publishes its weights and can be self-hosted; GPT-5.2 is proprietary.

Which is newer?

GLM-5 is the newest, released Feb 12, 2026. GPT-5.2 came out Dec 11, 2025. Knowledge cutoff: GPT-5.2 Aug 31, 2025.

How do you decide the winner?

This rating uses capability (67%, independent benchmark results); inputs & features (20%, image, PDF, audio and video input, tool calling, structured output and reasoning); context window (13%, maximum tokens per request, log scale). Dimensions missing for any model are dropped and the remaining weights rescaled, so every model is judged on the same evidence. Specs and prices come from public model listings and the labs’ own API pages; capability scores come from independent benchmark runs. Data updated Nov 18, 2026.