Key Takeaways
GLM 5 wins:
- Cheaper input tokens
- Cheaper output tokens
- Better at coding
GPT-5 Codex wins:
- Larger context window
- Faster response time
- Higher intelligence benchmark
- Better at math
- Supports vision
- Supports tool calls
Price Advantage
GLM 5
Benchmark Advantage
GPT-5 Codex
Context Window
GPT-5 Codex
Speed
GPT-5 Codex
Pricing Comparison
Price Comparison
| Metric | GLM 5 | GPT-5 Codex | Winner |
|---|---|---|---|
| Input (per 1M tokens) | $0.95 | $1.25 | GLM 5 |
| Output (per 1M tokens) | $2.55 | $10.00 | GLM 5 |
| Cache Read (per 1M) | $0.20 | $0.13 | GPT-5 Codex |
Using a 3:1 input/output ratio, GLM 5 is 61% cheaper overall.
GLM 5 Providers
AtlasCloud $0.95 (Cheapest)
SiliconFlow $0.95 (Cheapest)
Parasail $1.00
Z.AI $1.00
Friendli $1.00
GPT-5 Codex Providers
OpenAI $1.25 (Cheapest)
Benchmark Comparison
6
Benchmarks Compared
0
GLM 5 Wins
2
GPT-5 Codex Wins
Benchmark Scores
| Benchmark | GLM 5 | GPT-5 Codex | Winner |
|---|---|---|---|
Intelligence Index Overall intelligence score | 40.6 | 44.6 | |
Coding Index Code generation & understanding | 39.0 | 38.9 | - |
Math Index Mathematical reasoning | - | 98.7 | - |
MMLU Pro Academic knowledge | - | 86.5 | - |
GPQA Graduate-level science | 66.6 | 83.7 | |
LiveCodeBench Competitive programming | - | 84.0 | - |
GPT-5 Codex shows stronger mathematical reasoning abilities.
Cost vs Quality
X-axis:
Y-axis:
Loading chart...
Other models
Context & Performance
Context Window
GLM 5
204,800
tokens
Max output: 131,072 tokens
GPT-5 Codex
400,000
tokens
Max output: 128,000 tokens
GPT-5 Codex has a 49% larger context window.
Speed Performance
| Metric | GLM 5 | GPT-5 Codex | Winner |
|---|---|---|---|
| Tokens/second | 46.0 tok/s | 308.6 tok/s | |
| Time to First Token | 3.48s | 12.67s |
GPT-5 Codex responds 571% faster on average.
Capabilities
Feature Comparison
| Feature | GLM 5 | GPT-5 Codex |
|---|---|---|
| Vision (Image Input) | ||
| Tool/Function Calls | ||
| Reasoning Mode | ||
| Audio Input | ||
| Audio Output | ||
| PDF Input | ||
| Prompt Caching | ||
| Web Search |
License & Release
| Property | GLM 5 | GPT-5 Codex |
|---|---|---|
| License | Proprietary | Proprietary |
| Author | Z-ai | OpenAI |
| Released | Feb 2026 | Sep 2025 |
GLM 5 Modalities
Input
text
Output
text
GPT-5 Codex Modalities
Input
textimage
Output
text
