# Phi 4 vs GLM 5.3 FlashX Legal

Source: https://openrouter.ai/compare/microsoft/phi-4/z-ai/glm-5.3-flashx-legal

## Overview

| Attribute | Phi 4 | GLM 5.3 FlashX Legal |
| --- | --- | --- |
| Author | Microsoft | Z.ai |
| Reasoning | No | Yes |
| Input modalities | Text | Text, Image, Video |
| Output modalities | Text | Text |
| Input price | $0.07/M tokens | $0.37/M tokens |
| Output price | $0.14/M tokens | $1.25/M tokens |
| Context window | 16,384 tokens | 1,048,576 tokens |
| Openness Index | 50.0 | Not available |
| GPQA Diamond score | 57.5% | Not available |
| Latency (p50) | 1.04 s | 1.35 s |
| Throughput (p50) | 84.0 tok/s | 76.0 tok/s |

## Phi 4 or GLM 5.3 FlashX Legal: which should you choose?

### Choose Phi 4 for:

- faster output (84.0 vs 76.0 tok/s)
- a quicker first token (1.04 s vs 1.35 s)
- lower token prices

### Choose GLM 5.3 FlashX Legal for:

- a longer context window (1,048,576 vs 16,384 tokens)

## Model pages

- [Phi 4](https://openrouter.ai/microsoft/phi-4) ([llms.txt](https://openrouter.ai/microsoft/phi-4/llms.txt))
- [GLM 5.3 FlashX Legal](https://openrouter.ai/z-ai/glm-5.3-flashx-legal) ([llms.txt](https://openrouter.ai/z-ai/glm-5.3-flashx-legal/llms.txt))
