Google · Released Apr 2, 2026
Gemma 4 31B
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...
- Top 44%LMCA
- Released
- Apr 2 2026
- Context window
- 262K 16K out
- Input / 1M tokens
- $0.20 from Free
- Output / 1M tokens
- $0.40 from Free
Where to run it
48 providers compared
Free to try on Google AI Studio, UnoRouter, Requesty, Bothub, AMD +3 more — free endpoints are often limited-time and rate-limited. Cheapest: DevPass (LLM Gateway) at $0.10 / $0.25 per 1M input / output tokens — 95% less than the priciest option.
| Provider | Input | Output | Cache read | Context | Max output | Uptime | vs. best |
|---|---|---|---|---|---|---|---|
| Google AI Studiofree · may be limited-time | Free | Free | — | 262K | 33K | 99.6%24h | Free |
| UnoRouterfree · may be limited-time | Free | Free | — | 262K | 33K | — | Free |
| Requestyfree · may be limited-time | Free | Free | — | 262K | 8K | — | Free |
| Bothubfree · may be limited-time | Free | Free | — | 262K | 33K | — | Free |
| AMDfree · may be limited-time | Free | Free | Free | 262K | 33K | — | Free |
| InferXfree · may be limited-time | Free | Free | — | 262K | 33K | — | Free |
| Poefree · may be limited-time | Free | Free | — | 262K | 8K | — | Free |
| Nvidiafree · may be limited-time | Free | Free | — | 256K | 16K | — | Free |
| DevPass (LLM Gateway) | $0.10 | $0.25 | $0.01 | 262K | 33K | — | Cheapest |
| FastRouter | $0.10 | $0.30 | — | 262K | 33K | — | +9% |
| CoreWeaveFP4 | $0.10 | $0.34 | $0.10 | 262K | 236K | 100%24h | +16% |
| Kilo Gateway | $0.10 | $0.34 | $0.10 | 262K | 16K | — | +16% |
| Lilac | $0.11 | $0.35 | — | 262K | 262K | — | +24% |
| Kenari | $0.10 | $0.41 | $0.041 | 262K | 33K | — | +30% |
| VeniceFP4 | $0.12 | $0.36 | $0.09 | 256K | 8K | 98.1%24h | +31% |
| Venice AI | $0.12 | $0.36 | $0.09 | 256K | 8K | — | +31% |
| ChutesFP4 | $0.12 | $0.37 | $0.012 | 131K | 66K | 95.2%24h | +33% |
| OrcaRouter | $0.13 | $0.38 | $0.02 | 262K | 33K | — | +40% |
| DeepInfraFP8 · no tool calling | $0.16 | $0.32 | — | 262K | 236K | 98.2%24h | +45% |
| Friendli | $0.14 | $0.40 | — | 262K | 8K | 100%24h | +49% |
| CrusoeBF16 | $0.14 | $0.40 | $0.14 | 262K | 262K | 98.8%24h | +49% |
| NovitaBF16 | $0.14 | $0.40 | — | 262K | 131K | 84%24h | +49% |
| Vercel AI Gateway | $0.14 | $0.40 | — | 262K | 131K | — | +49% |
| LLM Gateway | $0.14 | $0.40 | — | 262K | 33K | — | +49% |
| Novita AI | $0.14 | $0.40 | — | 262K | 131K | — | +49% |
| Amazon Bedrock | $0.14 | $0.40 | — | 262K | 33K | — | +49% |
| Abacus | $0.14 | $0.40 | — | 262K | 131K | — | +49% |
| Hugging Face | $0.14 | $0.40 | — | 262K | 33K | — | +49% |
| Ollama Cloud | $0.14 | $0.40 | $0.05 | 262K | 262K | — | +49% |
| Merge Gatewayno tool calling | $0.14 | $0.40 | — | 262K | 66K | — | +49% |
| ParasailFP8 | $0.15 | $0.40 | $0.06 | 262K | 236K | 100%24h | +55% |
| Neuralwatt | $0.14 | $0.42 | $0.014 | 262K | 16K | — | +55% |
| DeepInfraFP4 | $0.14 | $0.51 | $0.075 | 262K | 16K | 99.9%24h | +66% |
| DeepInfraFP8 | $0.20 | $0.40 | — | 262K | 16K | 98.4%24h | +82% |
| DigitalOcean | $0.18 | $0.50 | $0.036 | 256K | 8K | — | +89% |
| Cortecs | $0.22 | $0.39 | — | 262K | 262K | — | +93% |
| ai& | $0.20 | $0.50 | $0.05 | 262K | 33K | — | +100% |
| Infomaniak | $0.25 | $0.50 | — | 100K | 33K | — | +127% |
| Berget.AI | $0.28 | $0.56 | — | 128K | 8K | — | +155% |
| DeepInfrapriority · FP8 · no tool calling | $0.30 | $0.60 | — | 262K | 236K | 93.2%24h | +173% |
| Pioneer | $0.50 | $0.50 | $0.50 | 33K | 33K | — | +264% |
| Io Net | $0.36 | $1.09 | $0.18 | 262K | 16K | 93.5%24h | +296% |
| NanoGPT | $0.40 | $1.00 | $0.40 | 262K | 131K | — | +300% |
| Tinfoil | $0.40 | $1.00 | — | 262K | 33K | — | +300% |
| SambaNova | $0.38 | $1.15 | — | 131K | 118K | 99.8%24h | +316% |
| ModelRunFP4 | $0.75 | $1.00 | $0.20 | 262K | 236K | 100%24h | +491% |
| SiliconFlowFP8 | $0.75 | $1.00 | $0.25 | 262K | 236K | 95.3%24h | +491% |
| Regolo AI | $0.46 | $2.42 | — | 100K | 100K | — | +591% |
| Opper | $0.47 | $2.44 | — | 256K | 8K | — | +597% |
| AI/ML API | $1.36 | $2.05 | $1.36 | 256K | 16K | — | +1015% |
| LLMTR | $2.00 | $5.00 | $0.50 | 131K | 131K | — | +1900% |
Value
Price vs. performance
Gemma 4 31B Other Google Other labs Value frontier · GPQA Diamond vs. input price per 1M tokens (log scale) · Drag to pan, pinch or Ctrl + scroll to zoom, double-click to zoom in.
Benchmarks
7 benchmark scores
| Benchmark | Score | Rank | Leader |
|---|---|---|---|
| SciCodeSoftware engineering · Research-coding problems from the natural sciences | 45.5% | #63of 102 | Claude Opus 5.566.9% |
| SimpleQA VerifiedWriting & content · Factual accuracy on 1,000 short questions | 10.4% | #76of 79 | Gemini 4 Argon76.0% |
| WebDev ArenaDesign & visual · People vote on which model builds the better website (Elo) | 1364 | #74of 90 | Claude Opus 5.51820 |
| GPQA DiamondReasoning & knowledge · PhD-level biology, chemistry and physics questions | 75.8% | #80of 122 | Gemini 4 Argon96.4% |
| CritPtReasoning & knowledge · Open-ended, research-level physics problems | 1.4% | #73of 111 | GPT-5.6 Sol32.3% |
| LMCAReasoning & knowledge · Judge the quality of conceptual arguments like experts | 39.3% | #53of 123 | Claude Sonnet 5.568.3% |
| OTIS Mock AIMEMaths · Competition-style problems harder than MATH Level 5 | 73.3% | #78of 120 | Gemini 4 Argon100.0% |
Specs
Details
- Model ID
google/gemma-4-31b-it- Developer
- Release date
- Apr 2, 2026 ·
- Context window
- 262,144 tokens
- Max output
- 16,384 tokens
- API price
- $0.20 / $0.40 per 1M input / output tokens
- Providers
- 48
- Input types
- image, text, video
- Reasoning
- Yes
- Tool calling
- Yes
- Open weights
- Yes
- Free tier
- Yes
Release date and prices from OpenRouter's catalog; providers from OpenRouter and models.dev. Buying directly from a provider can cost a little differently. Speed, latency and uptime are measured on OpenRouter only; uptime is the share of OpenRouter requests each provider served over the last day. Benchmark scores are the best result per benchmark from Epoch AI, licensed CC BY 4.0. Rank counts every model tracked here with a score.