Favicon for google

Google: Gemma 4 31B

google/gemma-4-31b-it

Model weights

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 calling, and multilingual support across 140+ languages. Strong on coding, reasoning, and document understanding tasks. Apache 2.0 license.

Modalities
In / out price
$0.10 / $0.34per 1M
Context
262K
Released
Apr 2, 2026

Providers

Different companies host the same model. OpenRouter routes your request to one of them based on the routing mode you pick: Balanced (price + speed), Nitro (fastest), or Floor (cheapest).

Pricing

The average price customers actually pay for this model, next to the prices providers post. Caching and discounts mean the price actually paid is often well below the listed one.

Weighted average

Input
$0.1405/M tokens
Output
$0.4424/M tokens
Price history
No effective price data for this selection

Performance

Throughput is how fast the model writes (tokens per second — higher is better). Latency is total round-trip time (lower is better). TTFT is time-to-first-token — how long before you see anything appear (lower is better).

Throughput
173tok/s

P50, best across providers

Latency
0.17s

P50, best provider

AutoExacto benchmarks
GPQA DiamondTAU-BenchDeepInfra (fp8)84.9%76.8%DeepInfra (fp4)84.8%76.1%Prime Intellect84.1%76.7%SambaNova84.1%76.5%NovitaAI85.1%73.9%ModelRun [by Modular]84.4%74.3%
+13 more providers

Uptime

Uptime is the percentage of the past 3 days that at least one provider was responding to requests. Availability is the percentage of time that inference was successfully served. OpenRouter continuously monitors and uses the next-best provider when one returns an error.

Uptime (3d)The model was reachable. Request routed to a provider.
100.00%
Availability (3d)The model returned inference from any provider. Errors and empty responses count against it.
99.85%

Availability over the last 3 days

Last 72 hours
Availability 99.85%
3 Days Ago2 Days AgoYesterdayNow

Availability over the last 24 hours

OpenRouter Availability
99.91%
Without Routing
95.87%

When an error occurs in an upstream provider, we can recover by routing to another healthy provider, if your request filters allow it. You can access per-provider uptime data programmatically through the Endpoints API. Learn more about our load balancing and provider routing options.

Benchmarks

Scores on standardized evaluations and this model’s own outputs on shared benchmark prompts. Higher percentages are better — and each rank shows where this model lands among the models evaluated on that source.

Apps

Public apps that send the most traffic to this model. Good signal for what real production workloads look like — and a hint at which use cases this model is best suited for.

1.
39.6Btokens
2.
32.7Btokens
3.
30.6Btokens
4.
20.7Btokens
5.
Favicon for https://craftrpgs.com/?utm_source=openrouter
Craft
15.1Btokens
Rest of OpenRouter
74B
Top 5 Apps
3.81B

Activity

Token volume and request traffic to this model over time.

API

Drop-in code to call this model. OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. The only thing that changes between models is the model slug below.

Not currently available through EU in-region routing. In-region routing docs

Documentation

Guides, cookbooks, blog posts, and tools for building with Google: Gemma 4 31B on OpenRouter.

Frequently asked questions