Gemma 4 31B
Googlehuggingface.co/google/gemma-4-31B-it
Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output. Features a 256K token context window, configurable thinking/reasoning mode, native function...
Updated 14 min ago · first seen 11 Sept 2026
model_01M294WW1MERCRX1PDYT3XGFR9
- Parameters
- 31.3B
- T2 · 2 h ago
- Context
- 256K tokens
- T2 · 23 min ago
- Released
- 2 Apr 2026
- T2 · 28 min ago
- License
- apache-2.0
- T2 · 2 h ago
Specification
- Release date
- 2 Apr 2026
Source:OpenRouter public model & pricing listingT2observed 28 min agomedium
- Openness
- open-weights
Source:Hugging Face Hub (public pages, model cards, papers)T2observed 2 h agomedium
- License
- apache-2.0
Source:Hugging Face Hub (public pages, model cards, papers)T2observed 2 h agomedium
- Architecture
- Gemma4ForConditionalGeneration
Source:Hugging Face Hub (public pages, model cards, papers)T2observed 2 h agomedium
- Parameters
- 31.3B
Source:Hugging Face Hub (public pages, model cards, papers)T2observed 2 h agomedium
- Context window
- 256K tokens
Source:Artificial AnalysisT2observed 23 min agomedium
- Max output
- 16.4K tokens
Source:OpenRouter public model & pricing listingT2observed 2 h agomedium
- Modalities
- image, text, video
Source:OpenRouter public model & pricing listingT2observed 2 h agomedium
- Input modalities
- image, text, video
Source:OpenRouter public model & pricing listingT2observed 2 h agomedium
- Output modalities
- text
Source:OpenRouter public model & pricing listingT2observed 2 h agomedium
- Tokenizer
- Gemma
Source:OpenRouter public model & pricing listingT2observed 2 h agomedium
- Base model
- google/gemma-4-31B
Source:Hugging Face Hub (public pages, model cards, papers)T2observed 2 h agomedium
- File size
- 62.5 GB
Source:Hugging Face Hub (public pages, model cards, papers)T2observed 2 h agomedium
- Hugging Face repo
- google/gemma-4-31B-it
Source:OpenRouter public model & pricing listingT2observed 2 h agomedium
- Pipeline tag
- image-text-to-text
Source:Hugging Face Hub (public pages, model cards, papers)T2observed 2 h agomedium
- Model card
Source:Hugging Face Hub (public pages, model cards, papers)T2observed 2 h agomedium
- Downloads
- 8,676,676
Source:Hugging Face Hub (public pages, model cards, papers)T2observed 14 min agomedium
- Likes
- 3,764
Source:Hugging Face Hub (public pages, model cards, papers)T2observed 14 min agomedium
- Gated
- No
Source:Hugging Face Hub (public pages, model cards, papers)T2observed 2 h agomedium
- Hf inference providers
- deepinfra, featherless-ai, novita, together
Source:Hugging Face Hub (public pages, model cards, papers)T2observed 2 h agomedium
- Last modified
- 2026-07-20T16:42:18+00:00
Source:Hugging Face Hub (public pages, model cards, papers)T2observed 2 h agomedium
- Library name
- transformers
Source:Hugging Face Hub (public pages, model cards, papers)T2observed 2 h agomedium
- License url
- https://ai.google.dev/gemma/docs/gemma_4_license
Source:Hugging Face Hub (public pages, model cards, papers)T2observed 2 h agomedium
- Aa median output tokens per second
- 35.3
Source:Artificial AnalysisT2observed 23 min agomedium
- Downloads all time
- 56,491,146
Source:Hugging Face Hub (public pages, model cards, papers)T2observed 2 h agomedium
- Model type
- gemma4
Source:Hugging Face Hub (public pages, model cards, papers)T2observed 2 h agomedium
- Openrouter id
- google/gemma-4-31b-it
Source:OpenRouter public model & pricing listingT2observed 2 h agomedium
- Supported parameters
- frequency_penalty, include_reasoning, logit_bias, logprobs, max_tokens, min_p, presence_penalty, reasoning, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_logprobs, top_p
Source:OpenRouter public model & pricing listingT2observed 2 h agomedium
- Tags
- transformers, safetensors, gemma4, image-text-to-text
Source:Hugging Face Hub (public pages, model cards, papers)T2observed 2 h agomedium
- Weights dtype
- BF16
Source:Hugging Face Hub (public pages, model cards, papers)T2observed 2 h agomedium
Each value shows its source, tier and observation time. Conflicting claims are kept side by side and flagged — never averaged. How AI Atlas records facts →
Provenance
Attributed facts
35
Source tiers
T235
Freshest observation
14 min ago
Conflicts
None
Modalities
- Modalities
- imagetextvideo
- Input
- imagetextvideo
- Output
- text
Capabilities
Tool calling
Yes
OpenRouter public model & pricing listing · T2
Structured output
Yes
OpenRouter public model & pricing listing · T2
Reasoning
Yes
OpenRouter public model & pricing listing · T2
Vision
Yes
OpenRouter public model & pricing listing · T2
Audio
Unavailable
Fine-tuning available
Unavailable
- Context window
- 256K tokens
Source:Artificial AnalysisT2observed 23 min agomedium
- Max output
- 16.4K tokens
Source:OpenRouter public model & pricing listingT2observed 2 h agomedium
- Tokenizer
- Gemma
Source:OpenRouter public model & pricing listingT2observed 2 h agomedium
| Benchmark | Score | Metric | Config | Evaluated | Source |
|---|---|---|---|---|---|
| τ²-bench | 59.94% | pass^1 | aa_slug=gemma-4-31b · evaluator=Artificial Analysis · index_version=4.3 | — | artificialanalysis.aiT2 |
| Artificial Analysis Intelligence Index | 15.42 | index | aa_slug=gemma-4-31b · version=4.3 · estimated=false | — | artificialanalysis.aiT2 |
| GPQA | 85.66% | accuracy | aa_slug=gemma-4-31b · variant=GPQA Diamond · evaluator=Artificial Analysis · index_version=4.3 | — | artificialanalysis.aiT2 |
| Humanity's Last Exam | 23.63% | accuracy | aa_slug=gemma-4-31b · evaluator=Artificial Analysis · index_version=4.3 | — | artificialanalysis.aiT2 |
| IFBench | 75.58% | accuracy | aa_slug=gemma-4-31b · evaluator=Artificial Analysis · index_version=4.3 | — | artificialanalysis.aiT2 |
| MMMU-Pro | 73.41% | accuracy | aa_slug=gemma-4-31b · evaluator=Artificial Analysis · index_version=4.3 | — | artificialanalysis.aiT2 |
| SciCode | 45.49% | accuracy | aa_slug=gemma-4-31b · evaluator=Artificial Analysis · index_version=4.3 | — | artificialanalysis.aiT2 |
| Terminal-Bench | 0% | accuracy | aa_slug=gemma-4-31b · variant=v4.0 · evaluator=Artificial Analysis · index_version=4.3 | — | artificialanalysis.aiT2 |
| Terminal-Bench | 43.45% | accuracy | aa_slug=gemma-4-31b · variant=v2.1 · evaluator=Artificial Analysis · index_version=4.3 | — | artificialanalysis.aiT2 |
| Terminal-Bench | 36.36% | accuracy | aa_slug=gemma-4-31b · variant=hard · evaluator=Artificial Analysis · index_version=4.3 | — | artificialanalysis.aiT2 |
Scores are reported as published, with their evaluation configuration (harness, prompting, judge). Results with different configs are not directly comparable — see methodology.
Current prices
| Provider | Input / 1M | Output / 1M | Cached in | Batch in / out | Context | Observed | Source |
|---|---|---|---|---|---|---|---|
| Google Gemini APIgoogle/gemma-4-31b-it:free | $0 | $0 | — | — | 262.1K | 28 min ago | openrouter.aiT2 |
| Google Gemini APIgoogle/gemma-4-31b-it | $0.09 | $0.34 | $0.05 | — | 262.1K | 28 min ago | openrouter.aiT2 |
| Google Gemini APIgoogle/gemma-4-31b-it:batch | $0.39 | $0.97 | — | — | 262.1K | 28 min ago | openrouter.aiT2 |
| Together AIgemma-4-31b | $0.39 | $0.97 | — | — | — | 28 min ago | together.aiT1 |
USD per 1M tokens as published by each provider (USD). Rows are append-only: every change is kept in the history below.
Available through 2
Price history
Input price · USD / 1M tokens
Output price · USD / 1M tokens
- Google Gemini API
- Together AI
Memory need = bytes per parameter (4-bit ≈ 0.5 × 1.15 overhead, 8-bit 1.0, fp16 2.0) + a KV-cache allowance. Not a measurement.
| Hardware | Quantization | Memory | Est. need | Fits |
|---|---|---|---|---|
| NVIDIA DGX B200 | 4bit | 1,440 GB | 18.5 GB | Yes |
| Apple M3 Ultra | 4bit | — | 18.5 GB | Yes |
| Mac Studio (Apple M5 Ultra) | 4bit | — | 18.5 GB | Yes |
| AMD Instinct MI325X | 4bit | 256 GB | 18.5 GB | Yes |
| AMD Instinct MI300X | 4bit | 192 GB | 18.5 GB | Yes |
| Apple M2 Ultra | 4bit | — | 18.5 GB | Yes |
| NVIDIA B200 | 4bit | 180 GB | 18.5 GB | Yes |
| NVIDIA H200 | 4bit | 141 GB | 18.5 GB | Yes |
| NVIDIA H200 NVL | 4bit | 141 GB | 18.5 GB | Yes |
| Apple M1 Ultra | 4bit | — | 18.5 GB | Yes |
| Apple M3 Max | 4bit | — | 18.5 GB | Yes |
| Apple M4 Max | 4bit | — | 18.5 GB | Yes |
| Mac Studio (Apple M5 Max) | 4bit | — | 18.5 GB | Yes |
| MacBook Pro (Apple M5 Max) | 4bit | — | 18.5 GB | Yes |
| NVIDIA DGX Spark | 4bit | 128 GB | 18.5 GB | Yes |
| Apple M2 Max | 4bit | — | 18.5 GB | Yes |
| NVIDIA H100 NVL | 4bit | 94 GB | 18.5 GB | Yes |
| NVIDIA A100 80GB | 4bit | 80 GB | 18.5 GB | Yes |
| NVIDIA H100 SXM | 4bit | 80 GB | 18.5 GB | Yes |
| Apple M1 Max | 4bit | — | 18.5 GB | Yes |
| Apple M4 Pro | 4bit | — | 18.5 GB | Yes |
| Mac mini (Apple M5 Pro) | 4bit | — | 18.5 GB | Yes |
| MacBook Pro (Apple M5 Pro) | 4bit | — | 18.5 GB | Yes |
| Apple M3 Pro | 4bit | — | 18.5 GB | Yes |
| Apple M1 Pro | 4bit | — | 18.5 GB | Yes |
| Apple M2 Pro | 4bit | — | 18.5 GB | Yes |
| Apple M4 | 4bit | — | 18.5 GB | Yes |
| iMac (Apple M4) | 4bit | — | 18.5 GB | Yes |
| Mac mini (Apple M6) | 4bit | — | 18.5 GB | Yes |
| MacBook Air (Apple M5) | 4bit | — | 18.5 GB | Yes |
| MacBook Pro (Apple M5) | 4bit | — | 18.5 GB | Yes |
| NVIDIA GeForce RTX 5090 | 4bit | 32 GB | 18.5 GB | Yes |
| Apple M2 | 4bit | — | 18.5 GB | Yes |
| Apple M3 | 4bit | — | 18.5 GB | Yes |
| NVIDIA GeForce RTX 3090 | 4bit | 24 GB | 18.5 GB | Yes |
| NVIDIA GeForce RTX 4090 | 4bit | 24 GB | 18.5 GB | Yes |
| Apple M1 | 4bit | — | 18.5 GB | No |
Ancestors 1
- gemma-4-31BGoogle
This model
Gemma 4 31B
31.3B params
Quantizations 3
Descendants 0
None recorded.
Papers 1
- arXiv:2607.02770Active35
Repositories 0
No repositories linked yet.
As of
Rewind the record: see this entity's attributes exactly as AI Atlas knew them on a given day.
Claim history · Last modified
Last modifiedlast_modified1
| Value | Valid from → to | Status | Source | Confidence | Extractor |
|---|---|---|---|---|---|
| 2026-07-20T16:42:18+00:00 | → current | current | Hugging Face Hub (public pages, model cards, papers)T2 | medium | deterministic |
Claims are temporal and append-only: a new observation closes the previous claim (valid_to) instead of overwriting it. Conflicting claims from different sources are kept side by side and flagged — never averaged. Methodology →
Gemma 4 31B scores 36.36% on Terminal-Bench
artificial_analysisGemma 4 31B scores 43.45% on Terminal-Bench
artificial_analysisGemma 4 31B scores 23.63% on Humanity's Last Exam
artificial_analysisGemma 4 31B scores 15.42 on Artificial Analysis Intelligence Index
artificial_analysisGemma 4 31B: context length changed from 262144 to 256000
Context window262.1K tokens→256K tokensartificial_analysisTogether AI lists Gemma 4 31B at $0.39 in / $0.97 out per 1M tokens
together_pricingGemma 4 31B: release date changed from 2026-03-11 to 2026-04-02
Release date11 Mar 2026→2 Apr 2026openrouterGemma 4 31B: release date changed from 2026-04-02 to 2026-03-11
Release date2 Apr 2026→11 Mar 2026huggingfaceGoogle Gemini API lists Gemma 4 31B at $0 in / $0 out per 1M tokens
openrouterGoogle Gemini API lists Gemma 4 31B at $0.39 in / $0.97 out per 1M tokens
openrouterGoogle Gemini API lists Gemma 4 31B at $0.09 in / $0.34 out per 1M tokens
openrouter
| Source | Document | Type | Tier | Last observed | Snapshots |
|---|---|---|---|---|---|
| Together AI — pricing | together.ai/pricing | pricing | T1· Official | 28 min ago | 1 |
| Hugging Face Hub (public pages, model cards, papers) | huggingface.co/models?author=google&p=0&sort=downloads | listing | T2· Quality secondary | 14 min ago | 3 |
| Artificial Analysis | artificialanalysis.ai/leaderboards/models | leaderboard | T2· Quality secondary | 23 min ago | 1 |
| OpenRouter public model & pricing listing | openrouter.ai/api/v1/models | catalogue | T2· Quality secondary | 28 min ago | 2 |
| Hugging Face Hub (public pages, model cards, papers) | huggingface.co/google/gemma-4-31B-it/raw/main/README.md | model_card | T2· Quality secondary | 46 min ago | 1 |
| Hugging Face Hub (public pages, model cards, papers) | huggingface.co/nvidia/Gemma-4-31B-IT-NVFP4 | model_page | T2· Quality secondary | 1 h ago | 2 |
| Hugging Face Hub (public pages, model cards, papers) | huggingface.co/mlx-community/gemma-4-31b-it-4bit | model_page | T2· Quality secondary | 1 h ago | 2 |
| Hugging Face Hub (public pages, model cards, papers) | huggingface.co/Intel/gemma-4-31B-it-int4-AutoRound | model_page | T2· Quality secondary | 1 h ago | 1 |
| Hugging Face Hub (public pages, model cards, papers) | huggingface.co/google/gemma-4-31B-it | model_page | T2· Quality secondary | 2 h ago | 1 |
Tier 1 = official/primary, 2 = quality secondary, 3 = community, 4 = unverified. Every snapshot is archived; see all sources and the methodology.