Gemma 4 31B IT vs GLM 4.6

Gemma 4 31B IT (Google DeepMind, April 2026) and GLM 4.6 (Zhipu AI, September 2025), compared on price, context window, access and specs. They cost the same: free. Gemma 4 31B IT reads more at once: a 262K-token context window against 203K.

Updated 5 December 2026 · read each row across; the best value in a row is marked

At a glance

Released
2 April 2026
30 September 2025
Access
Open weights (restricted use)
Open weights (unrestricted)
Country
United States of America
China

Price and API

Input, per 1M tokens
$0on Google AI StudioLowest
$0.43on Hugging Face
Output, per 1M tokens
$0on Google AI StudioLowest
$1.75on Hugging Face
Official API id
google/gemma-4-31b-it
zai/glm-4.6
Context window
262K tokensLargest
203K tokens
Max output
33K tokens
131K tokensLargest
Takes
Text, Image
Text
Returns
Text
Text
Knowledge cutoff
Not listed
April 2025
Supports
ReasoningTool callingStructured outputFile inputOpen weights
ReasoningTool callingOpen weights

Scale and training

Parameters
31B31,000,000,000
357B357,000,000,000Largest
Training compute
Not listed
4.4 × 10²⁴ FLOP
Training time
Not listed
2,880 hours
Training code
Not listed
Unreleased
Confidence
Likely
Likely

Notes

Parameters
Not listed
Similarly to GLM 4.5: 355 billion total parameters (reported) with 32 billion active parameters (assumed)
Training compute
Not listed
6 FLOP/parameter/token * 32000000000 active parameters [very likely assumption - everything else is reported to be same as at GLM 4.5] * 23000000000000 tokens = 4.42e24 FLOP
Dataset size
Not listed
23T tokens (from Jaime's correspondence with the GLM team)
Access
Not listed
MIT license https://huggingface.co/zai-org/GLM-4.6

In their own words

Abstract
We introduce Gemma 4, a new generation of open-weight, natively multimodal language models in the Gemma model family. Designed to advance compute efficiency and reasoning, the Gemma 4 model suite features dense and Mixture-of-Experts architectures, ranging from 2.3B to 31B parameters. Alongside improved vision and audio encoders for all model sizes, we propose a unified, encoder-free architecture for our 12B model, which ingests raw audio and image patches. Furthermore, we integrate a thinking mode, enabling Gemma models to generate reasoning traces prior to responding. We improve inference speed, memory, and compute efficiency, as well as long-context abilities through critical design choices. Gemma 4 establishes a leap in performance across STEM, multimodal, and long-context benchmarks, and rivals larger, frontier open models in human-rated tasks.Read all
Today, we are releasing the latest version of our flagship model: GLM-4.6. Compared with GLM-4.5, this generation brings several key improvements: Longer context window: The context window has been expanded from 128K to 200K tokens, enabling the model to handle more complex agentic tasks. Superior coding performance: The model achieves higher scores on code benchmarks and demonstrates better real-world performance in applications such as Claude Code、Cline、Roo Code and Kilo Code, including improvements in generating visually polished front-end pages. Advanced reasoning: GLM-4.6 shows a clear improvement in reasoning performance and supports tool use during inference, leading to stronger overall capability. More capable agents: GLM-4.6 exhibits stronger performance in tool using and search-based agents, and integrates more effectively within agent frameworks. Refined writing: Better aligns with human preferences in style and readability, and performs more naturally in role-playing scenarios. We evaluated GLM-4.6 across eight public benchmarks covering agents, reasoning, and coding. Results show clear gains over GLM-4.5, with GLM-4.6 also holding competitive advantages over leading domestic and international models such as DeepSeek-V3.2-Exp and Claude Sonnet 4, but still lags behind Claude Sonnet 4.5 in coding ability.Read all
Authors
Sherif El Abd, Vaibhav Aggarwal, Robin Algayres, Alek Andreev, Olivier Bachem, Ian Ballantyne, Cormac Brick, Victor Cărbune and 314 more
Not listed

Which should you pick?

Long documents, codebases or transcripts
Gemma 4 31B IT · 262K tokens of context, 29% more than GLM 4.6.
Long answers in one response
GLM 4.6 · Up to 131K output tokens per response.
Reading images and screenshots
Gemma 4 31B IT · Accepts image input through the API.

Questions people ask

Is Gemma 4 31B IT better than GLM 4.6?

It depends on the job. For long documents, codebases or transcripts, Gemma 4 31B IT has the edge: 262K tokens of context, 29% more than GLM 4.6. For long answers in one response, GLM 4.6 has the edge: up to 131K output tokens per response. For reading images and screenshots, Gemma 4 31B IT has the edge: accepts image input through the API. Try them on your own prompts in the AIPortalX playground before you commit.

Which is cheaper: Gemma 4 31B IT or GLM 4.6?

They are priced the same, at free.

Which has the bigger context window?

Gemma 4 31B IT, with 262K tokens; GLM 4.6 takes 203K. A larger window lets one request hold longer documents or conversations.

Where can I use Gemma 4 31B IT and GLM 4.6 through one API?

DeepInfra, OpenRouter and Hugging Face serve all of them, so you can switch models without opening another account.

When were they released?

Gemma 4 31B IT in April 2026 and GLM 4.6 in September 2025.

Other comparisons