Gemma 4 31B IT vs GLM-5.3-Flash
Gemma 4 31B IT (Google DeepMind, April 2026) and GLM-5.3-Flash (Z.ai Zhipu AI, August 2026), compared on price, context window, access and specs. They cost the same: free. GLM-5.3-Flash reads more at once: a 1.05M-token context window against 262K.
Updated 5 December 2026 · read each row across; the best value in a row is marked
Google DeepMind
Z.ai Zhipu AI
At a glance
- Tasks
Language modeling
Language generation
Question answering
Language modeling
Language generation
Question answering
- Released
- 2 April 2026
- 20 August 2026
- 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.037on Hugging Face
- Output, per 1M tokens
- $0on Google AI StudioLowest
- $0.13on Hugging Face
- Where to run it
- Google AI StudioDeepInfraAmazon BedrockOpenRouterAll 6 providers
- Hugging FaceOpenRouterMistral AIZ.aiAll 10 providersMost choice
- Official API id
google/gemma-4-31b-itmistral/zai-glm-5-3-flash- Context window
- 262K tokens
- 1.05M tokensLargest
- Max output
- 33K tokens
- 131K tokensLargest
- Takes
- Text, Image
- Text, Image, PDF
- Returns
- Text
- Text
- Supports
- ReasoningTool callingStructured outputFile inputOpen weights
- ReasoningTool callingStructured outputFile inputOpen weights
Scale and training
- Parameters
- 31B31,000,000,000
- 320B320,000,000,000Largest
- Training compute
- Not listed
- 3.2 × 10²⁴ FLOP
- Confidence
- Likely
- Likely
Notes
- Parameters
- Not listed
- 320B total, 18B active.
- Training compute
- Not listed
- 6 * 18e9 active parameters * 30e12 tokens = 3.24e24 FLOP. https://docs.z.ai/guides/vlm/glm-5.3-flash says "Combined with our latest 30T-token multimodal pre-training corpus, these changes let GLM-5.3-Flash produce more intelligence with less compute.", which is not definitive in saying that all 30T tokens were used exactly once; likely confidence.
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
We introduce GLM-5.3-Flash, the first natively multimodal model in the GLM-5 series. With 320B total parameters and just 18B active parameters, it outperforms GLM-5.2 across benchmarks and real-world workloads at one-tenth the price, while approaching Claude Opus 4.8 on coding and agentic benchmarks.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
- GLM-5.3-Flash · 1.05M tokens of context, 4× more than Gemma 4 31B IT.
- Long answers in one response
- GLM-5.3-Flash · Up to 131K output tokens per response.
Questions people ask
Is Gemma 4 31B IT better than GLM-5.3-Flash?
It depends on the job. For long documents, codebases or transcripts, GLM-5.3-Flash has the edge: 1.05M tokens of context, 4× more than Gemma 4 31B IT. For long answers in one response, GLM-5.3-Flash has the edge: up to 131K output tokens per response. Try them on your own prompts in the AIPortalX playground before you commit.
Which is cheaper: Gemma 4 31B IT or GLM-5.3-Flash?
They are priced the same, at free.
Which has the bigger context window?
GLM-5.3-Flash, with 1.05M tokens; Gemma 4 31B IT takes 262K. A larger window lets one request hold longer documents or conversations.
Where can I use Gemma 4 31B IT and GLM-5.3-Flash 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-5.3-Flash in August 2026.