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.
提供商
不同公司托管同一模型。OpenRouter 根据您选择的路由模式将请求路由到其中一家公司:Balanced(价格 + 速度)、Nitro(速度最快)或 Floor(价格最低)。
| 免费 | 免费 | 2.16s | 21 tok/s |
- 输入 免费 / 输出 免费21 tok/s100.00% 正常运行时间
性能
吞吐量是模型生成内容的速度(每秒 token 数,越高越好)。延迟是完整的往返时间(越低越好)。TTFT 是首个 token 的响应时间,即您看到内容出现前需要等待的时间(越低越好)。
P50,所有提供商中最佳
P50,最佳提供商
正常运行时间
正常运行时间是指过去 3 天中至少有一家提供商响应请求的时间百分比。可用性是指成功提供推理服务的时间百分比。OpenRouter 会持续监控,并在某家提供商返回错误时使用次优提供商。
过去 3 天的可用性
最近 72 小时过去 24 小时的可用性
当上游提供商发生错误时,如果您的请求筛选条件允许,我们可以通过路由到另一家健康的提供商来恢复服务。您可以通过以下接口以编程方式访问各提供商的正常运行时间数据: 端点 API。了解更多有关我们的 负载均衡和提供商路由选项。
基准测试
标准化评测得分,以及此模型针对共用基准测试提示词的实际输出。百分比越高越好,每项排名显示此模型在该来源所评测的模型中的位置。
| 来源 | 基准测试 | 得分 |
|---|---|---|
| Artificial Analysis | Gemma 4 31B (Non-reasoning) Coding Index | 33.2 |
| Artificial Analysis | Gemma 4 31B (Non-reasoning) GPQA Diamond | 76.3% |
| Artificial Analysis | Gemma 4 31B (Non-reasoning) HLE | 11.8% |
| Artificial Analysis | Gemma 4 31B (Non-reasoning) IFBench | 53.5% |
| Artificial Analysis | Gemma 4 31B (Non-reasoning) τ²-Bench Telecom | 65.5% |
| Artificial Analysis | Gemma 4 31B (Non-reasoning) AA-LCR | 46.7% |
| Artificial Analysis | Gemma 4 31B (Non-reasoning) τ³-Banking | 8.9% |
| Artificial Analysis | Gemma 4 31B (Non-reasoning) GDPval-AA | 2.7% |
| Artificial Analysis | Gemma 4 31B (Non-reasoning) CritPt | 0.0% |
| Artificial Analysis | Gemma 4 31B (Non-reasoning) Terminal-Bench Hard | 30.3% |
| Artificial Analysis | Gemma 4 31B (Non-reasoning) Terminal-Bench 2.1 | 29.2% |
| Artificial Analysis | Gemma 4 31B (Reasoning) Intelligence Index | 4.4 |
| Artificial Analysis | Gemma 4 31B (Reasoning) Coding Index | 43.4 |
| Artificial Analysis | Gemma 4 31B (Reasoning) Agentic Index | 4.2 |
| Artificial Analysis | Gemma 4 31B (Reasoning) GPQA Diamond | 85.7% |
| Artificial Analysis | Gemma 4 31B (Reasoning) HLE | 23.6% |
| Artificial Analysis | Gemma 4 31B (Reasoning) IFBench | 75.6% |
| Artificial Analysis | Gemma 4 31B (Reasoning) τ²-Bench Telecom | 59.9% |
| Artificial Analysis | Gemma 4 31B (Reasoning) AA-LCR | 69.7% |
| Artificial Analysis | Gemma 4 31B (Reasoning) τ³-Banking | 14.8% |
| Artificial Analysis | Gemma 4 31B (Reasoning) GDPval-AA | 6.3% |
| Artificial Analysis | Gemma 4 31B (Reasoning) CritPt | 1.4% |
| Artificial Analysis | Gemma 4 31B (Reasoning) SciCode | 45.5% |
| Artificial Analysis | Gemma 4 31B (Reasoning) Terminal-Bench Hard | 36.4% |
| Artificial Analysis | Gemma 4 31B (Reasoning) Terminal-Bench 4.0 | 0.0% |
| Artificial Analysis | Gemma 4 31B (Reasoning) Terminal-Bench 2.1 | 43.4% |
| Artificial Analysis | Gemma 4 31B (Reasoning) AA-Omniscience Accuracy | 19.9% |
| Artificial Analysis | Gemma 4 31B (Reasoning) AA-Omniscience Non-Hallucination Rate | 14.5% |
| Vals AI | Gemma 4 31B IT CaseLaw v2 | 52.6% |
| Vals AI | Gemma 4 31B IT Finance Agent v1.1 | 50.8% |
| Vals AI | Gemma 4 31B IT MortgageTax | 61.4% |
| Vals AI | Gemma 4 31B IT SAGE | 82.8% |
| Vals AI | Gemma 4 31B IT Terminal-Bench 2.0 | 39.3% |
应用
向此模型发送最多流量的公开应用。这能很好地反映实际生产工作负载的情况,也能提示此模型最适合哪些用例。
活动
此模型的 token 用量和请求流量随时间的变化。
API
可直接用于调用此模型的代码。OpenRouter 的 API 与 OpenAI 兼容——大多数 SDK 只需替换基础 URL 即可使用。切换模型时,唯一需要更改的是下方的模型标识符。
目前无法通过 EU 区域内路由使用。 区域内路由文档
文档
在 OpenRouter 上使用 Google: Gemma 4 31B (free) 构建应用的指南、实用教程、博客文章和工具。
常见问题
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.
OpenRouter 上的 Gemma 4 31B (free) 文档包括 LLM Quantization: What fp8 and fp4 Do to Quality and Price 博客文章和LLM API Rate Limits: How to Fix OpenAI and Claude 429 Errors 博客文章。快速入门介绍了 API 密钥和您的首次请求,API 参考列出了所有参数。
是的。此页面显示的 Gemma 4 31B (free) 定价为零,因此您无需为 提示或补全 token 付费。免费端点受速率限制约束,请参阅速率限制文档。
Gemma 4 31B (free) 的上下文窗口为 262,144 个 token。它最多支持 32,768 个补全 token。
是的。Gemma 4 31B (free) 接受 tools 和 tool_choice,以进行函数调用。 它支持使用 response_format 输出 JSON,但不强制执行 JSON Schema。
Gemma 4 31B (free) 接受 图像、文本和视频 作为输入,并返回 文本。
在 OpenRouter 上,Gemma 4 31B (free) 由 1 家提供商提供服务:Google AI Studio。
Gemini 4 Hydrogen, Gemini Decision 1, Gemini 4 Carbon 及另外 31 个 是 Google 的其他 文本 模型。
Gemma 4 31B (free) 于 2026年4月2日 发布。