Model comparison
GLM-4.7 vs GPT-5
- Input
- $1.40 / 1M tokens
- Output
- $2.20 / 1M tokens
- Context
- 200K
- Released
- 2025-12-22
- Input
- $1.25 / 1M tokens
- Output
- $10.00 / 1M tokens
- Context
- 400K
- Released
- 2025-08-07
GLM-4.7 and GPT-5 split the 2 benchmarks both report evenly; GPT-5 is cheaper on input tokens ($1.3 vs $1.4 per 1M, 1.1×); GPT-5 has the larger context window (400K vs 200K); GLM-4.7 ships open weights while GPT-5 is API-only.
Specs and pricing side by side
| Spec | GLM-4.7 | GPT-5 |
|---|---|---|
| Maker | Z.ai (Zhipu / GLM) | OpenAI |
| Released | 2025-12-22 | 2025-08-07 |
| Context window | 200K | 400K |
| Max output | 128K | 128Ksame |
| Input price | $1.40 / 1M tokens | $1.25 / 1M tokens |
| Output price | $2.20 / 1M tokens | $10.00 / 1M tokens |
| Parameters | 355B total / 32B active (MoE) | Not disclosed |
| License | MIT | Proprietary |
| Weights | Open weights | API only |
| Modalities | Text | Text, Vision |
| Knowledge cutoff | not published | September 30, 2024 |
Benchmarks both models report
| Benchmark | GLM-4.7 | GPT-5 |
|---|---|---|
| SWE-bench Verified | 73.8% | 74.9% |
| AIME 2025 | 95.7% | 94.6% |
Scores are as published by each maker or its cited source; harness, reasoning effort and date can differ between rows, so treat small gaps as ties. Sources are listed on each model page.
Which one should you pick?
Pick GLM-4.7 if…
- You care about AIME 2025 (it scores higher on 1 shared benchmark).
- You want to self-host or fine-tune (open weights, MIT).
- Your use case is: autonomous and semi-autonomous coding agents that resolve real GitHub issues across multiple files.
Pick GPT-5 if…
- You care about SWE-bench Verified (it scores higher on 1 shared benchmark).
- Cost matters: input tokens cost 1.1× less ($1.3 vs $1.4 per 1M).
- You need the longer context (400K vs 200K).
- You need Vision input, which GLM-4.7 lacks.
- Your use case is: agentic coding: multi-step bug fixing, refactoring, and pull-request-scale changes across a repository.
FAQ
Which is better, GLM-4.7 or GPT-5?
GLM-4.7 and GPT-5 split the 2 benchmarks both report evenly; GPT-5 is cheaper on input tokens ($1.3 vs $1.4 per 1M, 1.1×); GPT-5 has the larger context window (400K vs 200K); GLM-4.7 ships open weights while GPT-5 is API-only. The better pick depends on whether you value benchmark scores, price per token, context length or openness for your workload.
How much cheaper is GPT-5?
GLM-4.7: $1.40 / 1M tokens input, $2.20 / 1M tokens output. GPT-5: $1.25 / 1M tokens input, $10.00 / 1M tokens output (list API prices as published by each maker).
What are the context windows of GLM-4.7 and GPT-5?
GLM-4.7 offers 200K with up to 128K output; GPT-5 offers 400K with up to 128K output.
Is GLM-4.7 newer than GPT-5?
GLM-4.7 was released 2025-12-22; GPT-5 was released 2025-08-07.
