Grok 4.20 共有 2 家提供商。最便宜:AnyModel,每百万 Token $0.050(输入输出统一价格)。 上下文窗口:最高 2 000 000 Token。 开发商:xAI。
| 提供商 | 输入 $/1M | 输出 $/1M | 上下文 | |
|---|---|---|---|---|
| AnyModel xai/grok-4.20-0309-reasoning | $0.050 | — | 1M | 前往提供商 ↗ 配置 |
| CometAPI grok-4.20-0309-reasoning | $1.25 +2400 % | $2.50 | 2M | 前往提供商 ↗ 配置 |
仅按价格排序——不存在付费排名。 数据时间:2026-11-25 09:03 UTC。价格单位为美元,不含税。仅供参考。
from openai import OpenAI
import os
client = OpenAI(base_url="https://anymodel.org/v1", api_key=os.environ["ANYMODEL_API_KEY"])
r = client.chat.completions.create(
model="xai/grok-4.20-0309-reasoning",
messages=[{"role": "user", "content": "你好!"}],
)
print(r.choices[0].message.content)
目前是 AnyModel(起 $0.050 / 1M)。价格每日更新,以提供商网站为准。
所列提供商均提供 OpenAI 兼容 API。请参阅 Hermes Agent、VS Code、Cursor 等的接入指南。