Using Gemma 4 31B IT on OpenRouter
Implementation guide · Gemma 4 · Google DeepMind
ServerlessOpen Source
OpenRouter exposes Gemma 4 31B IT through model ID google/gemma-4-31b-it. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.
Last refreshed 2026-06-15. Next refresh: weekly.
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
Pricing on OpenRouter
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.13 |
| Output tokens | $0.38 |
Capabilities
VisionMultimodalJSON / Tool useStructured 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