Grok 4.20 is available from 2 provider(s). Cheapest: AnyModel at $0.050 per 1M tokens (flat rate for input and output). Context window: up to 2 000 000 tokens. Developer: xAI.
| Provider | Input $/1M | Output $/1M | Context | |
|---|---|---|---|---|
| AnyModel xai/grok-4.20-0309-reasoning | $0.050 | — | 1M | Go to provider ↗ Set up |
| CometAPI grok-4.20-0309-reasoning | $1.25 +2400 % | $2.50 | 2M | Go to provider ↗ Set up |
Sorted by price only – there are no paid placements. Data as of 2026-11-25 09:03 UTC. Prices in USD, excluding taxes. No guarantee.
How we compare → · Wrong price? Report it
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": "Hello!"}],
)
print(r.choices[0].message.content)
Currently at AnyModel (from $0.050 / 1M). Prices are updated daily; the provider’s website is authoritative.
All listed providers offer an OpenAI-compatible API. See the setup guide for Hermes Agent, VS Code, Cursor and more.