Grok

xAI: Grok 4.20

Chat
x-ai/grok-4.20

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
支持的协议:OpenAIopenai
可用供应商:AzureAzure
能力:视觉函数调用网络搜索

定价

类型价格
输入 Token$4/M
输出 Token$12/M
缓存读取$0.4/M

代码示例

from openai import OpenAI
client = 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。按量计费,无月费。