Skip to content
llmmodels

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).

SpecGLM-5.1GPT OSS 20B
ProviderZhipu AI (Z.ai)OpenAI
ReleasedApr 7, 2026 (better)Aug 5, 2025
TypeReasoning LLMReasoning LLM
Parameters754B21B
Context window200K (better)128K
Max output128K (better)64K
Input price / 1M$0.896$0.075 (better)
Output price / 1M$3.59$0.3 (better)
Input modalitiestexttext
Open weightsYesYes
Licensemitapache-2.0
Reasoning modeYesYes
Tool callingYesYes
API providers48 (better)44
Epoch Capabilities Index150.7 (better)134.9
GPQA Diamond89.9% (better)60.8%
SWE-bench Verified74.2%—
Terminal-Bench—3.4%
WebDev Arena1508—
OTIS Mock AIME93.3% (better)65.3%
FrontierMath36.8%—
SimpleQA Verified34.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.