Skip to content
Not available in this workspace
OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

  • Chat
  • Rankings
  • Benchmarks
  • Apps
  • Discover
  • Models
  • Collections
  • Providers
  • Pricing
  • Enterprise
  • Labs

Company

  • About
  • Blog
  • Careers
    Hiring
  • Privacy
  • Terms of Service
  • Support
  • Works With OR
  • Data

Developer

  • Documentation
  • API Reference
  • Developer Platform
  • Status

Connect

  • Discord
  • GitHub
  • LinkedIn
  • X
  • YouTube
Favicon for google

Google: Gemma 4 31B

google/gemma-4-31b-it

Model weights
Compare

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.08 / $0.35per 1M

Context

262K

Released

Apr 2, 2026

Compare
ProvidersPricingPerformanceUptimeBenchmarksAppsActivityFAQ

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 Exacto (highest tool-calling accuracy).

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.

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).

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.

Benchmarks

Scores on standardized evaluations. Higher percentages are better — and rank percentile shows where this model lands among all models on OpenRouter.

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.

Activity

Token volume and request traffic to this model over time.

Quick Start

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.

About Google: Gemma 4 31B

OpenRouter makes Google: Gemma 4 31B available through a unified, OpenAI-compatible API using the model ID google/gemma-4-31b-it. Requests can be routed across 15 providers, including OpenInference, DeepInfra Ultra, CoreWeave, Venice, Chutes, SiliconFlow, NovitaAI, Friendli and 7 more, with automatic failover when an endpoint is unavailable.

Google: Gemma 4 31B accepts images, text and video and returns text. It has a 262,144-token context window and a maximum output of 8,192 tokens.

On OpenRouter, Google: Gemma 4 31B costs $0.08/M input tokens and $0.35/M output tokens, with separate rates for Cache Read at $0.01/M tokens. Effective pricing can be lower when prompt caching applies. It was released on April 2, 2026.

More models from Google

  • Gemini 3.7 Flash
  • Gemini 3.6 Flash
  • Gemini 3.5 Flash Lite

Frequently asked questions

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.

Gemma 4 31B costs $0.08/M input tokens and $0.35/M output tokens, with separate rates for Cache Read at $0.01/M tokens.

Gemma 4 31B has a 262,144 token context window. It supports up to 8,192 completion tokens.

Yes. Gemma 4 31B accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.

Gemma 4 31B accepts images, text and video as input and returns text.

Gemma 4 31B is served by 15 providers on OpenRouter: OpenInference, DeepInfra Ultra, CoreWeave, Venice, Chutes, SiliconFlow, NovitaAI, Friendli and 7 more. Requests are routed to the best available provider, with automatic failover to the others, and you can pin or exclude providers with provider routing.

Gemma 4 31B was released on April 2, 2026.

$0.08$0.35$0.011.08s14 tps
96.49%
$0.09$0.34$0.050.46s42 tps
99.91%
$0.10$0.34$0.101.15s33 tps
98.00%
$0.12$0.36$0.091.20s36 tps
99.90%
$0.13$0.38--0.92s21 tps
96.38%
$0.13$0.40--1.65s14 tps
97.22%
$0.14$0.40--0.36s108 tps
99.99%
$0.14$0.40$0.140.44s38 tps
98.61%
$0.15$0.40$0.060.75s21 tps
99.60%
$0.15$0.46$0.0752.21s20 tps
98.93%
$0.27$0.76--7.03s12 tps
98.28%
$0.28$0.86--0.87s36 tps
88.60%
$0.38$1.15--1.66s33 tps
97.07%
$0.39$0.97--0.70s33 tps
99.64%
$0.75$1.00$0.750.12s101 tps
99.96%
$0.99$1.49$0.990.35s154 tps
99.99%
$0.14$0.40--1.61s4 tps
76.16%
$0.12$0.37$0.0124.69s6 tps
84.04%

Throughput

154tok/s

P50, best across providers

Latency

0.12s

P50, best provider

AutoExacto Benchmarks
GPQA DiamondTAU-Bench
WandB
85.7%--
SambaNova
85.0%--
Together
84.9%--
Together
84.4%--
DeepInfra Turbo
83.6%--
Crusoe
84.8%79.8%
DeepInfra
84.4%75.9%
DeepInfra Ultra
69.2%78.0%
+13 more providers
Uptime (3d)

100.00%

Availability (3d)

99.88%

Availability over the last 3 days

Last 72 hours
Availability 99.88%
3 Days Ago2 Days AgoYesterdayNow

Availability over the last 24 hours

OpenRouter Availability
99.84%
Without Routing
86.69%

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 customization options.

1.
Favicon for https://squadstack.com/
SquadStack AI
new
84.8Btokens
2.
Favicon for https://raylu.ai/
Raylu
new
45.6Btokens
3.
Favicon for https://shapes.inc/
shapes inc
General purpose social agents
30.9Btokens
4.
Favicon for https://mychara.ai/
MyChara.ai
new
20Btokens
5.
Favicon for https://craftrpgs.com/?utm_source=openrouter
Craft
Build and play AI RPGs
18.2Btokens