xAI: Grok 4.7
Chatx-ai/grok-4.7Grok 4.7 is xAI's latest reasoning model, succeeding Grok 4.6 for coding, agentic tool use, and general chat. It supports a 500K-token context window with always-on reasoning, function calling, structured outputs, and prompt caching; requests of 200K prompt tokens or more are billed at the long-context rate.
上下文窗口
500K
最大输出 Token
66K
发布日期
2026-09-21
能力
函数调用推理提示缓存
可用供应商
xAI
支持的协议
openai
供应商
xAI
provider.type: "grok"输入 Token
$2/M
输出 Token
$6/M
缓存读取
$0.5/M
接入协议
openai
/v1/chat/completions代码示例
from openai import OpenAIclient = OpenAI(base_url="https://api.ofox.run/v1",api_key="YOUR_OFOX_API_KEY",)response = client.chat.completions.create(model="x-ai/grok-4.7",messages=[{"role": "user", "content": "Hello!"}],)print(response.choices[0].message.content)
运行状态
相关模型
常见问题
xAI: Grok 4.7 在 Ofox.ai 上的价格为输入 $2/M/百万 Token,输出 $6/M/百万 Token。按量计费,无月费。
xAI: Grok 4.7 支持 500K Token 的上下文窗口,最大输出 66K Token,可处理大型文档并维持长对话。
只需将 base URL 设置为 https://api.ofox.run/v1,并使用你的 Ofox API Key。API 兼容 OpenAI 格式——只需更改 base URL 和 API Key 即可。
xAI: Grok 4.7 支持以下能力:函数调用, 推理, 提示缓存。通过 Ofox.ai 统一 API 访问所有功能。