Gemma 4 31B
Gemma 4 31B is worth evaluating for rag, agents, and long context when its provider route and context window match the workload.
Use it for
- Teams evaluating rag, agents, and long context
- Workloads that can use a 256k context window
- Buyers comparing 2 tracked provider routes
Do not use it for
- Workloads where another current model has stronger sourced task evidence
- Family
- Gemma 4
- Released
- 2026-03-31
- Context
- 256k
- Parameters
- 31B
- Knowledge cutoff
- 2025-01
- Openness
- Open source
- License
- Apache 2.0OSI-approvedCommercial use: permitted
- Weights
- Available
- Code
- Unknown
Cheapest of 2 routes · Vercel AI Gateway
About
Dense 31B model bridging the gap between server-grade performance and local execution. Ranks #3 on Arena AI leaderboard. Supports text, image, and video inputs with advanced reasoning.
Gemma 4 31B is an open-source model in the Gemma 4 family. The structured metadata tracks a 256k-token context window, multimodal input, and function calling. This page tracks provider routes through Vercel AI Gateway and AWS Bedrock, with the cheapest tracked route listed at $0.14 input and $0.4 output per 1M tokens. Headline tracked benchmarks include Google-Proof Q&A 85.7, MMMU Pro 76.9, and SWE-rebench 41.6.
Top use-case fit: coding, agents, and build tasks
RAG
Included by capability and metadata signals in the decision map.
Agents
Included by capability and metadata signals in the decision map.
Long context
Included by capability and metadata signals in the decision map.
Provider price ladder
Compare all 2Compare API pricing across 2 providers for input and output tokens, batch, and cached reads when available.
| Provider | Input / 1M | Output / 1M | Route |
|---|---|---|---|
| Vercel AI Gateway | $0.140 | $0.400 | Serverless |
| AWS Bedrock | - | - | ServerlessPartial |
Available via routers & gateways(1)
Capabilities
Benchmark peer barsfor RAG
No task-mapped benchmark peers are available for this model yet.
Benchmark scores(3)
| Benchmark | Score | Version | Source |
|---|---|---|---|
| Google-Proof Q&A | 85.7 | diamond | https://artificialanalysis.ai/leaderboards/models |
| MMMU Pro | 76.9 | LLM-Stats aggregator | https://llm-stats.com/benchmarks/mmmu-pro |
| SWE-rebench | 41.6 | pass@1 (best of 5 runs) | https://swe-rebench.com/leaderboard |
Migration checks
No linked migration route is available for this model yet.
Frequently asked questions
What is the context window of Gemma 4 31B?
Gemma 4 31B has a context window of 256k tokens.
How much does Gemma 4 31B cost?
Gemma 4 31B is available at $0.14/1M input tokens through Vercel AI Gateway.
When was Gemma 4 31B released?
Gemma 4 31B was released on 2026-03-31.
Which providers offer Gemma 4 31B?
Gemma 4 31B is available from 2 providers: Vercel AI Gateway, AWS Bedrock.
What benchmarks has Gemma 4 31B been tested on?
Gemma 4 31B has been evaluated on 3 benchmarks, including Google-Proof Q&A, MMMU Pro, SWE-rebench.
Cheapest of 2 routes · Vercel AI Gateway