GLM-5.1 vs GPT OSS 20B
GLM-5.1 wins 3 of 3 benchmarks both models report and has a higher Epoch Capabilities Index (150.7 vs 134.9). GPT OSS 20B is about 12× cheaper on a blended (3:1 input:output) token price. GLM-5.1 has the larger context window (200K vs 128K).
| Spec | GLM-5.1 | GPT OSS 20B |
|---|---|---|
| Provider | Zhipu AI (Z.ai) | OpenAI |
| Released | Apr 7, 2026 (better) | Aug 5, 2025 |
| Type | Reasoning LLM | Reasoning LLM |
| Parameters | 754B | 21B |
| Context window | 200K (better) | 128K |
| Max output | 128K (better) | 64K |
| Input price / 1M | $0.896 | $0.075 (better) |
| Output price / 1M | $3.59 | $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 | 48 (better) | 44 |
| Epoch Capabilities Index | 150.7 (better) | 134.9 |
| GPQA Diamond | 89.9% (better) | 60.8% |
| SWE-bench Verified | 74.2% | — |
| Terminal-Bench | — | 3.4% |
| WebDev Arena | 1508 | — |
| OTIS Mock AIME | 93.3% (better) | 65.3% |
| FrontierMath | 36.8% | — |
| SimpleQA Verified | 34.0% | — |
Cost example
For a workload of 10M input + 2M output tokens per month: GLM-5.1 costs $16.13 and GPT OSS 20B costs $1.35 at list price (Zhipu AI (Z.ai) / openrouter pricing).
About GLM-5.1
GLM-5.1 is an open-weight reasoning llm from Zhipu AI (Z.ai), released Apr 7, 2026. It has 754B parameters and a 200K-token context window. API pricing starts at $0.896 per million input tokens and $3.59 per million output tokens. It is available from 48 API providers. It scores 150.7 on the Epoch Capabilities Index. Full GLM-5.1 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.1 or GPT OSS 20B?
GLM-5.1 wins 3 of 3 benchmarks both models report and has a higher Epoch Capabilities Index (150.7 vs 134.9). GPT OSS 20B is about 12× cheaper on a blended (3:1 input:output) token price. GLM-5.1 has the larger context window (200K vs 128K).
Is GLM-5.1 cheaper than GPT OSS 20B?
GLM-5.1 costs $0.896 input / $3.59 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.1: 200,000 tokens. GPT OSS 20B: 131,072 tokens.
Are GLM-5.1 and GPT OSS 20B open source?
GLM-5.1 is open-weight; GPT OSS 20B is open-weight.