google logo

Google

Gemma 4 31B

Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output.

At a glance

Input / 1M
$0.09
Output / 1M
$0.34
Context
262K
Max output
16K
Intelligence
14.7
Released
Apr 2026
Image inputText inputVideo inputReasoningTool callingFree tier

Pricing

Gemma 4 31B API pricing

Per-token rates, plus what common tasks actually cost.

Input tokensPer 1M tokens$0.09
Output tokensPer 1M tokens$0.34
Cached input (read)Per 1M tokens$0.05
Cache writePer 1M tokensNot available

Chat message

2K in, 500 out

$0.35

per 1,000 requests

Coding task

30K in, 4K out

$4.06

per 1,000 requests

Long document summary

150K in, 2K out

$14.18

per 1,000 requests

Benchmarks

Gemma 4 31B benchmark scores

Independent scores from Artificial Analysis. Higher is better.

Intelligence index

14.7

Coding index

43.4

Agentic index

4.2

Specs

Context window and capabilities

What it can read, what it can write, and which API features it supports.

Context window
262K tokens
Max output
16K tokens
Input types
Image, Text, Video
Output types
Text
Reasoning effort
Not available
Release date
April 2, 2026
  • Tool calling
  • Structured outputs
  • JSON mode
  • Reasoning
  • Temperature
  • Stop sequences
  • Deterministic seed
  • Verbosity control

FAQ

Frequently asked questions

How much does Gemma 4 31B cost?

Gemma 4 31B costs $0.09 per 1M input tokens and $0.34 per 1M output tokens through the API. A typical chat message costs about $0.35 per 1,000 messages.

What is the context window of Gemma 4 31B?

Gemma 4 31B accepts up to 262K tokens of input and can write up to 16K tokens in a single response.

What is the best alternative to Gemma 4 31B?

Step 3.5 Flash from StepFun is a strong alternative. It offers: 1.1x cheaper output, higher intelligence score.

Can I use Gemma 4 31B alongside other models?

Yes. Shortcut Chat sends one prompt to Gemma 4 31B and any other models you pick at the same time, so you can compare answers side by side.

google logo

Try Gemma 4 31B next to every other model.

Use Gemma 4 31B alongside all the other models. Use one at a time, or multiple together. Get the best answer from every AI.