token.app › Compare › GPT-5.1-Codex-Mini vs GLM 5.2
GPT-5.1-Codex-Mini vs GLM 5.2
GLM 5.2 is 1.8× cheaper per token on a blended 3:1 basis. GLM 5.2 accepts the larger context window (1.0M).
Head to head
Blended price uses a 3:1 input:output mix
| GPT-5.1-Codex-Mini | GLM 5.2 | |
|---|---|---|
| Provider | OpenAI | Zhipu AI |
| Input $/1M | $0.250 | $0.252 |
| Output $/1M | $2.00 | $0.792 |
| Blended $/1M | $0.688 | $0.387 |
| Context window | 400K | 1.0M |
| Max output | 128K | 128K |
| Released | Nov 2025 | Jun 2026 |
| Licence | Proprietary | Open weights |
Choose GPT-5.1-Codex-Mini if…
- No clear advantage on the data we hold.
Choose GLM 5.2 if…
- Costs less per token — $0.387 vs $0.688 blended
- Larger context window (1.0M)
- Open weights — self-hostable
- Newer model (released Jun 2026)
FAQ
Which is better, GPT-5.1-Codex-Mini or GLM 5.2?
We do not hold independently-run benchmark scores covering both GPT-5.1-Codex-Mini and GLM 5.2, so we make no quality claim. Their pricing and specifications are compared on this page.
Is GPT-5.1-Codex-Mini cheaper than GLM 5.2?
GLM 5.2 is cheaper: $0.387 versus $0.688 per million tokens blended at 3:1 input:output. Input alone: $0.250 vs $0.252. Output alone: $2.00 vs $0.792.
What context windows do GPT-5.1-Codex-Mini and GLM 5.2 have?
GPT-5.1-Codex-Mini: 400,000 tokens. GLM 5.2: 1,048,576 tokens.
Who makes GPT-5.1-Codex-Mini and GLM 5.2?
GPT-5.1-Codex-Mini is made by OpenAI. GLM 5.2 is made by Zhipu AI.
Related comparisons