ZMIME
Comparison · 2 models · Updated Oct 4, 2026

GLM-5.2 vs Grok 4.7

Grok 4.7 comes out ahead, 61 to 55 on our weighted score, though GLM-5.2 is 28% cheaper per token.

  1. Z.ai (Zhipu)

    GLM-5.2

    Released Jun 13, 2026

    55/100
    • ECI151.8
    • Price$1.40 / $4.40
    • Context1M
  2. Our pick

    xAI

    Grok 4.7

    Released Sep 21, 2026

    61/100
    • ECI—
    • Price$2.00 / $6.00
    • Context500K
  3. Add a model

    Make it a three-way comparison.

01 — Verdict

Grok 4.7 is our pick

Grok 4.7 is the better all-round choice, scoring 61/100 against GLM-5.2 (55). It leads on capability and inputs & features. GLM-5.2 wins on price and context window. The score weighs capability 50%, price 25%, inputs & features 15%, context window 10%. Capability uses the average of shared benchmarks (GPQA Diamond, FrontierMath Tiers 1–3, OTIS Mock AIME 2024–2025 and SimpleQA Verified), because Grok 4.7 has no Capabilities Index score yet.

  • CapabilityGrok 4.7Shared benchmarks: Grok 4.7 74.9% · GLM-5.2 67.9%
  • Lowest priceGLM-5.2GLM-5.2 $2.15 · Grok 4.7 $3.00 per 1M tokens (3:1 blend)
  • Longest contextGLM-5.2GLM-5.2 1,000,000 · Grok 4.7 500,000 tokens
  • Widest inputsGrok 4.7GLM-5.2: Text · Grok 4.7: Text, Images, PDFs
  • Self-hostingGLM-5.2Publishes downloadable weights
How the score is built
MeasureWeightGLM-5.2Grok 4.7
CapabilityShared benchmarks50%6875
Price25%3427
Inputs & features15%4580
Context window10%6048
Overall100%55/10061/100
02 — Side by side

Every spec in one table

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

GLM-5.2 vs Grok 4.7 specifications side by side
SpecificationGLM-5.2Z.ai (Zhipu)Grok 4.7xAI
Capability
Capabilities Index (ECI)151.8—
ECI rank#44 of 148—
GPQA DiamondGraduate-level science questions91.9%92.7% (best)
FrontierMath Tiers 1–3Research-level mathematics59.2% (best)53.0%
OTIS Mock AIME 2024–2025Competition mathematics86.4%98.1% (best)
SWE-bench VerifiedFixing real GitHub issues78.7%—
SimpleQA VerifiedShort factual questions34.2%56.0% (best)
Price per million tokens
Input$1.40 (best)$2.00
Output$4.40 (best)$6.00
Cached input$0.26 (best)$0.50
Blended (3:1)$2.15 (best)$3.00
Long-context rateSame rateOver 200K: $4.00 / $12.00
Price sourceOfficial Z.AI APIOfficial xAI API
Limits
Context window1,000,000 tokens (best)500,000 tokens
Max output131,072 tokens500,000 tokens (best)
Inputs and features
TextYesYes
ImagesNoYes
PDFsNoYes
AudioNoNo
VideoNoNo
ReasoningYeshigh · maxYeslow · medium · high · xhigh
Tool callingYesYes
Structured outputYesYes
Availability
WeightsOpenProprietary
API model IDglm-5.2grok-4.7
API providers80 (best)17
ReleasedJun 13, 2026Sep 21, 2026
Knowledge cutoff—May 2026
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.2$22.80
  • Grok 4.7$32.00
04 — Questions

Which should you choose?

Which is better: GLM-5.2 or Grok 4.7?

Grok 4.7 is the better all-round choice, scoring 61/100 against GLM-5.2 (55). It leads on capability and inputs & features. GLM-5.2 wins on price and context window. The score weighs capability 50%, price 25%, inputs & features 15%, context window 10%. Capability uses the average of shared benchmarks (GPQA Diamond, FrontierMath Tiers 1–3, OTIS Mock AIME 2024–2025 and SimpleQA Verified), because Grok 4.7 has no Capabilities Index score yet.

Which is cheaper, GLM-5.2 or Grok 4.7?

GLM-5.2 is cheaper at $1.40 input / $4.40 output per million tokens (official Z.AI API price). Grok 4.7 costs $2.00 input / $6.00 output per million tokens (official xAI API price). At a typical mix of three input tokens to one output token, that is $2.15 per million tokens for GLM-5.2 versus $3.00 for Grok 4.7 (1.4× as much).

Which scores higher on benchmarks?

Not every model here has a Capabilities Index score, so we compare the average of shared benchmarks (GPQA Diamond, FrontierMath Tiers 1–3, OTIS Mock AIME 2024–2025 and SimpleQA Verified): Grok 4.7 74.9% and GLM-5.2 67.9%. On individual benchmarks: GPQA Diamond — Grok 4.7 92.7%, GLM-5.2 91.9%; FrontierMath Tiers 1–3 — GLM-5.2 59.2%, Grok 4.7 53.0%; OTIS Mock AIME 2024–2025 — Grok 4.7 98.1%, GLM-5.2 86.4%; SimpleQA Verified — Grok 4.7 56.0%, GLM-5.2 34.2%.

Which is better for coding?

There are no published SWE-bench Verified results for Grok 4.7 yet, so there is no like-for-like coding score. On overall capability, Grok 4.7 leads, which tends to carry over to coding, but test on your own codebase. Both support tool calling for agent workflows.

Which has the bigger context window?

GLM-5.2 has the largest context window at 1,000,000 tokens, against 500,000 for Grok 4.7. Maximum output per response: GLM-5.2 up to 131,072, Grok 4.7 up to 500,000 tokens.

Which can read images, PDFs, audio or video?

GLM-5.2 accepts text; Grok 4.7 accepts text, images and PDFs. Grok 4.7 handles the widest range of inputs.

Are any of these open source?

GLM-5.2 publishes its weights and can be self-hosted; Grok 4.7 is proprietary.

Which is newer?

Grok 4.7 is the newest, released Sep 21, 2026. GLM-5.2 came out Jun 13, 2026. Knowledge cutoff: Grok 4.7 May 2026.

How do you decide the winner?

Each model gets a 0–100 score on capability (50%, independent benchmark results); price (25%, blended price per million tokens (3 input : 1 output), log scale); inputs & features (15%, image, PDF, audio and video input, tool calling, structured output and reasoning); context window (10%, 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 Oct 4, 2026.