GLM-5.4 vs Grok 4.7: 29% Cheaper at List, 2.9x on OpenLux
OpenLux TeamPublished
At list price GLM-5.4 is the cheaper model. Z.ai charges $1.40 per million input tokens and $4.40 per million output, against Grok 4.7's $2.00 and $6.00 on xAI's model page, both read on 3 December 2026. For a month of 100M input and 20M output tokens that is $228 against $320, so GLM-5.4 saves 29%. On OpenLux the direction reverses. In each model's cheapest group, the same month costs $68.40 on GLM-5.4 and $23.53 on Grok 4.7, so GLM-5.4 is 2.9 times the price. The useful question is therefore not which model is cheaper, but which of GLM-5.4's advantages, a 1M window and video and file input, your workload actually uses.
Both models are on OpenLux under one API key, with group prices on the glm-5.4 and grok-4.7 pages. Compiled by the OpenLux Team from public pages read on 3 December 2026.
Why the ranking flips on OpenLux
OpenLux bills base price times a group ratio, and the base prices read from the OpenLux pricing API at 12:30 Beijing time on 3 December equal both vendors' list prices: $1.40 / $4.40 / $0.26 cached for GLM-5.4 and $2.00 / $6.00 / $0.50 cached for Grok 4.7. The flip comes entirely from the ratios. GLM-5.4 is listed in Self-Deployed-1 (0.3), Self-Deployed-2 (0.5) and Self-Deployed-3 (0.75). Grok 4.7 is listed in Cli-Grok-1 (0.07353) and Cli-Grok-2 (0.10295). A ratio of 0.07353 takes Grok 4.7's output price from $6.00 to $0.44118 per million tokens; a ratio of 0.3 takes GLM-5.4's from $4.40 to $1.32. Group billing, and how it appears in the usage log, is explained in the OpenLux billing guide.
The groups are not interchangeable between the two models. GLM-5.4 is only in the three Self-Deployed groups and Grok 4.7 is only in the two Cli-Grok groups, so when you switch model names you also switch groups.
Two flagships with different shapes
GLM-5.4 is Zhipu's new flagship. Its API opened on 2 December, according to Zhipu's release notes, and the launch price story is in GLM-5.4 API Pricing. The Z.ai model page describes a Loop Transformer that reuses 28 layers of the GLM-5 base twice, at what it calls "the 750B scale", with intelligence "comparable to 2T-3T parameter models". It has a 1M context, a 128K output cap and takes video, image, text and file input. Thinking cannot be switched off: thinking.type only accepts enabled.
Grok 4.7 is older and narrower. Artificial Analysis lists its release as 21 September 2026. xAI's page gives a 500,000-token context, text and image input, and four reasoning levels, low, medium, high and xhigh, with high as the default. Both models accept OpenAI-format and Anthropic-format requests on OpenLux.
Only one of them has an independent score
Artificial Analysis scores Grok 4.7 at 35.4 on its Intelligence Index v5.0.2 at xhigh and 35.2 at the default high. The two settings are 0.19 points apart, but an index task costs $7.77 at xhigh against $6.18 at high, 26% more, and takes 20.8 minutes against 17.0. On single tests at xhigh it scores 65.6 on AutomationBench, 24.2 on Terminal-Bench 4.1 and 76.7 on AA-LCR, and its AA-Omniscience hallucination rate is 20.0%.
GLM-5.4 has no Artificial Analysis page yet; the URL returned 404 when we checked at 12:32 Beijing time. The closest independent figure is its predecessor. GLM-5.3 at Max effort scores 31.6, 3.8 points below Grok 4.7, with 40.9 on Terminal-Bench 4.1 and a 38.9% hallucination rate. That is GLM-5.3, not GLM-5.4. A closer look at what changed between the two is in GLM-5.4 vs GLM-5.3. Until AA publishes GLM-5.4, any claim that it beats or trails Grok 4.7 overall rests on Z.ai's own charts.
The monthly bill side by side
Here is the same 100M input and 20M output month, with no cache hits, at list price and in every OpenLux group each model is listed in.
| Option | Input / Output per 1M | Monthly cost |
|---|---|---|
| GLM-5.4, Z.ai list | $1.40 / $4.40 | $228.00 |
| GLM-5.4, OpenLux Self-Deployed-1 (0.3) | $0.42 / $1.32 | $68.40 |
| GLM-5.4, OpenLux Self-Deployed-2 (0.5) | $0.70 / $2.20 | $114.00 |
| GLM-5.4, OpenLux Self-Deployed-3 (0.75) | $1.05 / $3.30 | $171.00 |
| Grok 4.7, xAI list (prompt under 200K) | $2.00 / $6.00 | $320.00 |
| Grok 4.7, OpenLux Cli-Grok-1 (0.07353) | $0.14706 / $0.44118 | $23.53 |
| Grok 4.7, OpenLux Cli-Grok-2 (0.10295) | $0.2059 / $0.6177 | $32.94 |
The pricing page describes Self-Deployed-1 as "Attractive discount, suitable for general Q&A", Self-Deployed-2 as "Moderate price with good availability" and Self-Deployed-3 as "Higher price". Cli-Grok-1 is "attractive discount. Stable instruction following" and Cli-Grok-2 is "higher quota. Better decomposition for complex tasks". The OpenLux rows are the 3 December API reading; /pricing has the current figures.
Cached input follows the same pattern. GLM-5.4's cache rate is $0.078 per million in Self-Deployed-1; Grok 4.7's is $0.036765 in Cli-Grok-1. Agent loops resend most of their context, so assume 80M of the 100M input tokens are cache hits. At list price GLM-5.4 then costs $136.80 (28 + 20.80 + 88) and Grok 4.7 $200.00 (40 + 40 + 120), so GLM-5.4's saving widens to 32%, helped by a cache rate that is 18.6% of its input price against Grok's 25%. Z.ai also marks cache storage as "Limited-time Free". On OpenLux the same cached month is $41.04 for GLM-5.4 in Self-Deployed-1 and $14.71 for Grok 4.7 in Cli-Grok-1, a 2.8x gap. Caching changes the totals, not the order.
The 200K step on Grok 4.7
Grok 4.7 has a price step that GLM-5.4 does not. xAI's page says "Requests whose prompt reaches 200k tokens are billed at the higher rate for all tokens in the request", and that rate is $4.00 input, $1.00 cached and $12.00 output. At list price a request with a 199,000-token prompt and 10,000 output tokens costs $0.458; at 200,000 tokens it costs $0.92, double, for one more thousand tokens. A 300,000-token prompt with the same output costs $1.32 on Grok 4.7 and $0.464 on GLM-5.4, a 2.8x gap in GLM's favour.
OpenLux's pricing data carries the same 2x step for Grok 4.7 between 200,000 and 500,000 tokens. Even at the doubled rate, Grok 4.7 in Cli-Grok-1 works out to $0.29412 input and $0.88236 output per million. GLM-5.4 in Self-Deployed-1 is $0.42 and $1.32, so Grok 4.7 stays cheaper. So on OpenLux the step makes Grok less cheap, not more expensive than GLM. Above 500,000 tokens there is nothing to compare: Grok 4.7 cannot take the request.
Where GLM-5.4 is the right call
Choose GLM-5.4 when the input does not fit Grok 4.7. Prompts between 500,000 and 1M tokens, whole repositories, long contract sets, multi-day agent transcripts, have only one option here. So do video and file inputs, which Z.ai lists and xAI does not. Its 128K output cap also suits long generated artifacts. Z.ai's own text claims shorter outputs from the loop design, "average output length drops by 10–14%" on benchmarks such as GPQA-Diamond, though that was measured on a 30B test model, not on GLM-5.4 itself. For a wider cost picture against another frontier model, see Claude Opus 5.5 vs GLM-5.4.
Where Grok 4.7 is the right call
Choose Grok 4.7 for text and image work under 500,000 tokens, which covers most coding assistants, chat and document Q&A. It has the independent numbers GLM-5.4 still lacks, a 65.6 on AutomationBench among them, and on OpenLux it is the cheaper model by 2.9x in the cheapest groups and 5.2x between the most expensive ones ($171.00 against $32.94). It also gives you an effort dial: at low AA measures 31.1 points at $2.92 per task in 8.5 minutes, so the cost per task can be more than halved for simpler jobs. For how its price compares with a frontier closed model, see Gemini 4 Carbon vs Grok 4.7, written in Korean.
The thinking setting that can surprise both
Both models think by default and both bill thinking as output. GLM-5.4 cannot turn it off, Z.ai recommends reasoning_effort: max, and its page warns that the model "tends to get caught in overly long 'marathon thinking' loops". Set an output limit and watch output tokens per call in your first week. Grok 4.7 defaults to high, and AA's numbers show xhigh buying 0.19 points for 26% more per task. On both, the effort level moves the bill more than the choice between two groups does.
Two questions readers ask
Can I send PDFs or video to Grok 4.7? Not according to xAI's model page, which lists text and image input only. Convert documents to text first, or send those jobs to GLM-5.4, whose Z.ai page lists video, image, text and file input.
Do I need different client code for the two? No. On OpenLux both models accept OpenAI-format and Anthropic-format requests, so the same client works for either; only the model name and the group change.
How to choose
Start from your largest prompt and your input types. If any request goes past 500,000 tokens or carries video or files, use GLM-5.4. If not, start with Grok 4.7 in Cli-Grok-1 at high, run 50 of your own tasks, then run the same 50 on GLM-5.4 in Self-Deployed-1 and compare cost per passed task. Switch only if GLM-5.4 passes enough extra tasks to cover a 2.9x higher token bill. Also check Artificial Analysis for a GLM-5.4 entry again before committing: once it shows an index score and a cost per task, set them against Grok 4.7's 35.2 at $6.18 per task. On OpenLux both sit behind the same base URL, so the test is a model-name change.
OpenLux Team