Phi 4 vs GLM 5.3 FlashX Legal

Compare Phi 4 from Microsoft and GLM 5.3 FlashX Legal 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.

Favicon for microsoft
Phi 4
Favicon for z-ai
GLM 5.3 FlashX Legal

Overview

Phi 4
Author
Microsoft
GLM 5.3 FlashX Legal
Author
Z.ai
Phi 4
Context length
16Ktokens
GLM 5.3 FlashX Legal
Context length
1.05Mtokens
Phi 4
Reasoning
No
GLM 5.3 FlashX Legal
Reasoning
Yes
Phi 4
Input modalities
Text
GLM 5.3 FlashX Legal
Input modalities
Text, Image, Video
Phi 4
Output modalities
Text
GLM 5.3 FlashX Legal
Output modalities
Text

Analysis

Phi 4 vs GLM 5.3 FlashX Legal 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.

Phi 4
Input price
$0.07/M tokens
GLM 5.3 FlashX Legal
Input price
$0.37/M tokens
Phi 4
Output price
$0.14/M tokens
GLM 5.3 FlashX Legal
Output price
$1.25/M tokens
Phi 4
Context window
16,384 tokens
GLM 5.3 FlashX Legal
Context window
1,048,576 tokens
Phi 4
Openness Index Artificial Analysis, best published result
50.0
GLM 5.3 FlashX Legal
Openness Index Artificial Analysis, best published result
Not available
Phi 4
GPQA Diamond score Artificial Analysis, best published result
57.5%
GLM 5.3 FlashX Legal
GPQA Diamond score Artificial Analysis, best published result
Not available
Phi 4
Latency (p50)
0.98 s
GLM 5.3 FlashX Legal
Latency (p50)
0.86 s
Phi 4
Throughput (p50)
86.0 tok/s
GLM 5.3 FlashX Legal
Throughput (p50)
97.0 tok/s
Phi 4
Provided by
Microsoft
GLM 5.3 FlashX Legal
Provided by
Z.ai

Benchmark data updated

Frequently asked questions

Is Phi 4 cheaper than GLM 5.3 FlashX Legal?

Phi 4 is cheaper than GLM 5.3 FlashX Legal on OpenRouter: Phi 4 costs $0.07/M tokens input and $0.14/M tokens output, while GLM 5.3 FlashX Legal costs $0.37/M tokens input and $1.25/M tokens output.

Which has the longer context window, Phi 4 or GLM 5.3 FlashX Legal?

GLM 5.3 FlashX Legal has the longer context window at 1,048,576 tokens, compared with 16,384 tokens for Phi 4.

Which is faster, Phi 4 or GLM 5.3 FlashX Legal?

GLM 5.3 FlashX Legal is faster on OpenRouter, generating a median 97.0 tokens per second compared with 86.0 tokens per second for Phi 4.