Using Gemma 4 31B IT on OpenRouter
Implementation guide · Gemma 4 · Google DeepMind
ServerlessOpen Source
Quick Start
- 1
- 2Use the OpenRouter SDK or REST API to call
google/gemma-4-31b-it— see the documentation for request format. - 3
Code Examples
About OpenRouter
OpenRouter provides a unified interface for Large Language Models with better pricing, improved uptime, and no subscription requirements. Route across providers for cost optimization and reliability.
OpenRouter is a multi-provider LLM aggregator offering unified API access to 300+ models from all major labs and emerging providers, with automatic failover for reliability.
Pricing on OpenRouter
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.13 |
| Output tokens | $0.38 |
Capabilities
MultimodalFunction CallingStructured Outputs
About Gemma 4 31B IT
Instruction-tuned variant of the 31B model with enhanced instruction-following. Maintains #3 Arena leaderboard performance with multimodal capabilities.
Model Specs
Released2026-03-31
Parameters31B
Context256k
Knowledge cutoff2025-01