Gemma 4 31B

by Google

Released 28 days after Gemini 3.1 Flash Lite Preview · Announcement · All Google releases

Gemma 4 31B IT is the instruction-tuned version of the dense 31-billion parameter flagship, tuned for chat, task completion, and agentic workflows. It accepts text, image, and video inputs and carries a 256K token context window for handling extensive documents and conversations. The model supports native function calling, structured output, configurable thinking modes for step-by-step reasoning, and multilingual understanding across more than 140 languages. Built for both complex reasoning and local execution, Gemma 4 31B IT handles coding, multimodal analysis, and agent-driven tasks, while a hybrid attention design keeps long-context processing efficient. Instruction tuning improves natural conversation and adherence to system prompts. Released April 2, 2026, under the Apache 2.0 license.

Call Gemma 4 31B on Opper with the OpenAI SDK. Sign up without a credit card. Get started

Key info

Input
Output
Features
Context window
256K
Max output
8K
Input price
/1M
Output price
/1M
Released
  • EU residency available
  • US residency available
  • Zero data retention on pay-as-you-go
  • No training by default
  • GDPR DPA available

Available routes

Gemma 4 31B runs on 9 different routes through the Opper gateway. Compare residency, zero data retention and training posture at a glance, with full data-handling detail per route below.

ProviderRegionZero data retentionTrainingInputOutput
EUNo$0.29$0.58
USNo$0.13$0.38
USNo$0.18$0.50
USNo
USNo$0.13$0.37
EUNo$0.23$0.40
USNo$0.14$0.40
EUNo$0.46$2.42
SCX
MultiNo$0.39$1.16

Uptime and availability

Gemma 4 31B runs on 4 independently monitored routes through the Opper gateway. A direct integration leaves you on one of them, the gateway serves whichever is healthy.

100%effective uptime, last 30 days
Averaged across these routes on their own, a single provider reached 99.69% over the same window.
Daily status through the gateway, which serves each request from whichever route is healthy.
4 monitored providers serve Gemma 4 31B.

Measured over the last 30 days from each provider's official status feed via StatusGator. Refreshed hourly. 5 further routes for this model are not on the board yet and are not counted above. See uptime for every provider Opper monitors.

Data handling per route

Each route hosting Gemma 4 31B has its own privacy posture, residency, and GDPR terms. Postures are maintained by Opper with a last-verification timestamp.

Berget Sweden🇸🇪

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. EU; DPA available.

Zero data retention
Yes. Nothing is logged, held for abuse monitoring or used for training.
Training
No training on customer data.
Logging
None
Abuse monitoring
No classifier
Caching
Content cached for replay
Subprocessor access
No subprocessor reads content
GDPR DPA
DPA available
Transfer mechanism
Not applicable — data stays in EU

DeepInfra United States🇺🇸

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. US; unknown; DPA available.

Zero data retention
Yes. Nothing is logged, held for abuse monitoring or used for training.
Training
No training on customer data.
Logging
None
Abuse monitoring
No classifier
GDPR DPA
DPA available
Transfer mechanism
unknown

DigitalOcean United States🇺🇸

Zero data retention with abuse monitoring: nothing is logged or used for training; content flagged by abuse monitoring is held for review. No training on customer data. US; dpf sccs; DPA available.

Zero data retention
With abuse monitoring, flagged content held.
Training
No training on customer data.
Logging
None
Abuse monitoring
Always on, holds flagged content, stored in United States
Caching
Content cached for replay
Subprocessor access
No subprocessor reads content
GDPR DPA
DPA available
Transfer mechanism
dpf sccs

Google Cloud United States🇺🇸

Zero data retention with abuse monitoring: prompts and outputs are kept for abuse monitoring only, for a window the provider does not state, and are not used for training. No training on customer data. US; SCCs; DPA available.

Zero data retention
With abuse monitoring, window not stated.
Training
No training on customer data.
Logging
Abuse monitoring
Abuse monitoring
On by default, holds flagged content, 55 days, a person can view samples
GDPR DPA
DPA available
Transfer mechanism
SCCs

Geodd United States🇺🇸

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. US; SCCs; DPA available.

Zero data retention
Yes. Nothing is logged, held for abuse monitoring or used for training.
Training
No training on customer data.
Logging
None
Abuse monitoring
No classifier
Caching
Not cached
GDPR DPA
DPA available
Transfer mechanism
SCCs

Infercom Germany🇩🇪

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. EU; DPA available.

Zero data retention
Yes. Nothing is logged, held for abuse monitoring or used for training.
Training
No training on customer data.
Logging
None
Abuse monitoring
No classifier
Subprocessor access
Subprocessors may read content
GDPR DPA
DPA available
Transfer mechanism
Not applicable — data stays in EU

Novita United States🇺🇸

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. US; SCCs; DPA available.

Zero data retention
Yes. Nothing is logged, held for abuse monitoring or used for training.
Training
No training on customer data.
Logging
None
Abuse monitoring
On by default, keeps nothing
GDPR DPA
DPA available
Transfer mechanism
SCCs

Regolo Italy🇮🇹

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. EU; DPA available.

Zero data retention
Yes. Nothing is logged, held for abuse monitoring or used for training.
Training
No training on customer data.
Logging
None
Abuse monitoring
No classifier
Subprocessor access
No subprocessor reads content
GDPR DPA
DPA available
Transfer mechanism
Not applicable — data stays in EU

SCX Multi-region

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. GLOBAL; unknown; DPA available.

Zero data retention
Yes. Nothing is logged, held for abuse monitoring or used for training.
Training
No training on customer data.
Logging
None
Abuse monitoring
Optional (off by default), keeps nothing
GDPR DPA
DPA available
Transfer mechanism
unknown

Get started

Call Gemma 4 31B through the Opper gateway with one API key. Opper is drop-in compatible with the OpenAI, Anthropic and Google AI SDKs.

Gemma 4 31B is a free model on Opper. Sign up needs no credit card: you get an API key straight away and the free models work in the playground and the API. Add a card to use premium models, pay-as-you-go with no minimum.

Set it up with your agent

Copy this and paste it into a coding agent like Claude Code, Cursor or Codex and it'll wire up Opper for you.

Or call it directly

import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.OPPER_API_KEY,
baseURL: "https://api.opper.ai/v3/compat",
});
const completion = await client.chat.completions.create({
model: "gemma-4-31b-it",
messages: [{ role: "user", content: "Hello" }],
});
console.log(completion.choices[0].message.content);

Compare Gemma 4 31B with…

Side-by-side on privacy, EU hosting, pricing, and benchmarks.

Other models from Google

Start building with 700+ models

One API key. Every major provider. Up and running in minutes.

Get startedView Documentation