IBM's dense decoder-only 8B parameter language model from the Granite 4.1 family. Supports 131K-token context, tool calling, RAG, code generation with fill-in-the-middle, text summarization, classification, and extraction across 12 languages. Released under Apache 2.0.
131K tokens
2
可用
价格最低
OpenRouter
$0.15/1M tokens
IBM watsonx.ai, OpenRouter
按每百万输入与输出 token 的总成本排序。选择一行可查看提供商详情。
| 提供商 | 价格(每百万) | 速率限制 | 区域 | 状态 | 延迟 |
|---|---|---|---|---|---|
输入: $0.05输出: $0.10 | 60 RPM / 200K TPM | us-east-1 | 正常 | 0ms | |
输入: $0.20输出: $0.40 | 100 RPM / 300K TPM | us-south-1eu-de-1eu-gb-1 | 正常 | 0ms |
通过 OpenRouter 使用此模型,兼容 OpenAI SDK。
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://openrouter.ai/api/v1",
apiKey: process.env.OPENROUTER_API_KEY,
});
const response = await client.chat.completions.create({
model: "ibm-granite/granite-4.1-8b",
messages: [
{ role: "user", content: "Hello!" }
],
});
console.log(response.choices[0].message.content);使用 OpenRouter API · 兼容 OpenAI SDK