xAI

Grok API Pricing (xAI) (Updated 2026)

Compare pricing for all 17 xAI Grok models. Prices shown per 1M tokens with historical trends.

8 Ways to Use Fewer Tokens
Last updated: November 21, 2026 at 08:43 AM

Overview

17
Total Models
$0.20
Cheapest Input (per 1M)
2000K
Max Context Length

Model Release Timeline

15 releases
Apr 2025
$3.00 / $15.00
Apr 2025
$0.30 / $0.50
Jun 2025
$3.00 / $15.00
Jun 2025
$0.25 / $0.50
Jul 2025
$3.00 / $15.00
Aug 2025
$0.20 / $1.50
Sep 2025
$0.20 / $0.50
Nov 2025
$0.00 / $0.00
Mar 2026
$1.25 / $2.50
Mar 2026
$1.25 / $2.50
Apr 2026
$1.25 / $2.50
May 2026
$1.00 / $2.00
Jul 2026
$2.00 / $6.00
Aug 2026
$2.00 / $6.00
Sep 2026
$2.00 / $6.00
Spacing represents time between releases
Apr 2025→Sep 2026

All xAI Models

Compare pricing for all 17 xAI models.

View Provider Pricing
Sponsored The Grid | Spot Priced LLM API
The Grid | Spot Priced LLM API — Why pay list price when providers will bid for your API usage? Up to 80% off.
View spot prices
Model
Context
Input
Output
Cached Input
Cache Write
MMLU
GPQA
Actions
2.0M
$0.000
$0.000
-
-
—
—
Try
2.0M
$0.200
$0.500
-
-
—
—
Try
256K
$0.200
$1.500
-
-
—
—
Try
131K
$0.250
$0.500
-
-
—
—
Try
131K
$0.300
$0.500
-
-
—
—
Try
256K
$1.000
$2.000
-
-
—
—
Try
1.0M
$1.250
$2.500
$0.2
-
—
—
Try
2.0M
$1.250
$2.500
$0.2
-
—
—
Try
2.0M
$1.250
$2.500
$0.2
-
—
—
Try
-
$1.250
$2.500
-
-
—
—
Try
500K
$2.000
$6.000
$0.5
-
—
—
Try
500K
$2.000
$6.000
$0.5
-
—
—
Try
500K
$2.000
$6.000
$0.3
-
—
—
Try
256K
$3.000
$15.000
-
-
—
—
Try
131K
$3.000
$15.000
-
-
—
—
Try
131K
$3.000
$15.000
-
-
—
—
Try
131K
$5.000
$25.000
-
-
—
—
Try

* Some models use tiered pricing based on prompt length. Displayed prices are for prompts under 200k tokens.

Showing lowest price across all providers. Benchmarks from Artificial Analysis and HuggingFace Open LLM Leaderboard.

Cost vs. Quality

Compare xAI models by benchmark performance and cost.

X-axis:
Y-axis:

No benchmark data available for comparison

Benchmark scores are sourced from Artificial Analysis

xAI Models

Community Ratings

Rate how well xAI models perform across popular AI coding tools.

Historical Pricing Trends

Price Changes Over Time

No historical pricing data available for this provider.

Try xAI Models

Cost Calculator

Estimate your costs for any xAI model based on expected token usage.

Open Cost Calculator

Try in Playground

Test xAI models directly in your browser.

Open Playground

Frequently Asked Questions

Currently, Grok 4 Fast is the most affordable at $0.20 per 1M input tokens.
Count your input tokens (prompt) and expected output tokens (response). Use the formula: (input_tokens/1M × input_price) + (output_tokens/1M × output_price). Our pricing calculator can help automate this.
xAI pricing varies by model. Input costs range from $0.20 to $5.00 per 1M tokens. See the table above for specific model pricing.