xAI: Grok 4.7API pricing
Grok 4.7 is xAI's model for coding and knowledge work, built on a new base larger than Grok 4.6's. Trained on long, hard tasks with more self-checking, it reads text and images and offers low to xhigh effort.
- 每100万枚代币的价格
- $1.26 / $5.03input / output−16%
- 缓存的输入
- $0.31per 1M tokens
- 上下文
- 500K tokens450K max output
- 服务提供商
- 9
- 最快
- 201 tok/sSurplus
服务提供商
9 家服务商 ·
支持的参数12
- 抽样
温度top_p种子logit_bias- 处罚
频率惩罚存在惩罚- 输出
停止response_formatlogprobstop_logprobs- 工具
工具工具选择
500K context · 250K max output
支持的参数7
- 抽样
温度logit_bias- 处罚
存在惩罚- 输出
response_format结构化输出- 工具
工具工具选择- 未确认
停止
500K context · 250K max output
支持的参数8
- 抽样
温度top_plogit_bias- 处罚
存在惩罚- 输出
response_format结构化输出- 工具
工具工具选择- 未确认
停止
500K context
支持的参数9
- 抽样
top_plogit_bias- 处罚
存在惩罚- 输出
response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 未确认
温度停止
500K context
支持的参数12
- 抽样
温度top_p种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
支持的参数10
- 抽样
温度top_ptop_k种子logit_bias- 处罚
存在惩罚- 输出
response_format结构化输出- 工具
工具工具选择- 未确认
停止
500K context · 450K max output
支持的参数9
- 抽样
温度top_ptop_k- 输出
response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning- 未确认
停止
- Route 1500K context · 450K max outputCache $0.53 · 1.21 s · 105 tok/s · 99.7 %1.21 s · 105 tok/sInput $2.10Cache read $0.53Output $6.30Latency 1.21 sSpeed 105 tok/sUptime 99.7 %$2.10 in$6.30 out
支持的参数8
- 抽样
温度top_p- 输出
response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning- 未确认
停止
- Route 2500K context · 450K max outputCache $0.53 · 1.51 s · 87 tok/s · 99.7 %1.51 s · 87 tok/sInput $2.10Cache read $0.53Output $6.30Latency 1.51 sSpeed 87 tok/sUptime 99.7 %$2.10 in$6.30 out
支持的参数8
- 抽样
温度top_p- 输出
response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning- 未确认
停止
- Route 3500K context · 450K max outputCache $1.05 · 100 %Input $4.20Cache read $1.05Output $12.60Latency —Speed —Uptime 100 %$4.20 in$12.60 out
支持的参数8
- 抽样
温度top_p- 输出
response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning- 未确认
停止
- Route 4500K context · 450K max outputCache $1.05 · 1.51 s · 69 tok/s · 100 %1.51 s · 69 tok/sInput $4.20Cache read $1.05Output $12.60Latency 1.51 sSpeed 69 tok/sUptime 100 %$4.20 in$12.60 out
支持的参数9
- 抽样
温度top_p种子- 输出
response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning- 未确认
停止
- 1 more provider through partner hosts · from $2.10 in · $6.29 out
价格走势
API
curl https://api.opencheap.si/v1/chat/completions \
-H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
-d '{ "model": "opencheap/grok-4.7", "messages": [{ "role": "user", "content": "Hi" }] }'import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/grok-4.7",
messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/grok-4.7",
messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);致电 Grok 4.7 使用 OpenAI SDK:将其指向 https://api.opencheap.si/v1 并传递模型 ID opencheap/grok-4.7;其余代码保持不变。
About Grok 4.7
- 标价
- $2.00 / $6.00in / out per 1M
- 保存与列表
- 18 %在1:3的输入与输出混合比下
- 请求示例
- $0.01810,000 in + 1,000 out
- 端点
https://api.opencheap.si/v1- 模型 ID
每个请求都会发送给模型中成本最低且状态正常的提供者,而每个响应都会报告其成本为 使用成本. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, https://api.opencheap.si/v1.
用文字表述价格
Grok 4.7 costs from $1.26 per 1M input tokens and $5.03 per 1M output tokens on OpenCheap, with cached input at $0.31 per 1M tokens. Its list price is $2.00 per 1M input tokens and $6.00 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 18 % less here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.018, and 1,000 such requests about $17.60.
9 providers serve Grok 4.7 on OpenCheap. Its context window is 500K tokens (500,000), room for roughly 380,000 words of English in one request.
Grok 4.7 is one of 40 xAI models on OpenCheap.
The public list price is $2.00 per 1M input tokens and $6.00 per 1M output tokens. OpenCheap is from $1.26 and $5.03, as of 2026-12-04 09:18 UTC.
Prices as of 2026-12-04 09:18 UTC.
关于定价的问题
How much does the Grok 4.7 API cost per 1M tokens?
Grok 4.7 costs from $1.26 per 1M input tokens and $5.03 per 1M output tokens on OpenCheap, with cached input at $0.31 per 1M tokens. Prices as of 2026-12-04 09:18 UTC.
What does one Grok 4.7 request cost?
A request with 10,000 input tokens and 1,000 output tokens costs about $0.018, and 1,000 such requests about $17.60. Every answer reports its own cost in usage.cost.
Is Grok 4.7 cheaper on OpenCheap than its list price?
Its list price is $2.00 per 1M input tokens and $6.00 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 18 % less here.
Which providers serve Grok 4.7?
9 providers serve Grok 4.7 on OpenCheap. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.
What is the context window of Grok 4.7?
Its context window is 500K tokens (500,000), room for roughly 380,000 words of English in one request.
How do I call the Grok 4.7 API?
Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/grok-4.7. One OpenCheap key works for every model; the rest of your code stays the same.
More from xAI
- Grok 2 Vision 1212grok-2-vision-1212每1M 1.80美元 / 9.00美元
- grok-3grok-3$3.14 / $15.72 per 1M · 131K context
- grok-3-betagrok-3-beta$3.15 / $15.74 per 1M · 131K context
- grok-3-fast-betagrok-3-fast-beta$5.26 / $26.28 per 1M · 131K context
- grok-3-fast-latestgrok-3-fast-latest$5.24 / $26.19 per 1M · 131K context
- grok-3-latestgrok-3-latest$3.15 / $15.74 per 1M · 131K context
- grok-3-mini-fast-betagrok-3-mini-fast-beta$0.63 / $4.20 per 1M · 131K context
- grok-3-mini-fast-latestgrok-3-mini-fast-latest$0.63 / $4.20 per 1M · 131K context
类似型号
- 克劳德·索内特 5Anthropic · 100万词上下文$1.08 / $5.40 per 1M
- GPT 5.2OpenAI · 400K context$0.70 / $5.60 per 1M
- GPT 6 AstraOpenAI · 100万上下文$1.00 / $5.00 per 1M
- Qwen3.8 MaxQwen · 1M 语料库每1M 1.80美元 / 5.41美元
- Qwen3.7 MaxQwen · 1M 语料库$1.48 / $4.42 per 1M10 % cheaper
- Muse Spark OpenMeta · 100万上下文$1.18 / $4.00 per 1M19 % cheaper