Skip to content
Google

Gemma 4 31B

Gemma 4 31B is a large language model made by Google, added to the catalog on 2 Apr 2026. It has a context window of 262,144 tokens and costs $0.20 per 1M input tokens and $0.40 per 1M output tokens. It accepts text, images and video and produces text. Typical uses: summarising long documents, answering questions about images and working with video and text prompts.

Price checked · source: OpenRouter

What Gemma 4 31B is

Google Gemma 4 31B is an instruction model that accepts text, image, and video input and produces text. Its context window is 262,144 tokens, and it can generate up to 16,384 output tokens. The large context gives it room to handle lengthy prompts or substantial source material within one context. The catalog describes configurable thinking or reasoning mode, and lists reasoning among its supported capabilities.

The model supports tool use, structured outputs, and response-format controls. These capabilities suit tasks where a request involves source material and calls for a text response in a specified format, or where tool use is part of a workflow. Since it accepts visual input as well as text, it can be used to work with images and video alongside written prompts; its listed output is text. Its context window may also be useful for handling long documents or collections of input material in one request.

The catalog identifies the model’s supported input types, output type, context limit, and interface capabilities, but does not specify particular applications or guarantee a given result. Its stated capabilities provide a basis for choosing it for text work involving visual material, extended context, reasoning, or structured responses. The maximum output length is 16,384 tokens, separate from the 262,144-token context window.

Key features

  • Accepts text, image, and video input and produces text
  • Has a 262,144-token context window
  • Supports configurable thinking or reasoning mode
  • Supports tools, structured outputs, and response-format controls

Typical uses

  • Summarising long documents
  • Answering questions about images
  • Working with video and text prompts
  • Generating structured text responses
  • Tool-assisted text workflows

Gemma 4 31B pricing

US dollars, list price through OpenRouter.

Checked
Gemma 4 31B price list, by variant
ItemStandardFree
Input, per 1M tokens$0.20$0
Output, per 1M tokens$0.40$0
Variants of Gemma 4 31B that share this page
VariantModel id
Freegoogle/gemma-4-31b-it:free

A variant is the same model under another id, with prices or limits of its own. Its prices are the columns of the list above.

No price change since it was added on 2 Apr 2026.

What typical tasks cost with Gemma 4 31B
What a task costsCost
Answer a short question500 in / 300 out$0.0002
Summarise a 50-page PDF25,000 in / 800 out$0.0053
Review a 2,000-line source file30,000 in / 2,000 out$0.0068
Read a 300-page contract set150,000 in / 1,500 out$0.031
Check the provider's pageToken counts are estimates. A maker's direct price and its monthly plans can differ from the per-token price shown here.

Gemma 4 31B specifications

Gemma 4 31B limits and identity
Model idgoogle/gemma-4-31b-it
Versiongemma-4-31b-it-20260402
Context window262,144 tokensAbout 196,608 English words
Max output16,384 tokens
Knowledge cutoffNot published
Added to catalog2 Apr 2026
Gemma 4 31B capabilities
Input typesimage, text, video
Output typestext
Tool callingYes
Structured outputsYes
Reasoning effort controlNo
Content moderationNot applied by provider

Sample outputs

The same prompts are given to every model, and the unedited output is shown with the date it was produced. Upend does not publish leaderboard scores it did not run.

No output has been recorded for Gemma 4 31B yet.

Compare Gemma 4 31B

Side by side with other models: prices, context window, what each accepts and supports, and the same four tasks priced on both.

Gemma 4 31B questions

How much does Gemma 4 31B cost?

Gemma 4 31B costs $0.20 per 1M input tokens and $0.40 per 1M output tokens through OpenRouter, as checked on 22 Nov 2026. Summarising a 50-page PDF costs about $0.0053.

What is the context window of Gemma 4 31B?

262,144 tokens, or roughly 196,608 English words. It can write up to 16,384 tokens in one response.

Can Gemma 4 31B read images and PDFs?

It accepts text, images and video as input. It produces text, so it cannot generate images.

How do I try Gemma 4 31B?

Use the "Try Gemma 4 31B" button on this page. It opens the chat with Gemma 4 31B selected; you type the question and press send.

Try Gemma 4 31B on your own question.

It opens in the chat with this model already selected.

Sign in to Upend

Use an account you already have, or get a one-time code by email.

Use a password instead

For accounts that already have a password. Forgotten it? An emailed code signs you in just the same.