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
最大出力トークン
66K
リリース日
2026-09-21
機能
Function Calling推論プロンプトキャッシュ
利用可能なプロバイダー
xAI
対応プロトコル
openai
Providers
xAI
provider.type: "grok"入力トークン
$2/M
出力トークン
$6/M
キャッシュ読込
$0.5/M
Protocols
openai
/v1/chat/completionsコード例
from openai import OpenAIclient = 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)
稼働状況
関連モデル
よくある質問
Ofox.aiでのxAI: Grok 4.7の料金は、入力100万トークンあたり$2/M、出力100万トークンあたり$6/Mです。従量課金制、月額料金なし。
xAI: Grok 4.7は500Kトークンのコンテキストウィンドウと最大66Kトークンの出力に対応。大規模ドキュメントの処理や長い会話の維持が可能です。
ベースURLをhttps://api.ofox.ai/v1に設定し、Ofox APIキーを使用するだけ。OpenAI互換APIなので、既存コードのベースURLとAPIキーを変更するだけです。
xAI: Grok 4.7は以下の機能に対応:Function Calling, 推論, プロンプトキャッシュ。Ofox.ai統合APIですべての機能にアクセスできます。