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.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。按量計費,無月費。