Google: Gemma 4 31B (free)
google/gemma-4-31b-it:free
Model weightsGemma 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 calling, and multilingual support across 140+ languages. Strong on coding, reasoning, and document understanding tasks. Apache 2.0 license.
Providers
Different companies host the same model. OpenRouter routes your request to one of them based on the routing mode you pick: Balanced (price + speed), Nitro (fastest), or Floor (cheapest).
| Free | Free | 1.18s | 30 tok/s |
- Input Free / Output Free30 tok/s99.74% uptime
Performance
Throughput is how fast the model writes (tokens per second — higher is better). Latency is total round-trip time (lower is better). TTFT is time-to-first-token — how long before you see anything appear (lower is better).
P50, best across providers
P50, best provider
Uptime
Uptime is the percentage of the past 3 days that at least one provider was responding to requests. Availability is the percentage of time that inference was successfully served. OpenRouter continuously monitors and uses the next-best provider when one returns an error.
Availability over the last 3 days
Last 72 hoursAvailability over the last 24 hours
When an error occurs in an upstream provider, we can recover by routing to another healthy provider, if your request filters allow it. You can access per-provider uptime data programmatically through the Endpoints API. Learn more about our load balancing and provider routing options.
Benchmarks
Scores on standardized evaluations and this model’s own outputs on shared benchmark prompts. Higher percentages are better — and each rank shows where this model lands among the models evaluated on that source.
| Source | Benchmark | Score |
|---|---|---|
| Artificial Analysis | Gemma 4 31B (Reasoning) Intelligence Index | 4.4 |
| Artificial Analysis | Gemma 4 31B (Reasoning) Coding Index | 43.4 |
| Artificial Analysis | Gemma 4 31B (Reasoning) Agentic Index | 4.2 |
| Artificial Analysis | Gemma 4 31B (Reasoning) GPQA Diamond | 85.7% |
| Artificial Analysis | Gemma 4 31B (Reasoning) HLE | 23.6% |
| Artificial Analysis | Gemma 4 31B (Reasoning) IFBench | 75.6% |
| Artificial Analysis | Gemma 4 31B (Reasoning) τ²-Bench Telecom | 59.9% |
| Artificial Analysis | Gemma 4 31B (Reasoning) AA-LCR | 69.7% |
| Artificial Analysis | Gemma 4 31B (Reasoning) τ-Bench Banking | 14.8% |
| Artificial Analysis | Gemma 4 31B (Reasoning) GDPval-AA | 6.3% |
| Artificial Analysis | Gemma 4 31B (Reasoning) CritPt | 1.4% |
| Artificial Analysis | Gemma 4 31B (Reasoning) SciCode | 45.5% |
| Artificial Analysis | Gemma 4 31B (Reasoning) Terminal-Bench Hard | 36.4% |
| Artificial Analysis | Gemma 4 31B (Reasoning) Terminal-Bench 4.0 | 0.0% |
| Artificial Analysis | Gemma 4 31B (Reasoning) Terminal-Bench 2.1 | 43.4% |
| Artificial Analysis | Gemma 4 31B (Reasoning) AA-Omniscience Accuracy | 19.9% |
| Artificial Analysis | Gemma 4 31B (Reasoning) AA-Omniscience Non-Hallucination Rate | 14.5% |
| Artificial Analysis | Gemma 4 31B (Non-reasoning) Coding Index | 33.2 |
| Artificial Analysis | Gemma 4 31B (Non-reasoning) GPQA Diamond | 76.3% |
| Artificial Analysis | Gemma 4 31B (Non-reasoning) HLE | 11.8% |
| Artificial Analysis | Gemma 4 31B (Non-reasoning) IFBench | 53.5% |
| Artificial Analysis | Gemma 4 31B (Non-reasoning) τ²-Bench Telecom | 65.5% |
| Artificial Analysis | Gemma 4 31B (Non-reasoning) AA-LCR | 46.7% |
| Artificial Analysis | Gemma 4 31B (Non-reasoning) τ-Bench Banking | 8.9% |
| Artificial Analysis | Gemma 4 31B (Non-reasoning) GDPval-AA | 2.7% |
| Artificial Analysis | Gemma 4 31B (Non-reasoning) CritPt | 0.0% |
| Artificial Analysis | Gemma 4 31B (Non-reasoning) Terminal-Bench Hard | 30.3% |
| Artificial Analysis | Gemma 4 31B (Non-reasoning) Terminal-Bench 2.1 | 29.2% |
| Vals AI | Gemma 4 31B IT CaseLaw v2 | 52.6% |
| Vals AI | Gemma 4 31B IT Finance Agent v1.1 | 50.8% |
| Vals AI | Gemma 4 31B IT MortgageTax | 61.4% |
| Vals AI | Gemma 4 31B IT SAGE | 82.8% |
| Vals AI | Gemma 4 31B IT Terminal-Bench 2.0 | 39.3% |
Apps
Public apps that send the most traffic to this model. Good signal for what real production workloads look like — and a hint at which use cases this model is best suited for.
Activity
Token volume and request traffic to this model over time.
API
Drop-in code to call this model. OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. The only thing that changes between models is the model slug below.
Not currently available through EU in-region routing. In-region routing docs
Documentation
Guides, cookbooks, blog posts, and tools for building with Google: Gemma 4 31B (free) on OpenRouter.
Frequently asked questions
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 calling, and multilingual support across 140+ languages. Strong on coding, reasoning, and document understanding tasks. Apache 2.0 license.
The Gemma 4 31B (free) documentation on OpenRouter includes the LLM Quantization: What fp8 and fp4 Do to Quality and Price blog post and the LLM API Rate Limits: How to Fix OpenAI and Claude 429 Errors blog post. The quickstart covers API keys and your first request, and the API reference lists every parameter.
Yes. The pricing shown on this page for Gemma 4 31B (free) is zero, so you are not charged for prompt or completion tokens. Free endpoints are rate limited — see the rate limit docs.
Gemma 4 31B (free) has a 262,144 token context window. It supports up to 32,768 completion tokens.
Yes. Gemma 4 31B (free) accepts tools and tool_choice for function calling. It supports response_format for JSON output, without JSON-schema enforcement.
Gemma 4 31B (free) accepts images, text, and video as input and returns text.
Gemma 4 31B (free) is served by 1 provider on OpenRouter: Google AI Studio.
Gemini 4 Hydrogen, Gemini Decision 1, Gemini 4 Carbon and 31 more are other text models from Google.
Gemma 4 31B (free) was released on April 2, 2026.