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 最大輸出 token
發布日期: 2026-03-31
支援的協定:openai
可用供應商:Azure
能力:視覺函式呼叫網路搜尋
定價
| 類型 | 價格 |
|---|---|
| 輸入 Token | $4/M |
| 輸出 Token | $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)
相關模型
常見問題
xAI: Grok 4.20 在 Ofox.ai 上的價格為輸入 $4/M/百萬 Token,輸出 $12/M/百萬 Token。按量計費,無月費。
xAI: Grok 4.20 支援 2M Token 的上下文視窗,最大輸出 128K Token,可處理大型文件並維持長對話。
只需將 base URL 設定為 https://api.ofox.ai/v1,並使用你的 Ofox API Key。API 相容 OpenAI 格式——只需更改 base URL 和 API Key 即可。
xAI: Grok 4.20 支援以下能力:視覺, 函式呼叫, 網路搜尋。透過 Ofox.ai 統一 API 存取所有功能。