GPT 全系 8 折 🎉 DeepSeek 7 折查看详情

xAI: Grok 4.7

Chat
x-ai/grok-4.7

Grok 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

供应商

xAIprovider.type: "grok"
输入 Token
$2/M
输出 Token
$6/M
缓存读取
$0.5/M
接入协议
openai/v1/chat/completions

代码示例

from openai import OpenAI
client = OpenAI(
base_url="https://api.ofox.ai/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。按量计费,无月费。