Gemma 4 31B
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…
Full description at the source- Input price
- per 1M tokens
- Output price
- per 1M tokens
- Context
- 262.1K16.4K max output
- Cost / request
- 8K in · 500 out
- Writing Elo
- 1366EQ-Bench creative writing
01Routes and pricing
02Capabilities
- Input
- text
- Output
- text
- Context
- 262.1K
- Max output
- 16.4K
ReasoningStructured outputJSON modeSeeded sampling
03Benchmarks
Creative writing
1366.0 EloEQ-Bench Creative Writing v3EQ-Bench Creative Writing v3Emotional intelligence
1120.3 EloEQ-Bench 4EQ-Bench 404Quick start
Call it with your RProuter key
Any OpenAI-compatible SDK works. Point it at the RProuter base URL from your API keys page and use this model ID.
Catalog source: openrouter.ai · checked 2026-09-16
const response = await client.chat.completions.create({
model: "google/gemma-4-31b-it",
messages: [{ role: "user", content: "A story begins…" }],
max_tokens: 500,
stream: true,
});
for await (const chunk of response) {
process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}