Skip to content
llmmodels

GLM-5 vs GPT OSS 20B

GLM-5 wins 4 of 4 benchmarks both models report and has a higher Epoch Capabilities Index (146.5 vs 134.9). GPT OSS 20B is about 9× cheaper on a blended (3:1 input:output) token price. GLM-5 has the larger context window (200K vs 128K).

SpecGLM-5GPT OSS 20B
ProviderZhipu AI (Z.ai)OpenAI
ReleasedFeb 12, 2026 (better)Aug 5, 2025
TypeReasoning LLMReasoning LLM
Parameters754B21B
Context window200K (better)128K
Max output128K (better)64K
Input price / 1M$0.598$0.075 (better)
Output price / 1M$2.69$0.3 (better)
Input modalitiestexttext
Open weightsYesYes
Licensemitapache-2.0
Reasoning modeYesYes
Tool callingYesYes
API providers4144 (better)
Epoch Capabilities Index146.5 (better)134.9
GPQA Diamond87.8% (better)60.8%
SWE-bench Verified72.1%—
Terminal-Bench52.4% (better)3.4%
WebDev Arena1436—
OTIS Mock AIME80.0% (better)65.3%
ARC-AGI-24.9%—

Cost example

For a workload of 10M input + 2M output tokens per month: GLM-5 costs $11.35 and GPT OSS 20B costs $1.35 at list price (Zhipu AI (Z.ai) / openrouter pricing).

About GLM-5

GLM-5 is an open-weight reasoning llm from Zhipu AI (Z.ai), released Feb 12, 2026. It has 754B parameters and a 200K-token context window. API pricing starts at $0.598 per million input tokens and $2.69 per million output tokens. It is available from 41 API providers. It scores 146.5 on the Epoch Capabilities Index. Full GLM-5 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 or GPT OSS 20B?

GLM-5 wins 4 of 4 benchmarks both models report and has a higher Epoch Capabilities Index (146.5 vs 134.9). GPT OSS 20B is about 9× cheaper on a blended (3:1 input:output) token price. GLM-5 has the larger context window (200K vs 128K).

Is GLM-5 cheaper than GPT OSS 20B?

GLM-5 costs $0.598 input / $2.69 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: 204,800 tokens. GPT OSS 20B: 131,072 tokens.

Are GLM-5 and GPT OSS 20B open source?

GLM-5 is open-weight; GPT OSS 20B is open-weight.