Gemma 4 31B IT

by Google · Released , 5 days after Gemini 3.1 Flash Live · 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.

Sign up without a credit card · OpenAI SDK compatible
Input
Free
Output
Free
Cache read
$0.02 / 1M
Context
262K tokens
Max output
8K tokens
Routes
10 EU · US · India · Multi

Available routes

Gemma 4 31B IT runs on 10 different routes through the Opper gateway.

ProviderRegionZero data retentionTrainingInputOutputCache read
EUNo$0.27$0.55Input priceNot offered on this routeNot offered on this route
USNo$0.20$0.40Input price
EUNo$0.14$0.40$0.02Not offered on this routeNot offered on this route
USNo——Input priceNot offered on this routeNot offered on this route
USNo$0.13$0.37Input priceNot offered on this routeNot offered on this route
EUNo$0.15$0.42$0.06Not offered on this routeNot offered on this route
EUNo$0.22$0.38Input priceNot offered on this routeNot offered on this route
IndiaNo$0.14$0.40$0.05Not offered on this routeNot offered on this route
EUNo$0.44$2.30Input priceNot offered on this routeNot offered on this route
MultiNo$0.40$1.22Input priceNot offered on this routeNot offered on this route

Compare residency, zero data retention and training posture at a glance, with full data-handling detail per route below. In the EU it is served by Berget (Sweden), FlexAI, Greenference and 2 more. See every model hosted in the EU. One route also sells flex and priority processing: the same model at another price, picked per request with service_tier. How service tiers work.

Live routes and prices as JSON: api.opper.ai/v3/models?q=gemma-4-31b-it

Key info

Input
Output
Features
Context window
256K
Max output
8K
Input price
— /1M
Output price
— /1M
Released
Web search
  • EU residency available on Berget, FlexAI, Greenference, Infercom and Regolo
  • US residency available on DeepInfra, Google Cloud and Geodd
  • Zero data retention on pay-as-you-go
  • No training by default

Uptime and availability

Gemma 4 31B IT runs on 3 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.82% over the same window.
Daily status through the gateway, which serves each request from whichever route is healthy.
3 monitored providers serve Gemma 4 31B IT.

Measured over the last 30 days from each provider's official status feed via StatusGator. Refreshed hourly. 7 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 IT 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.

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
Prompt cache
Subprocessor access
No subprocessor reads content
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; SCCs.

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
Transfer mechanism
SCCs

FlexAI — EU🇪🇺

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

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
Prompt cache
Subprocessor access
No subprocessor reads content
Transfer mechanism
Not applicable — data stays in EU

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.

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
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.

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
No prompt cache
Transfer mechanism
SCCs

Greenference — EU🇪🇺

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

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
Prompt cache
Subprocessor access
Subprocessors may read content
Transfer mechanism
Not applicable — data stays in EU

Infercom — Germany🇩🇪

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

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
Transfer mechanism
Not applicable — data stays in EU

Jarvislabs — India🇮🇳

Zero data retention: nothing is logged or used for training. No training on customer data. IN; unknown.

Zero data retention
Yes. Nothing is logged or used for training.
Training
No training on customer data.
Logging
None
Caching
Prompt cache
Transfer mechanism
unknown

Regolo — Italy🇮🇹

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

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
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.

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
Transfer mechanism
unknown

Get started

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

Gemma 4 31B IT 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);

Use Gemma 4 31B IT in your apps

Pick your tool, then choose Gemma 4 31B IT to see how to run it through Opper.

Use Gemma 4 31B IT with tools

The tools Gemma 4 31B IT can use through Opper. Pick one to see how to set it up.

Compare Gemma 4 31B IT with…

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

Other models from Google