Context
128K
Max output
128K
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 provider | Input /1M | Output /1M | Endpoints | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| OCICheapest | $3.00 | $15.00 | 1 | ||||||||||||||||
| |||||||||||||||||||
Price history
input + output $/1M since we started tracking Input Output
Cost calculator
estimate your monthly spend on this model$1,800
estimated / month
Model IDs
copy the exact identifier for your platformoci/xai.grok-4
Frequently asked questions
Xai Grok 4 pricing, context and availabilityHow much does Xai Grok 4 cost?
Xai Grok 4 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?
Xai Grok 4 accepts up to 128K tokens of context and can return up to 128K output tokens.
What can Xai Grok 4 do?
Xai Grok 4 supports tool use.
Other xAI models
compare pricing across the xAI lineupGrok 4$3.00/1M · 5 providersGrok 4.1 Fast Non Reasoning$0.20/1M · 3 providersGrok 4.1 Fast Reasoning$0.20/1M · 3 providersGrok 3 Mini$0.25/1M · 3 providersGrok 3$3.00/1M · 3 providersGrok 4 Fast Non Reasoning$0.20/1M · 2 providersGrok 4 Fast Reasoning$0.20/1M · 2 providersGrok Code Fast 1$0.20/1M · 2 providers
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