Grok 4.7 vs GLM 5.4

Compare Grok 4.7 from SpaceXSI and GLM 5.4 from Z.ai on key metrics including benchmarks, price, context length, and other model features. Access both models and hundreds of others through the OpenRouter API.

Grok 4.7
Favicon for z-ai
GLM 5.4

Overview

Grok 4.7
Author
SpaceXSI
GLM 5.4
Author
Z.ai
Grok 4.7
Context length
500Ktokens
GLM 5.4
Context length
1.05Mtokens
Grok 4.7
Reasoning
Yes
GLM 5.4
Reasoning
Yes
Grok 4.7
Input modalities
Text, Image, File
GLM 5.4
Input modalities
Text, Image, Video
Grok 4.7
Output modalities
Text
GLM 5.4
Output modalities
Text

Analysis

Grok 4.7 vs GLM 5.4 at a glance

Index and benchmark scores are from Artificial Analysis. Each score is the model's best published result across the configurations Artificial Analysis evaluated.

Grok 4.7
Input price
$2/M tokens
GLM 5.4
Input price
$0.40/M tokens
Grok 4.7
Output price
$6/M tokens
GLM 5.4
Output price
$2.464/M tokens
Grok 4.7
Context window
500,000 tokens
GLM 5.4
Context window
1,048,576 tokens
Grok 4.7
Intelligence Index Artificial Analysis, best published result
35.4
GLM 5.4
Intelligence Index Artificial Analysis, best published result
Not available
Grok 4.7
Finance & Accounting Index Artificial Analysis, best published result
51.7
GLM 5.4
Finance & Accounting Index Artificial Analysis, best published result
Not available
Grok 4.7
Strategy & Ops Index Artificial Analysis, best published result
54.8
GLM 5.4
Strategy & Ops Index Artificial Analysis, best published result
Not available
Grok 4.7
Legal Index Artificial Analysis, best published result
47.2
GLM 5.4
Legal Index Artificial Analysis, best published result
Not available
Grok 4.7
Healthcare & Medical Index Artificial Analysis, best published result
46.6
GLM 5.4
Healthcare & Medical Index Artificial Analysis, best published result
Not available
Grok 4.7
Engineering Index Artificial Analysis, best published result
41.7
GLM 5.4
Engineering Index Artificial Analysis, best published result
Not available
Grok 4.7
Economics Index Artificial Analysis, best published result
45.7
GLM 5.4
Economics Index Artificial Analysis, best published result
Not available
Grok 4.7
Cyber Index Artificial Analysis, best published result
56.40.0% of tasks refused
GLM 5.4
Cyber Index Artificial Analysis, best published result
Not available
Grok 4.7
FrontierCode-AA 2.0 Artificial Analysis, best published result
28.9%
GLM 5.4
FrontierCode-AA 2.0 Artificial Analysis, best published result
Not available
Grok 4.7
Latency (p50)
56.47 s
GLM 5.4
Latency (p50)
0.58 s
Grok 4.7
Throughput (p50)
17.0 tok/s
GLM 5.4
Throughput (p50)
132.0 tok/s
Grok 4.7
Provided by
SpaceXSI
GLM 5.4
Provided by
Z.ai

Benchmark data updated

Frequently asked questions

Which has the longer context window, Grok 4.7 or GLM 5.4?

GLM 5.4 has the longer context window at 1,048,576 tokens, compared with 500,000 tokens for Grok 4.7.

Which is faster, Grok 4.7 or GLM 5.4?

GLM 5.4 is faster on OpenRouter, generating a median 132.0 tokens per second compared with 17.0 tokens per second for Grok 4.7.