xAI's fast and cost-effective model with 2M token context window. Offers both reasoning and non-reasoning modes at significantly lower pricing than flagship models.
2.0M tokens
1
可用
价格最低
xAI
$0.70/1M tokens
xAI
按每百万输入与输出 token 的总成本排序。选择一行可查看提供商详情。
| 提供商 | 价格(每百万) | 速率限制 | 区域 | 状态 | 延迟 |
|---|---|---|---|---|---|
输入: $0.20输出: $0.50 | 500 RPM / 1.0M TPM | us-east-1global | 正常 | 0ms |
通过 xAI 使用此模型,兼容 OpenAI SDK。
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.xai.com/v1",
apiKey: process.env.XAI_API_KEY,
});
const response = await client.chat.completions.create({
model: "grok-4-1-fast-reasoning",
messages: [
{ role: "user", content: "Hello!" }
],
});
console.log(response.choices[0].message.content);使用 xAI API · 兼容 OpenAI SDK