LiteLLMLiteLLM/ MODELS

Grok 4.20 Reasoning API Pricing

By xAI · 6 providersxai/grok-4.20-reasoningCompare
Input / output
$1.25 / $2.50 per 1M tokens
Cache read
$0.20 / 1M
Context
1M tokens
Max output
1M tokens

As of November 24, 2026, Grok 4.20 Reasoning costs $1.25 per 1M input tokens and $2.50 per 1M output tokens on xAI, with cache reads at $0.20 per 1M tokens. Across 6 providers on LiteLLM, the input price ranges from $1.25 to $2.00. It has a 1,000,000-token context window and returns up to 1,000,000 tokens per response.

Prices updated Checked

Grok 4.20 Reasoning pricing by provider

7 listings across 6 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

Grok 4.20 Reasoning prices by provider in US dollars, token prices per 1M tokens, as of November 24, 2026. Source: LiteLLM model price file.
ProviderModel name in LiteLLMInputOutputCache readBatch inBatch outContext
xAIxai/grok-4.20-reasoning$1.25$2.50$0.20$1.00$2.001M
xAIlatest aliasxai/grok-4.20-reasoning-latest$1.25$2.50$0.20$1.00$2.001M
AIHubMixaihubmix/grok-4-20-reasoning$2.00$6.00$0.20––1M
Azure AI Foundryazure_ai/grok-4-20-reasoning$1.25$2.50$1.25––262K
Google Vertex AIvertex_ai/xai/grok-4.20-reasoning$1.25$2.50$0.20––2M
Oracle Cloud (OCI)oci/xai.grok-4.20-reasoning$1.25$2.50$0.20––1M
Perplexityperplexity/xai/grok-4.20-reasoning$1.25$2.50$0.20–––

Other Grok 4.20 Reasoning prices on xAI

Input above 200K tokens$2.50 per 1M tokens
Output above 200K tokens$5.00 per 1M tokens
Cache read above 200K tokens$0.40 per 1M tokens

What Grok 4.20 Reasoning costs in practice

1,000 requests with 2,000 input and 500 output tokens each

xAI$3.75
Azure AI Foundry$3.75
Google Vertex AI$3.75
Oracle Cloud (OCI)$3.75
xAI batch$3.00

100 long-document requests with 100,000 input and 2,000 output tokens each

xAI$13.00
Azure AI Foundry$13.00
Google Vertex AI$13.00
Oracle Cloud (OCI)$13.00

Grok 4.20 Reasoning cost calculator

At xAI's price ($1.25 input, $2.50 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $25.00 a day, about $750 a month. Change the numbers for your workload, or compare it with other models.

Per request
$0.0025
Per day
$25.00
Per month (30 days)
$750

Grok 4.20 Reasoning features

Input: text, image. Output: text.

Use Grok 4.20 Reasoning with LiteLLM

Call Grok 4.20 Reasoning through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.

Python SDK
from litellm import completion

response = completion(
    model="xai/grok-4.20-reasoning",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: grok-4.20-reasoning
    litellm_params:
      model: xai/grok-4.20-reasoning
      api_key: os.environ/XAI_API_KEY
Call the proxy
curl http://0.0.0.0:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LITELLM_API_KEY" \
  -d '{
    "model": "grok-4.20-reasoning",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Grok 4.20 Reasoning FAQ

How much does Grok 4.20 Reasoning cost?

Grok 4.20 Reasoning costs $1.25 per 1M input tokens and $2.50 per 1M output tokens on xAI, with cache reads at $0.20 per 1M tokens. Batch requests cost $1.00 per 1M input tokens and $2.00 per 1M output tokens. Above 200K input tokens, input costs $2.50 and output costs $5.00 per 1M tokens. Across 6 providers on LiteLLM, the input price ranges from $1.25 to $2.00.

What is the context window of Grok 4.20 Reasoning?

Grok 4.20 Reasoning has a 1,000,000-token context window and returns up to 1,000,000 tokens per response.

Which providers offer Grok 4.20 Reasoning?

Grok 4.20 Reasoning is available from 6 providers through LiteLLM: xAI, AIHubMix, Azure AI Foundry, Google Vertex AI, Oracle Cloud (OCI) and Perplexity. The lowest price is on xAI.

How do I call Grok 4.20 Reasoning with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="xai/grok-4.20-reasoning", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

What features does Grok 4.20 Reasoning support?

Grok 4.20 Reasoning supports function calling, structured output, image input, reasoning, prompt caching and web search.

When did LiteLLM add Grok 4.20 Reasoning?

Grok 4.20 Reasoning was added to LiteLLM's model price file in May 2026.

Sources

Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:

LiteLLM docs: xAI, AIHubMix, Azure AI Foundry, Google Vertex AI, Oracle Cloud (OCI), Perplexity.

Provider pages: xAI, AIHubMix, Azure AI Foundry, Google Vertex AI, Oracle Cloud (OCI), Perplexity.