Get the Agent OS + join 4,000+ founders inside the AI Profit Boardroom → Join AIPB ($59/mo)
Real head-to-head · same prompt, one shot

GLM-5.2 vs Grok 4.7

The never-forgets agent — 1M context, open weights. vs Grok 4.6's price, a bigger base model, and it builds games that hold together.

Head-to-head verdict: Grok 4.7 wins 6–5.

GLM-5.2 · context1M tokens
Grok 4.7 · context500K tokens
GLM-5.2 · priceOpen weights · free for individuals
Grok 4.7 · price$2 in / $6 out per M tokens
GLM-5.2 · vendorZhipu / Z.ai
Grok 4.7 · vendorxAI

What I tested — same prompt, two models

I run the same fixed prompt set through every new model the day it drops — same string, one shot, single HTML file out — and I score the result 0–10 on whether it ran, how close it hit the brief, and how good it looked. Below is what came out when I gave the exact same prompts to GLM-5.2 and Grok 4.7, side by side, on 11 shared tasks inside the Agent Operating System.

Both models were given identical prompts inside the Agent Operating System — no help, no iteration, no "best of N" tricks. I run each prompt once, save the HTML file the model produces, and score it 0–10 on whether it ran, how close it hit the brief, and how good it looked. The scoring is mine. The verdicts below are pulled from my source comparison guides at agentos.guide where I publish every score and the reasoning behind it.

GLM-5.2 · Default model inside Agent OS for any task that touches a long context — codebase Q&A, multi-file refactors, agent memory replay.

Grok 4.7 · Wired into the Agent OS Grok Build tab (4.7 / 4.6 / 4.5 picker, OpenRouter fallback when the CLI is signed out) and benched on twenty skill-infused game builds, each played through its full gameplay arc on a Metal GPU before the vision judge scored the played frame.

Side-by-side on 47 shared tasks

Click any cell to play that model's actual one-shot attempt. Medals are derived from my 0–10 scores per task (highest = 🥇, second = 🥈, third = 🥉).

Task ↓
GLM-5.2
Grok 4.7
Game
GLM-5.2 on Arcade
🥈Grok 4.7 on Arcade
Game
GLM-5.2 on Crypt
Grok 4.7 on Crypt
Game
GLM-5.2 on Dogfight
Grok 4.7 on Dogfight
Game
GLM-5.2 on Doom
Grok 4.7 on Doom
GLM-5.2 on Dragonrealm
🥉Grok 4.7 on Dragonrealm
Game
GLM-5.2 on Flightsim
🥉Grok 4.7 on Flightsim
Game
GLM-5.2 on Gtadrive
Grok 4.7 on Gtadrive
Game
GLM-5.2 on Rpg
Grok 4.7 on Rpg
Game
GLM-5.2 on Skyrim
Grok 4.7 on Skyrim
GLM-5.2 on Twilightvale
Grok 4.7 on Twilightvale
Game
GLM-5.2 on Voxelcraft
Grok 4.7 on Voxelcraft
GLM-5.2 on Dragonflight
— not attempted —
Game
GLM-5.2 on Game
— not attempted —
Game
GLM-5.2 on Gtafoot
— not attempted —
GLM-5.2 on Neonblaster
— not attempted —
Game
🥇GLM-5.2 on Neoncity
— not attempted —
Game
GLM-5.2 on Neonracer
— not attempted —
GLM-5.2 on Nordiccrypt
— not attempted —
Game
GLM-5.2 on Outrun
— not attempted —
Game
GLM-5.2 on Parachute
— not attempted —
Game
GLM-5.2 on Pool
— not attempted —
Game
GLM-5.2 on Racing
— not attempted —
Game
GLM-5.2 on Raycaster
— not attempted —
Page
GLM-5.2 on Aipbpromo
— not attempted —

Where GLM-5.2 beat Grok 4.7

The tasks where I gave GLM-5.2 a higher 0–10 score on the same prompt — with the actual commentary from my source guides.

Voxelcraft Game
GLM-5.2 8.0 · Grok 4.7 2.2 (+5.8)

What I saw: 44KB · plays clean · three, webgl

Crypt Game
GLM-5.2 8.0 · Grok 4.7 2.3 (+5.7)

What I saw: 29KB · plays clean · three, webgl, pointer-lock

Dogfight Game
GLM-5.2 8.0 · Grok 4.7 6.3 (+1.7)

What I saw: 43KB · plays clean · webgl

Doom Game
GLM-5.2 8.0 · Grok 4.7 6.3 (+1.7)

What I saw: All three are real, playable shooters. Opus drops you in a corridor with an imp dead ahead — gun, crosshair and HUD framed like a screenshot. Kimi matches it: a monster down a textured hall, health, ammo, minimap. GLM ships a gorgeous 'HAZARD PROTOCOL' title screen with a working…

Gtadrive Game
GLM-5.2 8.0 · Grok 4.7 7.8 (+0.2)

What I saw: 47KB · plays clean · three, webgl

Where Grok 4.7 beat GLM-5.2

The tasks where I gave Grok 4.7 a higher 0–10 score on the same prompt — with the actual commentary from my source guides.

Grok 4.7 8.6 · GLM-5.2 7.5 (+1.1) · Frozen realm winner

What I saw: Gorgeous polished frozen scene — aurora sky, snowy hills, low-poly pines, standing stones, a caped character with sheathed sword, and a working HUD with compass/dragon counter; playtest shows real movement (walkPx 0.58), dragon-dive events, and a STRUCK combat state, hitting the …

Grok 4.7 8.3 · GLM-5.2 7.5 (+0.8)

What I saw: Renders a polished twilight open-world with terrain, water pool, scattered trees/monoliths, relics, minimap, and a functional combat loop — HUD shows score climbing, a relic collected, VITAL dropping from a WARDEN fight, all confirming real progression. Strong and shippable, but …

Rpg Game
Grok 4.7 8.2 · GLM-5.2 7.5 (+0.7)

What I saw: Strong, atmospheric top-down RPG with a polished themed HUD (vit/dash/relics/inventory/minimap), 3D low-poly world, enemies and interactive seals — HUD evidence shows gold/score/vit all progressing and combat context living. Loses some points because VIT dropped steadily toward d…

Arcade Game
Grok 4.7 8.6 · GLM-5.2 8.0 (+0.6) · 3D breakout polish

What I saw: A gorgeous 3D breakout with rich lighting, gradient sky dome, gridded arena, minimap, and a polished sci-fi HUD; playtest confirms real motion (walkPx 0.23) with hull/lives/score/bricks all changing and no console errors — clearly at or above the field's best.

Flightsim Game
Grok 4.7 8.5 · GLM-5.2 8.0 (+0.5) · polished flight HUD

What I saw: Strong render with a detailed 3D airport (runway, hangar, apron truck), clean chase-cam plane, and a rich professional HUD (heading tape, artificial horizon, IAS/ALT/VS gauges); playtest confirms real takeoff physics — throttle to 100, IAS ramping 55→146kt, ALT climbing 1→236m wi…

Strengths & weaknesses I logged

GLM-5.2

Strengths

  • 1M-token context window — best-in-class long-document and large-codebase work
  • Open weights — runs locally, no vendor lock-in, no token meter
  • Top of the bench for cinematic visuals (neon city, synthwave, voxel runner)

Trade-offs

  • Faceplanted on the Goldie Bench raycaster — the engine was great but it spawned the player inside a wall
  • First-shot reliability lags Opus by a hair on consistency

Grok 4.7

Strengths

  • Averaged 6.86/10 on the same twenty skill-infused game briefs where Grok 4.6 averaged 5.63, winning 8 of the 11 head-to-heads
  • Best one-shots on this run: arcade (8.6), dragonrealm (8.6), flightsim (8.5), every one played on a real GPU before scoring
  • Longer reinforcement learning shows: it holds a 40-50KB single-file spec and wires the controls it advertises
  • xAI's own coding numbers moved: CursorBench 4.0 46.3% (from 40.4%) and DeepSWE v1.1 71.0% (from 65.2%)

Trade-offs

  • 2 of 20 builds died on load or never moved when played — crypt: hud is not a function; voxelcraft: mesh.computeBoundingSphere is not a function file:///Users/j
  • Independent Artificial Analysis Intelligence Index v4.3.2 puts it at 46, seven points behind Claude Fable 5.1 and GPT-6 at 53
  • Terminal-Bench 4.0 is the weak spot xAI reports itself: 38.0% at launch

Pricing & context — the spec sheet

Spec GLM-5.2 Grok 4.7
VendorZhipu / Z.aixAI
Context window1,000,000 tokens500,000 tokens
PriceOpen weights · free for individuals$2 in / $6 out per M tokens
Pricing detailOpen-weights release: weights downloadable from Hugging Face for self-hosting, or runnable for free on z.ai for individuals (commercial use has separate licensing).xAI's September 2026 release, priced exactly like Grok 4.6: $2 per million input tokens and $6 per million output on the standard tier, $4 / $12 on the Fast tier (double the output speed). OpenRouter lists the same model at $1.60 / $4.80.
Release2026-06-142026-09
Bench coverage47/47 scored · avg 7.77/1011/11 scored · avg 6.86/10

The verdict — which should you pick?

Across 11 scored shared tasks, GLM-5.2 averaged 7.86/10, beating Grok 4.7's 6.86/10 by 1.00 points. Pick GLM-5.2 when the build has to ship on the first prompt and you can afford the trade-offs in the comparison below.

If you only run one of these inside your stack, the head-to-head average above is the call. If you can run both, my honest play is to wire GLM-5.2 and Grok 4.7 both into the Agent Operating System and dispatch each from the kanban by task type — long-context agent loops — pasting a whole codebase into one prompt → GLM-5.2, one-shot arcade, driving and shooter builds where the whole game has to arrive in a single file → Grok 4.7. That's the same setup I run for the 4,000+ founders inside the AI Profit Boardroom.

FAQ — GLM-5.2 vs Grok 4.7

Which is better, GLM-5.2 or Grok 4.7?

On Goldie Bench, GLM-5.2 averages 7.86/10 across the shared tasks, with 5 gold, 0 silver, 0 bronze overall. Grok 4.7 averages 6.86/10, with 0 gold, 1 silver, 2 bronze. Grok 4.7 wins the head-to-head 6–5.

How much does GLM-5.2 cost vs Grok 4.7?

GLM-5.2: Open-weights release: weights downloadable from Hugging Face for self-hosting, or runnable for free on z.ai for individuals (commercial use has separate licensing). Grok 4.7: xAI's September 2026 release, priced exactly like Grok 4.6: $2 per million input tokens and $6 per million output on the standard tier, $4 / $12 on the Fast tier (double the output speed). OpenRouter lists the same model at $1.60 / $4.80.

What's the context window for GLM-5.2 vs Grok 4.7?

GLM-5.2 has a 1,000,000 tokens context window. Grok 4.7 has a 500,000 tokens context window.

When should I pick GLM-5.2 over Grok 4.7?

Pick GLM-5.2 for: Long-context agent loops — pasting a whole codebase into one prompt; Cinematic visual builds — landing pages, voxel scenes, synthwave runners; Anyone who needs to run a frontier coder locally for $0. The trade-off is the weaknesses we logged on the bench: Faceplanted on the {{SITE_NAME}} raycaster — the engine was great but it spawned the player inside a wall; First-shot reliability lags Opus by a hair on consistency.

When should I pick Grok 4.7 over GLM-5.2?

Pick Grok 4.7 for: One-shot arcade, driving and shooter builds where the whole game has to arrive in a single file; High-volume agent work priced at half what the other frontier models charge; Grok Build inside the Agent OS: pick 4.7 in the tab and everything it writes lands in the workspace. The trade-off is the weaknesses we logged on the bench: 2 of 20 builds died on load or never moved when played — crypt: hud is not a function; voxelcraft: mesh.computeBoundingSphere is not a function file:///Users/j; Independent Artificial Analysis Intelligence Index v4.3.2 puts it at 46, seven points behind Claude Fable 5.1 and GPT-6 at 53; Terminal-Bench 4.0 is the weak spot xAI reports itself: 38.0% at launch.

How does Goldie Bench score GLM-5.2 vs Grok 4.7?

Every demo on this page was built by Julian Goldie inside the Agent Operating System — same fixed prompt for both models, one shot, single HTML file out. Each result gets a 0–10 score on whether it ran, how close it hit the brief, and how good it looked. The highest score on each task gets gold; second gets silver; third gets bronze. See methodology for full provenance.

The same stack Julian uses

Run this stack yourself.

Every demo on this bench was built inside the Agent Operating System — one prompt, one shot, single HTML file out. The Agent OS, the prompts, the templates, the weekly walkthroughs and 4,000+ founders shipping with it every day all live inside the AI Profit Boardroom.

4,000+founders
258documented wins
38countries
$59/momonthly