Gemma 4 31B IT
Hugging Face (google) Open weights
The catch: Text and image input only on the 31B; audio input is limited to the smaller E2B, E4B and 12B models.
| Access | Open weights |
|---|---|
| Free limits | Free to download and self-host; you pay only for your own compute. Apache 2.0, so no user cap. 30.7B parameters, dense (plus a ~550M vision encoder); the largest model in the Gemma 4 family. |
| Modality | text, code, image |
| Credit card | Not required |
| Commercial use | Allowed |
| Trains on your data | – |
| Licence or terms | Apache-2.0 |
| Context window | 262,144 tokens |
| Model id | google/gemma-4-31B-it |
| Base URL | – |
| Last checked | 2 Oct 2026 |
How to use Gemma 4 31B IT
Download the weights and serve them yourself; the quickstart below shows one way. Licence: Apache-2.0.
Quickstart
ollama run gemma4:31b
Paste into Claude Code
I want to run the open-weight model "Gemma 4 31B IT" (google/gemma-4-31B-it) for my project. Please: 1. Check the model card and tell me the hardware it needs and the simplest way to serve it (vLLM, SGLang, Ollama or a hosted endpoint). 2. Give me a minimal working setup and a test request. 3. Tell me the licence terms for commercial use. 4. If a cheaper or smaller variant would do the job, mention it.
Before you ship on it
- Text and image input only on the 31B; audio input is limited to the smaller E2B, E4B and 12B models.
- The repo licence tag is apache-2.0 and ai.google.dev/gemma/docs/gemma_4_license shows the Apache License 2.0. The Gemma Terms of Use page (ai.google.dev/gemma/terms) says its terms apply only to the models in its…
- Free to run means you pay for the GPUs, the serving stack and the on-call.
Questions
Is Gemma 4 31B IT free?
Yes. Open weights offers it as open weights, with these limits: Self-host free · Apache-2.0. No credit card is needed.
Can I use Gemma 4 31B IT commercially?
Yes, under Apache-2.0. Check the current terms before you ship.
How do I start with Gemma 4 31B IT?
Download the weights and serve them yourself; the quickstart below shows one way. Licence: Apache-2.0.
Source: huggingface.co/google/gemma-4-31B-it, checked 2 Oct 2026.