IBM: Granite 4.2 8B
ibm-granite/granite-4.2-8b
Granite 4.2 8B is a dense reasoning model from IBM. It is suited for mathematics, code generation, multilingual dialogue, and agentic workflows that need multi-step reasoning. It supports full, low-effort, and non-thinking modes.
The model supports 12 languages: English, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch, and Chinese.
提供商
不同公司托管同一模型。OpenRouter 根据您选择的路由模式将请求路由到其中一家公司:Balanced(价格 + 速度)、Nitro(速度最快)或 Floor(价格最低)。
| US$0.06 | US$0.15 | US$0.015 | 0.24s | 111 tok/s | ||
| US$0.06 | US$0.25 | US$0.015 | 0.33s | 122 tok/s |
- 输入 US$0.06 / 输出 US$0.15111 tok/s97.32% 正常运行时间
输入 US$0.06 / 输出 US$0.25122 tok/s99.72% 正常运行时间
定价
客户为此模型实际支付的平均价格,与提供商公布的价格并列展示。由于缓存和折扣,实际支付的价格往往远低于标价。
加权平均值
Granite 4.2 8B — 价格历史
| US$0.0340 | US$0.149 | 57.6% | 81.3% | ||
| US$0.0376 | US$0.249 | 49.5% | 18.7% |
- 有效输入价格 US$0.0340 / 实际输出 US$0.149token 占比81.3%
- 有效输入价格 US$0.0376 / 实际输出 US$0.249token 占比18.7%
性能
吞吐量是模型生成内容的速度(每秒 token 数,越高越好)。延迟是完整的往返时间(越低越好)。TTFT 是首个 token 的响应时间,即您看到内容出现前需要等待的时间(越低越好)。
P50,所有提供商中最佳
P50,最佳提供商
正常运行时间
正常运行时间是指过去 3 天中至少有一家提供商响应请求的时间百分比。可用性是指成功提供推理服务的时间百分比。OpenRouter 会持续监控,并在某家提供商返回错误时使用次优提供商。
过去 3 天的可用性
最近 72 小时过去 24 小时的可用性
当上游提供商发生错误时,如果您的请求筛选条件允许,我们可以通过路由到另一家健康的提供商来恢复服务。您可以通过以下接口以编程方式访问各提供商的正常运行时间数据: 端点 API。了解更多有关我们的 负载均衡和提供商路由选项。
基准测试
标准化评测得分,以及此模型针对共用基准测试提示词的实际输出。百分比越高越好,每项排名显示此模型在该来源所评测的模型中的位置。
| 来源 | 基准测试 | 得分 |
|---|---|---|
| Artificial Analysis | Granite 4.2 8B Intelligence Index | 5.1 |
| Artificial Analysis | Granite 4.2 8B Coding Index | 22.4 |
| Artificial Analysis | Granite 4.2 8B Agentic Index | 1.3 |
| Artificial Analysis | Granite 4.2 8B GPQA Diamond | 63.1% |
| Artificial Analysis | Granite 4.2 8B HLE | 9.7% |
| Artificial Analysis | Granite 4.2 8B AA-LCR | 45.0% |
| Artificial Analysis | Granite 4.2 8B τ-Bench Banking | 7.6% |
| Artificial Analysis | Granite 4.2 8B GDPval-AA | 0.0% |
| Artificial Analysis | Granite 4.2 8B CritPt | 0.3% |
| Artificial Analysis | Granite 4.2 8B SciCode | 31.5% |
| Artificial Analysis | Granite 4.2 8B Terminal-Bench 4.0 | 0.0% |
| Artificial Analysis | Granite 4.2 8B Terminal-Bench 2.1 | 18.4% |
| Artificial Analysis | Granite 4.2 8B AA-Omniscience Accuracy | 11.8% |
| Artificial Analysis | Granite 4.2 8B AA-Omniscience Non-Hallucination Rate | 67.8% |
应用
向此模型发送最多流量的公开应用。这能很好地反映实际生产工作负载的情况,也能提示此模型最适合哪些用例。
活动
此模型的 token 用量和请求流量随时间的变化。
API
可直接用于调用此模型的代码。OpenRouter 的 API 与 OpenAI 兼容——大多数 SDK 只需替换基础 URL 即可使用。切换模型时,唯一需要更改的是下方的模型标识符。
目前无法通过 EU 区域内路由使用。 区域内路由文档
常见问题
Granite 4.2 8B is a dense reasoning model from IBM. It is suited for mathematics, code generation, multilingual dialogue, and agentic workflows that need multi-step reasoning. It supports full, low-effort, and non-thinking modes. The model supports 12 languages: English, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch, and Chinese.
Granite 4.2 8B 的费用为 US$0.06/百万输入 token 和 US$0.15/百万输出 token,Cache Read,价格为 US$0.015/M tokens 单独计费。
Granite 4.2 8B 的上下文窗口为 131,072 个 token。它最多支持 131,072 个补全 token。
是的。Granite 4.2 8B 支持通过 tools 进行函数调用。 它还支持通过 response_format 中的 JSON schema 实现结构化输出。
在 OpenRouter 上,Granite 4.2 8B 由 2 家提供商提供服务:CoreWeave和DeepInfra。 请求会路由至最佳的可用提供商,并在故障时自动切换至其他提供商,您也可以通过提供商路由固定或排除提供商。
Granite 4.2 8B 于 2026年8月31日 发布。