Grok 4.20 is xAI's newest flagship model with industry-leading speed and agentic tool calling capabilities. It combines the lowest hallucination rate on the market with strict prompt adherance, delivering consistently precise and truthful responses.
2M コンテキストウィンドウ
128K 最大出力トークン
リリース日: 2026-03-31
対応プロトコル:openai
利用可能なプロバイダー:Azure
機能:VisionFunction CallingWeb検索
料金
| タイプ | 料金 |
|---|---|
| 入力トークン | $4/M |
| 出力トークン | $12/M |
| キャッシュ読込 | $0.4/M |
コード例
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.20",messages=[{"role": "user", "content": "Hello!"}],)print(response.choices[0].message.content)
関連モデル
よくある質問
Ofox.aiでのxAI: Grok 4.20の料金は、入力100万トークンあたり$4/M、出力100万トークンあたり$12/Mです。従量課金制、月額料金なし。
xAI: Grok 4.20は2Mトークンのコンテキストウィンドウと最大128Kトークンの出力に対応。大規模ドキュメントの処理や長い会話の維持が可能です。
ベースURLをhttps://api.ofox.ai/v1に設定し、Ofox APIキーを使用するだけ。OpenAI互換APIなので、既存コードのベースURLとAPIキーを変更するだけです。
xAI: Grok 4.20は以下の機能に対応:Vision, Function Calling, Web検索。Ofox.ai統合APIですべての機能にアクセスできます。