GLM-5.3 vs Grok 4.7
glm-5.3grok-4.7GLM-5.3 costs $0.976972 per 1M input tokens and $3.070483 per 1M output tokens, with a 1M-token context window; Grok 4.7 costs $0.198958 per 1M input tokens and $0.596874 per 1M output tokens, with a 500K-token context window.
Side by side
Prices in US dollars; limits and capabilities as published by each model’s provider.
| Spec | GLM-5.3 | Grok 4.7 |
|---|---|---|
| Input/ 1M tokens | $0.976972 | $0.198958 |
| Output/ 1M tokens | $3.070483 | $0.596874 |
| Cache read/ 1M tokens | $0.181438 | $0.04974 |
| Cache write/ 1M tokens | $0 | — |
| Discount | 30% off | 90% off |
| Contexttokens | 1M | 500K |
| Max outputtokens | 128K | — |
| Input types | text | text, image |
| Output types | text | text |
| Released | 2026-08-18 | — |
| Knowledge cutoff | — | 2026-05 |
| Tokens, last 7 daystokens | — | 14M |
| Endpoints | // | // |
Same workload
One workload of 1,000,000 input and 200,000 output tokens, priced at each model’s current rates.
- GLM-5.3
- $1.5911$0.977 input + $0.6141 output
- Grok 4.7
- $0.3183$0.199 input + $0.1194 output
For this workload, Grok 4.7 costs $1.2727 less than GLM-5.3.
Same code
Only the model field changes.
curl https://api.cheapaimodel.ai/v1/chat/completions \
-H "Authorization: Bearer $CHEAPAIMODEL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.3",
"messages": [{"role": "user", "content": "Hello!"}]
}'When to choose which
Differences in the published specs, then each provider’s own description.
- GLM-5.3 has the longer context window (1M vs 500K tokens).
- Grok 4.7 has the lower input price ($0.198958 vs $0.976972 per 1M tokens).
- Grok 4.7 has the lower output price ($0.596874 vs $3.070483 per 1M tokens).
- Grok 4.7 accepts image input; GLM-5.3 doesn’t.
About GLM-5.3
Z.ai's flagship GLM model for complex software engineering and agentic work. It keeps GLM-5.2's base model, with post-training gains in coding, long-horizon tasks and cybersecurity, and currently accepts text input only.
About Grok 4.7
xAI's most capable model, for coding, agentic tasks and knowledge work, released in September 2026 as the successor to Grok 4.6. It takes text and image input with a 500K-token context window and offers four reasoning effort levels, from low to xhigh.