Skip to content
llmmodels

Gemma 4 31B IT vs GLM-5

GLM-5 wins 4 of 4 benchmarks both models report and has a higher Epoch Capabilities Index (146.5 vs 144.1). Gemma 4 31B IT is slightly cheaper on a blended (3:1 input:output) token price. Gemma 4 31B IT has the larger context window (256K vs 200K).

SpecGemma 4 31B ITGLM-5
ProviderGoogle DeepMindZhipu AI (Z.ai)
ReleasedApr 2, 2026 (better)Feb 12, 2026
TypeReasoning LLMReasoning LLM
Parameters31B754B
Context window256K (better)200K
Max output32K128K (better)
Input price / 1MFree (better)$0.598
Output price / 1MFree (better)$2.69
Input modalitiestext, image, video (better)text
Open weightsYesYes
Licenseapache-2.0mit
Reasoning modeYesYes
Tool callingYesYes
API providers51 (better)41
Epoch Capabilities Index144.1146.5 (better)
GPQA Diamond75.8%87.8% (better)
SWE-bench Verified—72.1%
Terminal-Bench—52.4%
WebDev Arena13641436 (better)
OTIS Mock AIME73.3%80.0% (better)
ARC-AGI-2—4.9%
SimpleQA Verified10.4%—

Cost example

For a workload of 10M input + 2M output tokens per month: Gemma 4 31B IT costs $0.00 and GLM-5 costs $11.35 at list price (Google DeepMind / zhipuai pricing).

About Gemma 4 31B IT

Gemma 4 31B IT is an open-weight reasoning llm from Google DeepMind, released Apr 2, 2026. It has 31B parameters, a 256K-token context window and accepts text, image, video input. It can be used for free via API. It is available from 51 API providers. It scores 144.1 on the Epoch Capabilities Index. Full Gemma 4 31B IT specs →

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 →

Compare other models

FAQ

Which is better, Gemma 4 31B IT or GLM-5?

GLM-5 wins 4 of 4 benchmarks both models report and has a higher Epoch Capabilities Index (146.5 vs 144.1). Gemma 4 31B IT is slightly cheaper on a blended (3:1 input:output) token price. Gemma 4 31B IT has the larger context window (256K vs 200K).

Is Gemma 4 31B IT cheaper than GLM-5?

Gemma 4 31B IT costs Free input / Free output per 1M tokens; GLM-5 costs $0.598 / $2.69. Gemma 4 31B IT is cheaper overall.

Which has a bigger context window?

Gemma 4 31B IT: 262,144 tokens. GLM-5: 204,800 tokens.

Are Gemma 4 31B IT and GLM-5 open source?

Gemma 4 31B IT is open-weight; GLM-5 is open-weight.