GLM-5.2 vs GPT OSS 20B
GLM-5.2 wins 3 of 3 benchmarks both models report and has a higher Epoch Capabilities Index (153.1 vs 134.9). GPT OSS 20B is about 15× cheaper on a blended (3:1 input:output) token price. GLM-5.2 has the larger context window (1M vs 128K).
| Spec | GLM-5.2 | GPT OSS 20B |
|---|---|---|
| Provider | Zhipu AI (Z.ai) | OpenAI |
| Released | Jun 13, 2026 (better) | Aug 5, 2025 |
| Type | Reasoning LLM | Reasoning LLM |
| Parameters | 753B | 21B |
| Context window | 1M (better) | 128K |
| Max output | 128K (better) | 64K |
| Input price / 1M | $1.20 | $0.075 (better) |
| Output price / 1M | $4.18 | $0.3 (better) |
| Input modalities | text | text |
| Open weights | Yes | Yes |
| License | mit | apache-2.0 |
| Reasoning mode | Yes | Yes |
| Tool calling | Yes | Yes |
| API providers | 95 (better) | 44 |
| Epoch Capabilities Index | 153.1 (better) | 134.9 |
| GPQA Diamond | 91.9% (better) | 60.8% |
| SWE-bench Verified | 78.7% | — |
| Terminal-Bench | — | 3.4% |
| WebDev Arena | 1593 | — |
| OTIS Mock AIME | 86.4% (better) | 65.3% |
| FrontierMath | 59.2% | — |
| ARC-AGI-2 | 22.8% | — |
| SimpleQA Verified | 34.2% | — |
Cost example
For a workload of 10M input + 2M output tokens per month: GLM-5.2 costs $20.32 and GPT OSS 20B costs $1.35 at list price (Zhipu AI (Z.ai) / openrouter pricing).
About GLM-5.2
GLM-5.2 is an open-weight reasoning llm from Zhipu AI (Z.ai), released Jun 13, 2026. It has 753B parameters and a 1M-token context window. API pricing starts at $1.20 per million input tokens and $4.18 per million output tokens. It is available from 95 API providers. It scores 153.1 on the Epoch Capabilities Index. Full GLM-5.2 specs →
About GPT OSS 20B
GPT OSS 20B is an open-weight reasoning llm from OpenAI, released Aug 5, 2025. It has 21B parameters and a 128K-token context window. API pricing starts at $0.075 per million input tokens and $0.3 per million output tokens. It is available from 44 API providers. It scores 134.9 on the Epoch Capabilities Index. Full GPT OSS 20B specs →
Compare other models
FAQ
Which is better, GLM-5.2 or GPT OSS 20B?
GLM-5.2 wins 3 of 3 benchmarks both models report and has a higher Epoch Capabilities Index (153.1 vs 134.9). GPT OSS 20B is about 15× cheaper on a blended (3:1 input:output) token price. GLM-5.2 has the larger context window (1M vs 128K).
Is GLM-5.2 cheaper than GPT OSS 20B?
GLM-5.2 costs $1.20 input / $4.18 output per 1M tokens; GPT OSS 20B costs $0.075 / $0.3. GPT OSS 20B is cheaper overall.
Which has a bigger context window?
GLM-5.2: 1,000,000 tokens. GPT OSS 20B: 131,072 tokens.
Are GLM-5.2 and GPT OSS 20B open source?
GLM-5.2 is open-weight; GPT OSS 20B is open-weight.