Skip to content
ModelPriceLab

Search model prices

Find source-linked rates by model, vendor, or platform.

xAI API Pricing

Complete pricing for all xAI models. Input/output costs per 1M tokens, context windows, and rate limits.

Billing terms: priced in USD per 1M tokens unless a row states otherwise; official direct rates are listed separately from third-party channels, and regional prices are kept distinct. Record updated 2026-10-10.

xAI API Pricing Calculator

Select a model to estimate monthly cost using its listed rates on each channel.

Quick examples:
Input mode
Cache hit rate (share of input tokens served from cache)50%

Workloads reusing system prompts, long documents, or conversation history hit more; channels without a cached rate are billed at the full input rate.

Estimated monthly cost at current inputs
ChannelEffective inputOutput /1MEst. / month
official$0.73(w/ cache)$2.50$3.45

Formula: monthly cost = (input tokens × effective input rate + output tokens × output rate) ÷ 1,000,000 × calls. The effective input rate blends list and cached rates at your cache-hit share. Rates share the selected model and billing basis; your vendor bill is authoritative.

Currently available rates

Grok 4.20

LLMx-ai-grok-4.20
View Details
Platform
Region
Input / 1M
Output / 1M
Cached input
Context
Max Output
OpenRouter
global
1M Tokens
$1.25
$2.50
$0.20
2000K
1800K
Sources: OpenRouter

Grok 4.20 (Non-Reasoning)

LLMxai-grok-4.20-0309-non-reasoning
View Details
Platform
Region
Input / 1M
Output / 1M
Cached input
Context
Max Output
Official
global
1M Tokens
$1.25
$2.50
$0.20
1000K
30K
Sources: Official

Grok 4.20 (Reasoning)

LLMxai-grok-4.20-0309-reasoning
View Details
Platform
Region
Input / 1M
Output / 1M
Cached input
Context
Max Output
Official
global
1M Tokens
$1.25
$2.50
$0.20
1000K
30K
Sources: Official

Grok 4.20 Multi-Agent

LLMx-ai-grok-4.20-multi-agent
View Details
Platform
Region
Input / 1M
Output / 1M
Cached input
Context
Max Output
OpenRouter
global
1M Tokens
$1.25
$2.50
$0.20
2000K
1800K
Sources: OpenRouter

Grok 4.20 Multi-Agent

LLMxai-grok-4.20-multi-agent-0309
View Details
Platform
Region
Input / 1M
Output / 1M
Cached input
Context
Max Output
Official
global
1M Tokens
$1.25
$2.50
$0.20
1000K
30K
Sources: Official

Grok 4.3

LLMxai-grok-4.3
View Details
Legacy / Superseded

Legacy / superseded version. Newer models are available; official or partner channels may still serve this version.

Replacement reference: xai-grok-4.7
Platform
Region
Input / 1M
Output / 1M
Cached input
Context
Max Output
OpenRouter
global
1M Tokens
$1.25
$2.50
$0.20
1000K
900K
Official
global
1M Tokens
$1.25
$2.50
$0.20
1000K
30K
Sources: OpenRouter · Official

Grok 4.3 (batch)

LLMxai-grok-4.3-batch
View Details
Legacy / Superseded

Legacy / superseded version. Newer models are available; official or partner channels may still serve this version.

Replacement reference: xai-grok-4.7
Platform
Region
Input / 1M
Output / 1M
Cached input
Context
Max Output
OpenRouter
global
1M Tokens
$1.00
$2.00
$0.16
1000K
900K
Sources: OpenRouter

Grok 4.5

LLMxai-grok-4.5
View Details
Legacy / Superseded

Legacy / superseded version. Newer models are available; official or partner channels may still serve this version.

Replacement reference: xai-grok-4.7
Platform
Region
Input / 1M
Output / 1M
Cached input
Context
Max Output
OpenRouter
global
1M Tokens
$2.00
$6.00
$0.30
500K
450K
Official
global
1M Tokens
$2.00
$6.00
$0.30
500K
500K
Sources: OpenRouter · Official

Grok 4.6

LLMxai-grok-4.6
View Details
Legacy / Superseded

Legacy / superseded version. Newer models are available; official or partner channels may still serve this version.

Replacement reference: xai-grok-4.7
Platform
Region
Input / 1M
Output / 1M
Cached input
Context
Max Output
OpenRouter
global
1M Tokens
$2.00
$6.00
$0.50
500K
450K
Official
global
1M Tokens
$2.00
$6.00
$0.50
500K
500K
Sources: OpenRouter · Official

Grok 4.7

LLMxai-grok-4.7
View Details
Platform
Region
Input / 1M
Output / 1M
Cached input
Context
Max Output
OpenRouter
global
1M Tokens
$2.00
$6.00
$0.50
500K
450K
Official
global
1M Tokens
$2.00
$6.00
$0.50
500K
500K
Sources: OpenRouter · Official

Grok Build 0.1

LLMxai-grok-build-0.1
View Details
Platform
Region
Input / 1M
Output / 1M
Cached input
Context
Max Output
OpenRouter
global
1M Tokens
$1.00
$2.00
$0.20
256K
230K
Official
global
1M Tokens
$1.00
$2.00
$0.20
256K
256K
Sources: OpenRouter · Official

Grok Imagine Image

Image Genxai-grok-imagine-image
View Details
Platform
Region
Input / 1M
Output / 1M
Cached input
Context
Max Output
Official
global
1M Tokens
-
-
—
16K
—
Sources: Official

Grok Imagine Image 2.0

Image Genxai-grok-imagine-image-2.0
View Details
Platform
Region
Input / 1M
Output / 1M
Cached input
Context
Max Output
Official
global
1M Tokens
-
-
—
64K
—

Grok Imagine Image Quality

Image Genxai-grok-imagine-image-quality
View Details
Platform
Region
Input / 1M
Output / 1M
Cached input
Context
Max Output
Official
global
1M Tokens
-
-
—
16K
—
Sources: Official

Grok Imagine Video

Videoxai-grok-imagine-video
View Details
Platform
Region
Input / 1M
Output / 1M
Cached input
Context
Max Output
Official
global
1M Tokens
-
-
—
1K
—
Sources: Official

Grok Imagine Video 1.5

Videoxai-grok-imagine-video-1.5
View Details
Platform
Region
Input / 1M
Output / 1M
Cached input
Context
Max Output
Official
global
1M Tokens
-
-
—
1K
—
Sources: Official

Grok Imagine Video 1.5 Lite

Videoxai-grok-imagine-video-1.5-lite
View Details
Platform
Region
Input / 1M
Output / 1M
Cached input
Context
Max Output
Official
global
1M Tokens
-
-
—
1K
—
Sources: Official

Grok Latest

LLMx-ai-grok-latest
View Details
Platform
Region
Input / 1M
Output / 1M
Cached input
Context
Max Output
OpenRouter
global
1M Tokens
$2.00
$6.00
$0.50
500K
450K
Sources: OpenRouter
AI Cost Optimization

Does this change your best option?

Check your models and usage for free. See the relevant official changes, estimated cost, and a practical next step.