# Hy4 flash vs GLM 5.4

Source: https://openrouter.ai/compare/tencent/hy4-flash/z-ai/glm-5.4

## Overview

| Attribute | Hy4 flash | GLM 5.4 |
| --- | --- | --- |
| Author | tencent | Z.ai |
| Reasoning | Yes | Yes |
| Input modalities | Text, Image | Text, Image, Video |
| Output modalities | Text | Text |
| Input price | $0.05/M tokens | $0.40/M tokens |
| Output price | $0.20/M tokens | $2.464/M tokens |
| Context window | 1,048,576 tokens | 1,048,576 tokens |
| Latency (p50) | 2.95 s | 0.58 s |
| Throughput (p50) | 19.0 tok/s | 132.0 tok/s |

## Hy4 flash or GLM 5.4: which should you choose?

### Choose Hy4 flash for:

- lower token prices

### Choose GLM 5.4 for:

- faster output (132.0 vs 19.0 tok/s)
- a quicker first token (0.58 s vs 2.95 s)

## Model pages

- [Hy4 flash](https://openrouter.ai/tencent/hy4-flash) ([llms.txt](https://openrouter.ai/tencent/hy4-flash/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))
