---
last_updated: 2026-11-02
source_url: https://opper.ai/google/gemma-4-31b-it
title: "Gemma 4 31B IT by Google"
description: "Google Gemma 4 31B IT, instruction-tuned 31B dense model with multimodal reasoning, function calling, and 256K context."
---

# Gemma 4 31B IT

By [Google](https://opper.ai/google).

Released 5 days after [Gemini 3.1 Flash Live](https://opper.ai/google/gemini-3-1-flash-live-preview) · [Announcement](https://ai.google.dev/gemma/docs/releases) · [All Google releases](https://opper.ai/model-releases/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

- Model id: `gemma-4-31b-it` (routes across DeepInfra, Google Cloud, Geodd, Novita, Regolo)
- Input: Text, Image, Video
- Output: Text
- Features: Reasoning, Tools, Structured output
- Context window: 256K
- Max output: 8K
- Input price: n/a
- Output price: n/a
- Released: 31 Mar 2026
- 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 10 different routes through the Opper gateway. Prices are per 1M tokens. In the EU it is served by Berget (Sweden), Greenference, Infercom (Germany) and 1 more. [See every model hosted in the EU](https://opper.ai/models/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](https://docs.opper.ai/build/gateway/service-tiers). Its routes and prices, live from the catalogue, are public JSON with no API key needed at https://api.opper.ai/v3/models?q=gemma-4-31b-it.

| Provider | Model id | Region | Zero data retention | Training | Input | Output | Cache read |
| --- | --- | --- | --- | --- | --- | --- | --- |
| [Berget](https://opper.ai/provider/berget) | `berget/gemma-4-31b-it` | EU (Sweden) | Yes | No | $0.28 | $0.56 | Input price |
| [DeepInfra](https://opper.ai/provider/deepinfra) | `deepinfra/gemma-4-31b-it` | US (United States) | Yes | No | $0.20 | $0.40 | Input price |
| [DeepInfra](https://opper.ai/provider/deepinfra), Flex | `deepinfra:flex/gemma-4-31b-it` | US (United States) | Yes | No | $0.16 | $0.32 | $0.16 |
| [DeepInfra](https://opper.ai/provider/deepinfra), Priority | `deepinfra:priority/gemma-4-31b-it` | US (United States) | Yes | No | $0.30 | $0.60 | $0.30 |
| [DigitalOcean](https://opper.ai/provider/digitalocean) | `digitalocean/gemma-4-31B-it` | US (United States) | Abuse monitoring | No | $0.18 | $0.50 | $0.04 |
| [Google Cloud](https://opper.ai/provider/google) | `gemini/gemma-4-31b` | US (United States) | Abuse monitoring | No | n/a | n/a | Input price |
| [Geodd](https://opper.ai/provider/geodd) | `geodd:us/gemma-4-31b` | US (United States) | Yes | No | $0.13 | $0.37 | Input price |
| [Greenference](https://opper.ai/provider/greenference) | `greenference/gemma-4-31b-it` | EU | Yes | No | $0.15 | $0.42 | $0.06 |
| [Infercom](https://opper.ai/provider/infercom) | `infercom/gemma-4-31b-it-eu` | EU (Germany) | Yes | No | $0.22 | $0.39 | Input price |
| [Novita](https://opper.ai/provider/novita) | `novita/google/gemma-4-31b-it` | US (United States) | Yes | No | $0.14 | $0.40 | Input price |
| [Regolo](https://opper.ai/provider/regolo) | `regolo/gemma4-31b` | EU (Italy) | Yes | No | $0.45 | $2.35 | Input price |
| [SCX](https://opper.ai/provider/scx) | `scx:global/gemma-4-31b-it` | Multi-region | Yes | No | $0.38 | $1.15 | Input price |

## 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; 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

Verified by Opper on 2026-09-16.

### DeepInfra — 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
- GDPR DPA: DPA available
- Transfer mechanism: SCCs

Verified by Opper on 2026-10-19.

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

Verified by Opper on 2026-09-03.

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

Verified by Opper on 2026-09-17.

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

Verified by Opper on 2026-09-16.

### Greenference — EU

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: Subprocessors may read content
- GDPR DPA: DPA available
- Transfer mechanism: Not applicable — data stays in EU

Verified by Opper on 2026-09-21.

### 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
- GDPR DPA: DPA available
- Transfer mechanism: Not applicable — data stays in EU

Verified by Opper on 2026-09-16.

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

Verified by Opper on 2026-09-15.

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

Verified by Opper on 2026-07-30.

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

Verified by Opper on 2026-09-15.

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

Paste this into a coding agent like Claude Code, Cursor or Codex and it will wire up Opper for you:

```text
Use curl to download, read and follow: https://skills.opper.ai Call Gemma 4 31B IT
```

### Or call it directly

OpenAI:

```javascript
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);
```

Anthropic:

```javascript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  apiKey: process.env.OPPER_API_KEY,
  baseURL: "https://api.opper.ai/v3/compat",
});

const message = await client.messages.create({
  model: "gemma-4-31b-it",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Hello" }],
});
console.log(message.content);
```

Gemini:

```javascript
import { GoogleGenAI } from "@google/genai";

const ai = new GoogleGenAI({
  apiKey: process.env.OPPER_API_KEY,
  httpOptions: { baseUrl: "https://api.opper.ai/v3/compat" },
});

const response = await ai.models.generateContent({
  model: "gemma-4-31b-it",
  contents: "Hello",
});
console.log(response.text);
```

cURL:

```bash
curl https://api.opper.ai/v3/compat/chat/completions \
  -H "Authorization: Bearer $OPPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemma-4-31b-it",
    "messages": [{ "role": "user", "content": "Hello" }]
  }'
```

## Use Gemma 4 31B IT in your apps

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

- [Claude Code](https://opper.ai/apps/claude-code/gemma-4-31b-it)
- [Claude Cowork](https://opper.ai/apps/claude-cowork/gemma-4-31b-it)
- [Codex](https://opper.ai/apps/codex/gemma-4-31b-it)
- [DeepSeek Harness](https://opper.ai/apps/deepseek-harness/gemma-4-31b-it)
- [GitHub Copilot CLI](https://opper.ai/apps/github-copilot-cli/gemma-4-31b-it)
- [Aider](https://opper.ai/apps/aider/gemma-4-31b-it)
- [Goose](https://opper.ai/apps/goose/gemma-4-31b-it)
- [Droid](https://opper.ai/apps/droid/gemma-4-31b-it)
- [OpenCode](https://opper.ai/apps/opencode/gemma-4-31b-it)
- [Pi](https://opper.ai/apps/pi/gemma-4-31b-it)
- [OpenClaw](https://opper.ai/apps/openclaw/gemma-4-31b-it)
- [Hermes](https://opper.ai/apps/hermes/gemma-4-31b-it)
- [Copilot for Obsidian](https://opper.ai/apps/obsidian-copilot/gemma-4-31b-it)
- [OmniRoute](https://opper.ai/apps/omniroute/gemma-4-31b-it)
- [Cursor](https://opper.ai/apps/cursor/gemma-4-31b-it)
- [Cline](https://opper.ai/apps/cline/gemma-4-31b-it)
- [Continue](https://opper.ai/apps/continue/gemma-4-31b-it)
- [Kilo Code](https://opper.ai/apps/kilo-code/gemma-4-31b-it)
- [GitHub Copilot](https://opper.ai/apps/github-copilot/gemma-4-31b-it)
- [Zed](https://opper.ai/apps/zed/gemma-4-31b-it)
- [JetBrains AI Assistant](https://opper.ai/apps/jetbrains-ai-assistant/gemma-4-31b-it)
- [Voidleap Code](https://opper.ai/apps/voidleap-code/gemma-4-31b-it)
- [n8n](https://opper.ai/apps/n8n/gemma-4-31b-it)
- [LibreChat](https://opper.ai/apps/librechat/gemma-4-31b-it)
- [Open WebUI](https://opper.ai/apps/open-webui/gemma-4-31b-it)
- [See all apps](https://opper.ai/apps)

## Other models from Google

- [Gemini 4 Argon](https://opper.ai/google/gemini-4-argon)
- [Gemini 3.8 Flash](https://opper.ai/google/gemini-3-8-flash)
- [Gemini 3.5 Flash-Lite](https://opper.ai/google/gemini-3-5-flash-lite)
- [Gemini 3.7 Flash](https://opper.ai/google/gemini-3-7-flash)
- [Gemini 3.6 Flash](https://opper.ai/google/gemini-3-6-flash)
- [Gemini 3.5 Flash](https://opper.ai/google/gemini-3-5-flash)
