Gemma 4 31B — Specifications
Zusammengestellt von Mustafa Ihsan aus der Dokumentation des Herstellers · Zuletzt aktualisiert
| Entwickler | |
|---|---|
| Typ | LLM (multimodal) |
| Modality | Text, Bild → Text |
| Parameter | 30,7B |
| Kontextfenster | 256K |
| Lizenz | Apache 2.0 |
| Offene Gewichte | Ja |
| Veröffentlicht | 2026-03 |
| Eingabepreis | $0.20 /1M |
| Ausgabepreis | $0.40 /1M |
| API-Anbieter | DeepInfra, OpenRouter (hosted); Gemini API (free tier only); Ollama (local) |
Lokal ausführen
| VRAM (4-Bit) | ~17.5 GB |
|---|
Benchmark-Ergebnisse
| Google-reported | MMLU Pro 85.2%; GPQA Diamond 84.3%; LiveCodeBench v6 80.0%; AIME 2026 (no tools) 89.2%; MMMU Pro 76.9%. |
|---|
What is Gemma 4 31B?
Gemma 4 31B is the largest dense model in Google DeepMind’s open Gemma 4 family, released on 31 March 2026 under the Apache 2.0 licence. Its Modellkarte lists 30.7 billion parameters, text and image input, a 256K-token context window, configurable thinking modes and support for over 140 languages. Google reports 85.2% on MMLU Pro, 84.3% on GPQA Diamond and 80.0% on LiveCodeBench v6, against 67.6%, 42.4% and 29.1% for Gemma 3 27B without thinking.
Google estimates about 17.5 GB of memory to load it at 4-bit (Q4_0). That covers the weights only: the context window (KV cache) and supporting software need more on top. Ollama’s gemma4:31b-it-q4_K_M build is a 20 GB download, which will not fit in a 16 GB card’s memory but fits a 24 GB GPU with some room for context. Check a setup with the VRAM-Rechner und unseren Leitfaden zu running Gemma 4 in Ollama.
Google’s Gemini API serves gemma-4-31b-it on its free tier only, with no paid tier. Hosted, DeepInfra charges $0.20 per million input tokens and $0.40 output, the price stored in this entry. It succeeds Gemma 3 27B. If speed matters more than peak quality, the mixture-of-experts Gemma 4 26B A4B needs less memory and, according to Google, runs almost as fast as a 4B model.
Gemma 4 31B pricing: API cost per 1M tokens
| Eingabe (pro 1 Mio. Token) | $0.200 |
|---|---|
| Ausgabe (pro 1 Mio. Token) | $0.400 |
| Verhältnis Output/Input | 2× |
| Gemischt (4:1 Input:Output) | $0.240 pro 1 Mio. Tokens |
What Gemma 4 31B costs per month
Tatsächliche monatliche Ausgaben bei einem 4:1-Input-zu-Output-Mix – dem Verhältnis, das typische Chat- oder RAG-Arbeitslasten tatsächlich erzeugen.
| Workload | Tokens/Monat | Kosten pro Monat |
|---|---|---|
| Nebenprojekt | 1 Mio. Eingabe / 0,25 Mio. Ausgabe | $0.30 |
| Kleines Team | 20 Mio. Eingabe / 5 Mio. Ausgabe | $6.00 |
| Produktion | 200 Mio. Eingabe / 50 Mio. Ausgabe | $60 |
Stellen Sie Ihre eigenen Berechnungen im KI-API-Kostenrechner.
Cheaper alternatives to Gemma 4 31B
| Modell | Gewichteter Preis pro Million US-Dollar | Sie sparen |
|---|---|---|
| Llama 3.1 8B offenere | $0.0240 | 90% cheaper |
| Mistral NeMo 12B offenere | $0.0292 | 88% günstiger |
| Gemma 3 4B offenere | $0.0600 | 75 % günstiger |
Selbst hosten oder die API nutzen?
Gemma 4 31B is open-weight, so you can run it yourself. It needs ~17.5 GB of VRAM at 4-bit. Self-hosting only beats the API once your volume is high enough to keep that hardware busy — the Self-Hosting vs API Rechner berechnet den Break-even-Punkt für Ihr Token-Volumen.
Häufig gestellte Fragen
How much does Gemma 4 31B cost per 1M tokens?
Gemma 4 31B costs $0.200 per 1M input tokens and $0.400 per 1M output tokens. At a typical 4:1 input-to-output mix that blends to about $0.240 per 1M tokens.
How much does Gemma 4 31B cost per month?
A small-team workload of 20M input and 5M output tokens a month costs about $6.00 on Gemma 4 31B. A side project (1M in / 0.25M out) costs roughly $0.30.
What is a cheaper alternative to Gemma 4 31B?
Llama 3.1 8B is the strongest cheaper option in our database at $0.0240 per 1M blended — about 90% less than Gemma 4 31B. It is also open-weight, so self-hosting is an option.
Can I run Gemma 4 31B locally?
Yes. Gemma 4 31B is open-weight and needs about ~17.5 GB of VRAM at 4-bit quantisation.
Why does Gemma 4 31B charge more for output than input?
Output tokens are generated one at a time and cannot be batched the way a prompt can, so they cost the provider more to serve. Gemma 4 31B charges 2× more for output, which is why prompt-heavy workloads are far cheaper to run than generation-heavy ones.
Die Preise entsprechen den offiziell veröffentlichten Listenpreisen für die primäre API des jeweiligen Modells und werden regelmäßig aktualisiert, sobald Anbieter diese ändern. Volumen-, Batch- und Cached-Input-Rabatte sind nicht enthalten. Vergleichen Sie alle Modelle nebeneinander im Datenbank für KI-Modelle oder das LLM-Leaderboard.
