Gemma 4 31B

google/gemma-4-31b-it
by Google · 2026-04-02

Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image inp…

INPUT$0.13/ 1M tokens
OUTPUT$0.38/ 1M tokens
p50 TTFT1.06 s7d
p95 TTFT914.62 s7d
TRAFFIC397.6Ktokens / 7d
Code samples
from openai import OpenAI

client = OpenAI(
    base_url="https://orcarouter.ai/v1",
    api_key="$ORCAROUTER_API_KEY",
)

response = client.chat.completions.create(
    model="google/gemma-4-31b-it",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)
Pricing
Input / 1M tokens$0.130
Output / 1M tokens$0.380
Cache read / 1M$0.020
CurrencyUSD
Performance
TTFT p50
1.06 s
Output speed
822 tok/s
TTFT p95
914.62 s
Error rate
23.6%
Public benchmarks
AA Coding
38.7
AA Intelligence
39.2
GPQA Diamond
85.7
Humanity's Last Exam
22.7
IFBench
75.6
Long-Context Recall
62.0
SciCode
43.4
TerminalBench Hard
36.4
τ²-Bench
59.9
Source: artificialanalysis.ai
FAQ
How much does Google: Gemma 4 31B cost on OrcaRouter?
Google: Gemma 4 31B is priced at $0.13 per 1M input tokens and $0.38 per 1M output tokens via OrcaRouter. Pricing is pulled live from the routing layer.
What is Google: Gemma 4 31B's context window?
Google: Gemma 4 31B supports a context window of — tokens. Use long-context features (RAG, summarisation) up to that limit.
How do I call Google: Gemma 4 31B via the OpenAI SDK?
Set OpenAI base_url to https://orcarouter.ai/v1, supply your OrcaRouter API key, and pass model="google/gemma-4-31b-it" in the chat.completions.create call.
Does OrcaRouter rate-limit Google: Gemma 4 31B?
Per-model rate limits follow your OrcaRouter plan. Free tiers ship with conservative caps; paid tiers lift them. Check /pricing for current quotas.
Embed this badge
Google: Gemma 4 31B$0.13/M in1061ms p50via OrcaRouter
HTML <a href="https://www.orcarouter.ai/models/google/gemma-4-31b-it" target="_blank"> <img src="https://www.orcarouter.ai/embed/google/gemma-4-31b-it.svg" alt="Google: Gemma 4 31B on OrcaRouter" /> </a>
Markdown [![Google: Gemma 4 31B](https://www.orcarouter.ai/embed/google/gemma-4-31b-it.svg)](https://www.orcarouter.ai/models/google/gemma-4-31b-it)