Gemma 4 31B IT

by Google

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.

Key info

Input
Output
Features
Context window
131K
Max output
β€”
Input price
$0.29 /1M
Output price
$0.59 /1M
  • 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 IT runs on 3 different routes through the Opper gateway. Compare residency, ZDR, and training posture at a glance β€” full data-handling detail per route below.

ProviderRegionZero data retentionTrainingInputOutput
BergetEUZero data retentionNo$0.29$0.59
DeepInfraUSEnterpriseNo$0.13$0.38
NovitaUSEnterpriseNo$0.14$0.40

Training posture across routes: No training on prompts by default.

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 is on by default on Pay-as-you-go β€” no action required. No training on customer data. EU; DPA available.

Zero data retention
On by default on Pay-as-you-go.
Training
No training on customer data.
Logging
None
Third-party access
None disclosed
GDPR DPA
DPA available
Transfer mechanism
Not applicable β€” data stays in EU

DeepInfra β€” United StatesπŸ‡ΊπŸ‡Έ

Zero data retention is available via Opper Enterprise contract. No training on customer data. US; unknown.

Zero data retention
Available via Opper Enterprise contract.
Training
No training on customer data.
Logging
Limited debug logs
Third-party access
None disclosed
GDPR DPA
No DPA
Transfer mechanism
unknown

Novita β€” United StatesπŸ‡ΊπŸ‡Έ

Zero data retention is available via Opper Enterprise contract. No training on customer data. US; SCCs; DPA available.

Zero data retention
Available via Opper Enterprise contract.
Training
No training on customer data.
Logging
Abuse monitoring
Third-party access
None disclosed
GDPR DPA
DPA available
Transfer mechanism
SCCs

Get started

Call Gemma 4 31B IT through the Opper gateway with one API key. Let your coding agent set it up, or call it directly β€” Opper is drop-in compatible with the OpenAI, Anthropic, and Google AI SDKs.

Set it up with your agent

Copy this and paste it into your coding agent β€” Claude Code, Cursor, Codex, and more β€” 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: "berget/gemma-4-31b-it",
messages: [{ role: "user", content: "Hello" }],
});
console.log(completion.choices[0].message.content);

Compare Gemma 4 31B IT with…

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

Other models from Google

Start building with 300+ models

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

Get startedView Documentation
Gemma 4 31B IT by Google β€” pricing, benchmarks, ZDR, EU/US hosting | Opper AI