Skip to content
  • Models
  • Rankings
  • Ori
Sign Up
Sign Up
OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

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

Company

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

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.09 / $0.34per 1M

Context

262K

Released

Apr 2, 2026

Compare
ProvidersPricingPerformanceUptimeBenchmarksAppsActivityFAQExplore

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), Floor (cheapest), 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.

Benchmark score summary for Google: Gemma 4 31B (Artificial Analysis)
SourceBenchmarkScore
Artificial AnalysisGemma 4 31B (Non-reasoning) Coding Index33.2
Artificial AnalysisGemma 4 31B (Non-reasoning) GPQA Diamond76.3%
Artificial AnalysisGemma 4 31B (Non-reasoning) HLE11.8%
Artificial AnalysisGemma 4 31B (Non-reasoning) IFBench53.5%
Artificial AnalysisGemma 4 31B (Non-reasoning) τ²-Bench Telecom65.5%
Artificial AnalysisGemma 4 31B (Non-reasoning) AA-LCR46.7%
Artificial AnalysisGemma 4 31B (Non-reasoning) GDPval-AA9.6%
Artificial AnalysisGemma 4 31B (Non-reasoning) CritPt0.0%
Artificial AnalysisGemma 4 31B (Non-reasoning) Terminal-Bench Hard30.3%
Artificial AnalysisGemma 4 31B (Non-reasoning) AA-Omniscience Accuracy16.6%
Artificial AnalysisGemma 4 31B (Non-reasoning) AA-Omniscience Non-Hallucination Rate18.1%
Artificial AnalysisGemma 4 31B (Reasoning) Intelligence Index15.4
Artificial AnalysisGemma 4 31B (Reasoning) Coding Index43.4
Artificial AnalysisGemma 4 31B (Reasoning) Agentic Index6.7
Artificial AnalysisGemma 4 31B (Reasoning) GPQA Diamond85.7%
Artificial AnalysisGemma 4 31B (Reasoning) HLE23.6%
Artificial AnalysisGemma 4 31B (Reasoning) IFBench75.6%
Artificial AnalysisGemma 4 31B (Reasoning) τ²-Bench Telecom59.9%
Artificial AnalysisGemma 4 31B (Reasoning) AA-LCR69.7%
Artificial AnalysisGemma 4 31B (Reasoning) GDPval-AA12.8%
Artificial AnalysisGemma 4 31B (Reasoning) CritPt1.4%
Artificial AnalysisGemma 4 31B (Reasoning) SciCode45.5%
Artificial AnalysisGemma 4 31B (Reasoning) Terminal-Bench Hard36.4%
Artificial AnalysisGemma 4 31B (Reasoning) AA-Omniscience Accuracy20.0%
Artificial AnalysisGemma 4 31B (Reasoning) AA-Omniscience Non-Hallucination Rate15.0%

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.

Explore more models

AI Models with Vision: Multimodal LLMs for Image UnderstandingCollectionAI Model RankingsRanking
$0.09$0.34$0.0500.87s30 tps
99.15%
$0.10$0.34$0.1001.13s26 tps
96.73%
$0.12$0.36$0.0900.73s28 tps
98.50%
$0.12$0.37$0.0123.21s20 tps
93.16%
$0.13$0.38--1.00s21 tps
98.49%
$0.14$0.40--0.29s145 tps
99.60%
$0.14$0.40--0.71s16 tps
90.89%
$0.15$0.40$0.0601.70s19 tps
98.93%
$0.27$0.76--2.09s84 tps
70.97%
$0.38$1.15--1.50s61 tps
97.76%
$0.39$0.97------
--
$0.75$1.00$0.7500.15s107 tps
99.96%
$0.14$0.40$0.1401.07s14 tps
98.38%
$0.75$1.00$0.2502.64s21 tps
79.31%

Throughput

145tok/s

P50, best across providers

Latency

0.15s

P50, best provider

AutoExacto Benchmarks
GPQA DiamondTAU-BenchTogether84.2%--DeepInfra Turbo83.4%--Together83.1%--SambaNova81.0%--Crusoe84.0%76.8%DeepInfra84.1%75.3%Phala84.3%73.7%DeepInfra Ultra67.7%75.2%
+11 more providers
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.80%

Availability over the last 3 days

Last 72 hours
Availability 99.80%
3 Days Ago2 Days AgoYesterdayNow

Availability over the last 24 hours

OpenRouter Availability
99.81%
Without Routing
93.84%

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://raylu.ai/
Raylu
new
63.9Btokens
2.
Favicon for https://shapes.inc/
Shapes Workshop cost management
General purpose social agents
22.3Btokens
3.
Favicon for https://aarohionline.in/
Aarohi
new
17.9Btokens
4.
Favicon for https://craftrpgs.com/?utm_source=openrouter
Craft
Build and play AI RPGs
17.4Btokens
5.
Favicon for https://app.chainpatrol.io/
ChainPatrol
new
16.3Btokens

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.09/M input tokens and $0.34/M output tokens, with separate rates for Cache Read at $0.05/M tokens.

Gemma 4 31B has a 262,144 token context window. It supports up to 16,384 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 12 providers on OpenRouter: DeepInfra Ultra, CoreWeave, Venice, Chutes, Crusoe, Friendli, NovitaAI, Parasail and 4 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.

More models from Google

Gemini 3.8 Flash

Gemini 3.8 Flash is Google's most intelligent Flash model with significant gains from 3.7 Flash across software engineering, agentic tasks, and multi-step reasoning.

Text1.0M context$0.75 / $3.75
Gemini 3.8 Flash

Gemini 3.8 Flash is Google's most intelligent Flash model with significant gains from 3.7 Flash across software engineering, agentic tasks, and multi-step reasoning.

Text1.0M context$0.375 / $1.875
Gemini 3.7 Flash

Gemini 3.7 Flash is a multimodal model from Google for fast agentic workflows, coding, and complex multi-step reasoning. It is designed for tasks that require responsive performance and reliable multi-step problem solving.

Text1.0M context$0.75 / $3.75
Gemini 3.7 Flash

Gemini 3.7 Flash is a multimodal model from Google for fast agentic workflows, coding, and complex multi-step reasoning. It is designed for tasks that require responsive performance and reliable multi-step problem solving.

Text1.0M context$0.375 / $1.875
Gemini 3.6 Flash

Gemini 3.6 Flash is a high-efficiency model from Google for coding, agentic workflows, and web and app development. It is designed to produce polished outputs with fewer unnecessary edits and less hedging, while reducing token use and the number of model calls needed to complete a task.

Text1.0M context$0.75 / $3.75
Gemini 3.6 Flash

Gemini 3.6 Flash is a high-efficiency model from Google for coding, agentic workflows, and web and app development. It is designed to produce polished outputs with fewer unnecessary edits and less hedging, while reducing token use and the number of model calls needed to complete a task.

Text1.0M context$0.375 / $1.875
Gemini 3.5 Flash Lite

Gemini 3.5 Flash Lite is a high-efficiency model from Google with upgraded agentic capabilities. It is suited for subagents that execute focused tasks within complex, multi-agent workflows.

Text1.0M context$0.30 / $2.50
Gemini 3.5 Flash Lite

Gemini 3.5 Flash Lite is a high-efficiency model from Google with upgraded agentic capabilities. It is suited for subagents that execute focused tasks within complex, multi-agent workflows.

Text1.0M context$0.15 / $1.25
Nano Banana 2 Lite

Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) is Google's fastest, most cost-efficient Gemini image model, built for high-velocity developer pipelines and rapid-fire visual exploration. It delivers text-to-image generation in roughly 4 seconds — about 2.7× faster than Gemini 3.1 Flash Image — while keeping the character consistency, precise editing, and real-world knowledge of the Nano Banana family.

A single drop-in API handles text-to-image, image editing, and multi-image composition. As a multimodal model it also returns text alongside images. Outputs are generated at 1K resolution across 14 aspect ratios and carry an invisible SynthID watermark so they can be identified as AI-generated.

Positioned as the best balance of quality and speed in the Nano Banana 2 line, it lets you generate thousands of images at a fraction of the cost of heavier production models — ideal for prototyping, real-time apps, and visual workflows at scale.

Image66K context$0.25 / $30
Nano Banana 2

Gemini 3.1 Flash Image, a.k.a. "Nano Banana 2," is Google’s latest state of the art image generation and editing model, delivering Pro-level visual quality at Flash speed. It combines advanced contextual understanding with fast, cost-efficient inference, making complex image generation and iterative edits significantly more accessible. Aspect ratios can be controlled with the image_config API Parameter

Image131K context$0.50 / $60
Nano Banana Pro

Nano Banana Pro is Google’s most advanced image-generation and editing model, built on Gemini 3 Pro. It extends the original Nano Banana with significantly improved multimodal reasoning, real-world grounding, and high-fidelity visual synthesis. The model generates context-rich graphics, from infographics and diagrams to cinematic composites, and can incorporate real-time information via Search grounding.

It offers industry-leading text rendering in images (including long passages and multilingual layouts), consistent multi-image blending, and accurate identity preservation across up to five subjects. Nano Banana Pro adds fine-grained creative controls such as localized edits, lighting and focus adjustments, camera transformations, and support for 2K/4K outputs and flexible aspect ratios. It is designed for professional-grade design, product visualization, storyboarding, and complex multi-element compositions while remaining efficient for general image creation workflows.

Image131K context$2 / $120
Gemini Embedding 2

Gemini Embedding 2 is Google's first multimodal embedding model. We currently support mapping text and images into a unified vector space for semantic search and retrieval-augmented generation (RAG). It supports input context up to 8,192 tokens and flexible output dimensions from 128 to 3,072 (recommended: 768, 1536, or 3,072). Designed for cross-modal similarity — you can embed a text query and retrieve the most relevant images, or vice versa — making it well-suited for multimodal search, recommendation, and document understanding pipelines.

Embeddings$0.20/M tokens
Gemini Embedding 2

Gemini Embedding 2 is Google's first multimodal embedding model. We currently support mapping text and images into a unified vector space for semantic search and retrieval-augmented generation (RAG). It supports input context up to 8,192 tokens and flexible output dimensions from 128 to 3,072 (recommended: 768, 1536, or 3,072). Designed for cross-modal similarity — you can embed a text query and retrieve the most relevant images, or vice versa — making it well-suited for multimodal search, recommendation, and document understanding pipelines.

Embeddings$0.10/M tokens
Gemini 3.5 Flash

Gemini 3.5 Flash is Google's high-efficiency multimodal model, bringing near-Pro level coding and reasoning at Flash-tier cost and speed. It is highly optimized for coding proficiency and parallel agentic execution loops, supporting text, image, video, audio, and PDF inputs.

Defaults to medium thinking effort for faster and more cost-efficient responses, with full support for thinking levels (minimal, low, medium, high) for fine-grained cost/performance trade-offs.

Text1.0M context$1.50 / $9
Gemini 3.5 Flash

Gemini 3.5 Flash is Google's high-efficiency multimodal model, bringing near-Pro level coding and reasoning at Flash-tier cost and speed. It is highly optimized for coding proficiency and parallel agentic execution loops, supporting text, image, video, audio, and PDF inputs.

Defaults to medium thinking effort for faster and more cost-efficient responses, with full support for thinking levels (minimal, low, medium, high) for fine-grained cost/performance trade-offs.

Text1.0M context$0.75 / $4.50
Gemini 3.1 Flash Lite

Gemini 3.1 Flash Lite is Google’s GA high-efficiency multimodal model optimized for low-latency, high-volume workloads. It supports text, image, video, audio, and PDF inputs, and is designed for lightweight agentic workflows, simple data extraction, and applications where responsiveness and API cost are the primary constraints.

Supports full thinking levels (minimal, low, medium, high) for fine-grained cost/performance trade-offs. Priced at half the cost of Gemini 3 Flash.

Text1.0M context$0.25 / $1.50
Gemini 3.1 Flash Lite

Gemini 3.1 Flash Lite is Google’s GA high-efficiency multimodal model optimized for low-latency, high-volume workloads. It supports text, image, video, audio, and PDF inputs, and is designed for lightweight agentic workflows, simple data extraction, and applications where responsiveness and API cost are the primary constraints.

Supports full thinking levels (minimal, low, medium, high) for fine-grained cost/performance trade-offs. Priced at half the cost of Gemini 3 Flash.

Text1.0M context$0.125 / $0.75
Chirp 3

Chirp 3 is Google's latest multilingual speech-to-text model. It offers enhanced transcription accuracy across 24 GA languages and 77+ preview languages, with support for automatic language detection, automatic punctuation, and a built-in denoiser for cleaner audio processing.

Transcription$0.000267/second
Gemini Pro Latest

This model always redirects to the latest model in the Gemini Pro family.

Text1.0M context
Gemini Flash Latest

This model always redirects to the latest model in the Gemini Flash family.

Text1.0M context