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.io/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.io/v1,並使用你的 Ofox API Key。API 相容 OpenAI 格式——只需更改 base URL 和 API Key 即可。
xAI: Grok 4.7 支援以下能力:函式呼叫, 推理, 提示快取。透過 Ofox.ai 統一 API 存取所有功能。