GLM-5.1 vs gpt-oss-20b
Benchmarks, API pricing and specs, head to head. Data updated 2026-06-10.
GLM-5.1
Z.ai (Zhipu) · Apr 2026
The April 2026 GLM refresh — the first open-weights model to take #1 on SWE-bench Pro, edging out Claude Opus 4.6.
gpt-oss-20b
OpenAI · Aug 2025
The small gpt-oss variant that runs on a 16GB consumer GPU or laptop — local reasoning for everyone, Apache 2.0 licensed.
The verdict
These two models don't yet share verified results on the benchmarks we track, so judge them on specs, pricing and intended use. On price the gap is dramatic: gpt-oss-20b works out roughly 25x cheaper per blended million tokens. GLM-5.1 also takes 200K of context versus 131K for gpt-oss-20b.
Specs & pricing
| GLM-5.1 | gpt-oss-20b | |
|---|---|---|
| modhub Index | — | — |
| Input price / 1M | $1.4 | $0.05 |
| Output price / 1M | $4.4 | $0.2 |
| Context window | 200K | 131K |
| Max output | 128K | 131K |
| Open weights | yes (MIT) | yes (Apache 2.0) |
| Reasoning model | yes | yes |
| Multimodal input | text | text |
| Knowledge cutoff | Feb 2026 | Jun 2024 |
| Released | Apr 2026 | Aug 2025 |
| Example monthly cost* | $20.60 | $0.8 |
* 10M input + 1.5M output tokens per month at list prices, no caching. Green = better value on that row.
Frequently asked questions
- Which is better, GLM-5.1 or gpt-oss-20b?
- These two models don't yet share verified results on the benchmarks we track, so judge them on specs, pricing and intended use. On price the gap is dramatic: gpt-oss-20b works out roughly 25x cheaper per blended million tokens. GLM-5.1 also takes 200K of context versus 131K for gpt-oss-20b.
- Which is cheaper, GLM-5.1 or gpt-oss-20b?
- GLM-5.1 costs $1.4/$4.4 per million input/output tokens, while gpt-oss-20b costs $0.05/$0.2. For a typical workload of 10M input and 1.5M output tokens per month, that's $20.60 versus $0.8.
- Which model is better for coding, GLM-5.1 or gpt-oss-20b?
- We don't yet track SWE-bench Verified results for both models; check their individual pages for coding-related scores.