Overview
Gemma 4 31B is an open-weight model Google released on 2 April 2026. It is the largest dense model in the Gemma 4 family and is licensed under Apache 2.0. The official model card describes about 30.7B parameters and 60 layers, with a hybrid design that interleaves 1024-token sliding-window attention with global attention, and a context of up to 256K tokens. It takes text and image input (video is handled as frame sequences) and returns text. In this site's data its Artificial Analysis Intelligence Index is 4.
Strengths
- A built-in, switchable thinking mode, turned on by adding
<|think|> at the start of the system prompt
- Native function calling and system-role support for tool use and agent flows
- Pre-training on 140+ languages, with out-of-the-box support for 35+
- Common tasks such as chat, summarization and extracting data from images
Use cases
Local or private deployments: chat assistants, document and image extraction, research and teaching on consumer GPUs or workstations, and fine-tuning for specific domains. It can be served with Transformers, vLLM or SGLang.
Limitations
- No audio input (in Gemma 4 only E2B, E4B and 12B accept audio).
- The model card notes training-data bias, weaker handling of open-ended complex tasks and nuance such as sarcasm, and possible factual errors. The pre-training data cutoff is January 2025.
- Far less capable overall than Google's proprietary Gemini models.
- Google notes that the 31B model is slower than its sibling 26B A4B, a mixture-of-experts model with about 3.8B active parameters.
Versions & pricing notes
- The Gemma 4 family also includes E2B, E4B, 12B Unified and 26B A4B. This page covers the instruction-tuned
gemma-4-31b-it.
- Weights are free to download from Hugging Face under Apache 2.0.
- On the Gemini API it is offered on the free tier only: input, output and context caching cost nothing, there is no paid tier, and tuning and Google Search grounding are not available. Free-tier data may be used to improve Google's products.