Model comparison
GLM 5.2 vs Grok 4.5
Z.ai against SpaceXAI, compared on context, price, and attributed benchmark results.
Recorded profile verification October 2, 2026Individual provider fields may changeEvidence confidence: Medium — see receipts below
Z.ai
GLM 5.2
Balanced · Open weights
SpaceXAI
Grok 4.5
Balanced
| Specification | GLM 5.2 | Grok 4.5 |
|---|---|---|
| Provider | ||
| Provider | Z.ai | SpaceXAI |
| Tier | ||
| Tier | Balanced | Balanced |
| Context window | ||
| Context window | Winner: 1M | 500K |
| Max output | ||
| Max output | 131K | Not verifiedUnverified |
| Input / 1M tokens | ||
| Input / 1M tokens | Winner: $1.40 | $2 |
| Output / 1M tokens | ||
| Output / 1M tokens | Winner: $4.40 | $6 |
| Weights | ||
| Weights | Open | Closed |
| Parameters | ||
| Parameters | Not verifiedUnverified | Not verifiedUnverified |
| Reasoning levels | ||
| Reasoning levels | none, minimal, low, medium, high, xhigh, max | low, medium, high |
| Modalities | ||
| Modalities | text | text, image |
| License | ||
| License | MIT | Not verifiedUnverified |
| API model id | ||
| API model id | glm-5.2 | grok-4.5 |
| Released | ||
| Released | June 16, 2026 | July 8, 2026 |
| Terminal-Bench 2.1 · source date Grok 4.5: 2026-07-16 | ||
| Terminal-Bench 2.1 · source date Grok 4.5: 2026-07-16 | Not verifiedUnverified | 83.3 |
| DeepSWE 1.1 · source date Grok 4.5: 2026-07-16 | ||
| DeepSWE 1.1 · source date Grok 4.5: 2026-07-16 | Not verifiedUnverified | 53 |
| DeepSWE 1.1 · source date Grok 4.5: 2026-07 | ||
| DeepSWE 1.1 · source date Grok 4.5: 2026-07 | Not verifiedUnverified | 54 |
Dates beside benchmark scores refer to the linked source’s publication or capture date unless that source explicitly states when it measured the result. A shared URL alone does not establish comparable runs; unverified setups are marked. Prices are USD per million tokens at standard rates, excluding batch and caching discounts. Values we could not confirm from the provider are shown as “Not verified” rather than estimated.
Benchmark receipts
Where each score comes from, and how far it can be compared across models.
- Source date2026-07-16xAI — Introducing Grok 4.5 (vendor; Datacurve-run)
Agentic software engineering: pass@1 on real repo tasks with reported cost per completed task.
Directly comparable
- Source date2026-07-16xAI — Introducing Grok 4.5 (vendor)
Agentic terminal work: multi-step tasks executed in a sandboxed shell environment.
Comparable with caveatNot comparable with Terminal-Bench 3.0 or 4.0 (different task sets) or v1; harness configuration (container, time limits) also shifts results.
- Source date2026-07Google DeepMind 3.6 Flash evaluation report (vendor-authored cross-model comparison; distinct observation from xAI's 53, with run comparability unverified)
Agentic software engineering: pass@1 on real repo tasks with reported cost per completed task.
Directly comparable
Pricing tiers
GLM 5.2: Z.ai token API $1.40/$4.40 per MTok, cached input $0.26; cache storage is limited-time free with no verified end date. Text-only API advertises 1M context and a 131,072 output ceiling. The MIT checkpoint config sets 1,048,576 native context.
Grok 4.5: Standard $2/$6 per MTok below 200K prompt tokens; at 200K or more the full request bills $4/$12. Cached input $0.30 short or $0.60 long. US regional inference adds 10%. No separate text-output cap is verified.
GLM 5.2
The previous GLM text-only generation, available as an MIT-licensed checkpoint and documented token-API model; GLM-5.3 uses the same base with newer post-training.
Best for
- Open-weight deployments
- Reasoning
- Cost-sensitive work
Watch out
Coding Plan 5.2 requests route to 5.3; direct token-API identity is separate. GLM-5.2 supports thinking on/off: none/minimal stop thinking, low/medium map to high, and xhigh maps to max (default). Accepted effort strings do not represent seven independent compute tiers. Exact total/active parameter counts remain unverified; do not infer them solely from the shared base.
Grok 4.5
Grok 4.5 is SpaceXAI's hosted reasoning model with a 500K-token context and configurable low, medium and high effort.
Best for
- Real-time data queries
- Technical tasks
- Cost-sensitive reasoning
Watch out
An earlier API model, still listed in pricing; current docs recommend Grok 4.7. Context is 500K. xhigh requests map to high and reasoning cannot be disabled; presencePenalty, frequencyPenalty and stop are unsupported. Match the exact model, effort and dated benchmark configuration.
When the cheaper one wins
GLM 5.2 is cheaper on output at $4.40 per million tokens against $6 for Grok 4.5 — about 1.4×. Use the cheaper tier for classification, extraction, summarisation, and any task where the expensive model’s extra score does not change the accepted output. The expensive one only pays if your hardest task actually fails on the cheap tier. On DeepSWE 1.1, GLM 5.2 is 43.8% Pass@1 at $3.92/task versus Grok 4.5 at 53.8% / $2.42/task. This compares standard short-context token rates, not total cost per accepted task. Include input, cache, context tiers, schedules, retries and review in your pilot.
Run the model pickerEvidence confidence: Medium
How strong and complete the evidence behind this comparison is — not a prediction of which model is better.
- Pricing verified on both sides — Input and output rates are verified for both models.
- 3/5 core specs verified on both sides — Not published for at least one side: max output, parameter count.
- No directly aligned benchmark setup — No benchmark has matching cited sources, source dates, units, effort and recorded run details on both models.
- Verified within the last 90 days — Older of the two catalog checks was 25 days ago.
- Both models carry source citations — Each side has at least two catalog sources on record.
Source receipts
Each catalog figure was checked against the provider or an independent second source on the date shown.
- GLM 5.2: GLM-5.2 official announcement (accessed 2026-10-01)
- GLM 5.2: GLM-5.2 API scope (accessed 2026-10-01)
- GLM 5.2: GLM-5.2 exact accepted effort mappings (accessed 2026-10-01)
- GLM 5.2: GLM output ceiling and direct model identifier (accessed 2026-10-01)
- GLM 5.2: Z.ai first-party pricing (accessed 2026-10-01)
- GLM 5.2: GLM-5.2 official checkpoint (accessed 2026-10-01)
- GLM 5.2: GLM-5.2 exact MIT licence (accessed 2026-10-01)
- GLM 5.2: GLM-5.2 native checkpoint context (accessed 2026-10-01)
- Grok 4.5: Whole-profile primary source check October 1 (accessed 2026-10-01)
- Grok 4.5: Whole-profile primary source check October 1 (accessed 2026-10-01)
- Grok 4.5: SpaceXAI API release notes — Grok4.5 July8, EU availability July17 (accessed 2026-10-01)
- Grok 4.5: SpaceXAI formal Grok4.5 announcement (July16; API release separately July8) (accessed 2026-08-29)
- Grok 4.5: xAI pricing (grok-4.5 $2/$6, 500K) (accessed 2026-08-29)
- Grok 4.5: SpaceXAI reasoning API (Grok 4.5 effort mapping) (accessed 2026-10-01)
Related comparisons
Common questions
GLM 5.2 vs Grok 4.5
Answered from the verified figures on this page rather than general guidance.
Is GLM 5.2 or Grok 4.5 cheaper for input?
Is GLM 5.2 or Grok 4.5 cheaper for output?
Which has the larger context window, GLM 5.2 or Grok 4.5?
Do GLM 5.2 and Grok 4.5 support the same reasoning levels?
Should I use GLM 5.2 or Grok 4.5?
Can I self-host GLM 5.2 or Grok 4.5?
Next step
Choosing between them
The verified figures that separate this pair, computed from the catalog rather than restated boilerplate.
- Input price: GLM 5.2 costs $1.40 per 1M tokens versus $2 for Grok 4.5 — a 1.4x difference at the headline tier.
- Context: GLM 5.2 takes 1M against 500K for Grok 4.5 — only decisive if your prompts approach the smaller window.
- Deployment: GLM 5.2 publishes weights you can self-host; the other is API-only.
Choosing a harness rather than a model — Cursor, Copilot, Claude Code, Windsurf, or Lovable? Compare agentic harnesses · Latest releases.