Context
131K
Max output
131K
Serving providers
1
Cheapest input
$3.00 /1M
Prices are on-demand list rates. Enterprise commitments (committed-use discounts, provisioned throughput, negotiated rates) can be materially lower.

Pricing by serving provider

standard tier · per 1M tokens · click a provider to expand
Serving providerInput /1MOutput /1MEndpoints
OCICheapest$3.00$15.001
ComponentUnitStandardBatchCached
Text input/1M tok$3.00
Text output/1M tok$15.00

Price history

input + output $/1M since we started tracking
Input Output
$0.000$5.00$10.00$15.00Apr 4Jun 22$15.00$3.00

Cost calculator

estimate your monthly spend on this model
$1,800
estimated / month

Model IDs

copy the exact identifier for your platform
oci/xai.grok-4.20

Frequently asked questions

Xai Grok 4 20 pricing, context and availability

How much does Xai Grok 4 20 cost?

Xai Grok 4 20 costs $3.00 per 1M input tokens and $15.00 per 1M output tokens at its cheapest provider via OCI.

What is the context window of Xai Grok 4 20?

Xai Grok 4 20 accepts up to 131K tokens of context and can return up to 131K output tokens.

What can Xai Grok 4 20 do?

Xai Grok 4 20 supports tool use.

Other xAI models

compare pricing across the xAI lineup
Pricing verified against LiteLLM + OpenRouter + provider pages · refreshed daily

Every weekday

AI moves fast. Here's your debrief.

News, analysis, tools, and more.

For people who build with AI