Skip to content
llmmodels

Gemma 4 31B IT vs GLM-5.1

GLM-5.1 wins 5 of 5 benchmarks both models report and has a higher Epoch Capabilities Index (150.7 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.1
ProviderGoogle DeepMindZhipu AI (Z.ai)
ReleasedApr 2, 2026Apr 7, 2026 (better)
TypeReasoning LLMReasoning LLM
Parameters31B754B
Context window256K (better)200K
Max output32K128K (better)
Input price / 1MFree (better)$0.896
Output price / 1MFree (better)$3.59
Input modalitiestext, image, video (better)text
Open weightsYesYes
Licenseapache-2.0mit
Reasoning modeYesYes
Tool callingYesYes
API providers51 (better)48
Epoch Capabilities Index144.1150.7 (better)
GPQA Diamond75.8%89.9% (better)
SWE-bench Verified—74.2%
WebDev Arena13641508 (better)
OTIS Mock AIME73.3%93.3% (better)
FrontierMath—36.8%
SimpleQA Verified10.4%34.0% (better)

Cost example

For a workload of 10M input + 2M output tokens per month: Gemma 4 31B IT costs $0.00 and GLM-5.1 costs $16.13 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.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 →

Compare other models

FAQ

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

GLM-5.1 wins 5 of 5 benchmarks both models report and has a higher Epoch Capabilities Index (150.7 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.1?

Gemma 4 31B IT costs Free input / Free output per 1M tokens; GLM-5.1 costs $0.896 / $3.59. Gemma 4 31B IT is cheaper overall.

Which has a bigger context window?

Gemma 4 31B IT: 262,144 tokens. GLM-5.1: 200,000 tokens.

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

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