google logo
google

Google: Gemma 4 31B (free)

Source description (English)

Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output. Features a 256K token context window, configurable thinking/reasoning mode, native function...

Overview

Model specifications

Context
262,144 tokens
Maximum output
32,768 tokens
Architecture
text+image+video->text
Tokenizer
Gemma
Knowledge cutoff
Not provided
Moderated
No
OPENROUTER

Complete pricing

Synchronized OpenRouter rates. Token prices are shown per one million tokens.

Input
Free
per 1M tokens
Output
Free
per 1M tokens
API

Model configuration

Default parameters

temperature
1
top_p
0.95
top_k
64

Reasoning

Reasoning required
No
Default parameters
No
API

Quick start

Set OPENROUTER_API_KEY locally. Python requires requests; JavaScript runs in Node.js. Keep the key on the server.

API documentation

curl --fail-with-body https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"google/gemma-4-31b-it:free","messages":[{"role":"user","content":"Hello!"}]}'
Capabilities

InputOutput

Input
imagetextvideo
Output
text
Reasoning

No

API

Supported API parameters

include_reasoningmax_tokensreasoningresponse_formatseedtemperaturetool_choicetoolstop_p
Available providers

1 Provider

Checked: September 7, 2026

Live providers on OpenRouter

Provider availability, latency, throughput and routing can change continuously. Open the source page for current operational data.

OpenRouter

Google AI Studio

Not provided
Context
262K
Maximum output
33K
Input
Free
Output
Free
Cache read
Not provided
Cache write
Not provided
google

4 models

All models