# Grok 4.7 vs GLM 5.4

Source: https://openrouter.ai/compare/x-ai/grok-4.7/z-ai/glm-5.4

## Overview

| Attribute | Grok 4.7 | GLM 5.4 |
| --- | --- | --- |
| Author | SpaceXSI | Z.ai |
| Reasoning | Yes | Yes |
| Input modalities | Text, Image, File | Text, Image, Video |
| Output modalities | Text | Text |
| Input price | $2/M tokens | $0.40/M tokens |
| Output price | $6/M tokens | $2.464/M tokens |
| Context window | 500,000 tokens | 1,048,576 tokens |
| Intelligence Index | 35.4 | Not available |
| Finance & Accounting Index | 51.7 | Not available |
| Strategy & Ops Index | 54.8 | Not available |
| Legal Index | 47.2 | Not available |
| Healthcare & Medical Index | 46.6 | Not available |
| Engineering Index | 41.7 | Not available |
| Economics Index | 45.7 | Not available |
| Cyber Index | 56.4 (0.0% of tasks refused) | Not available |
| FrontierCode-AA 2.0 | 28.9% | Not available |
| Latency (p50) | 60.44 s | 1.09 s |
| Throughput (p50) | 9.5 tok/s | 113.0 tok/s |

## Grok 4.7 or GLM 5.4: which should you choose?

### Choose GLM 5.4 for:

- a longer context window (1,048,576 vs 500,000 tokens)
- faster output (113.0 vs 9.5 tok/s)
- a quicker first token (1.09 s vs 60.44 s)

## Benchmark differences

| Benchmark | Grok 4.7 | GLM 5.4 | Difference |
| --- | --- | --- | --- |
| Intelligence Index | 35.4 | Not available | Not available |
| Finance & Accounting Index | 51.7 | Not available | Not available |
| Strategy & Ops Index | 54.8 | Not available | Not available |
| Legal Index | 47.2 | Not available | Not available |
| Healthcare & Medical Index | 46.6 | Not available | Not available |
| Engineering Index | 41.7 | Not available | Not available |
| Economics Index | 45.7 | Not available | Not available |
| Cyber Index | 56.4 (0.0% of tasks refused) | Not available | Not available |
| FrontierCode-AA 2.0 | 28.9% | Not available | Not available |

## Model pages

- [Grok 4.7](https://openrouter.ai/x-ai/grok-4.7) ([llms.txt](https://openrouter.ai/x-ai/grok-4.7/llms.txt))
- [GLM 5.4](https://openrouter.ai/z-ai/glm-5.4) ([llms.txt](https://openrouter.ai/z-ai/glm-5.4/llms.txt))
