Price Per TokenPrice Per Token
Xai

Xai API Pricing (Updated 2026)

Compare pricing for all 9 Xai models. Prices shown per 1M tokens with historical trends.

Get our weekly newsletter on pricing changes, new releases, and tools.

OpenClaw

Deploy OpenClaw in Under 1 Minute We handle hosting, scaling, and maintenance

8 Ways to Use Fewer Tokens
Last updated: April 1, 2026 at 08:39 AM

Overview

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

Model Release Timeline

10 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
Sep 2025
$0.20 / $0.50
Nov 2025
$0.20 / $0.50
Nov 2025
$0.20 / $0.50
Spacing represents time between releases
Apr 2025Nov 2025

All Xai Models

Compare pricing for all 9 Xai models.

Model
Context
Input
Output
Coding
MMLU
GPQA
Cache Read
Cache Write
Actions
2.0M
$0.200
$0.500
39.9
74.3
63.7
$0.05
-
Try
Grok 4.1 Fast Thinking
2.0M
$0.200
$0.500
82.2
85.4
85.3
$0.05
-
Try
2.0M
$0.200
$0.500
40.1
73.0
60.6
$0.05
-
Try
Grok 4 Fast Thinking
2.0M
$0.200
$0.500
83.2
85.0
84.7
$0.05
-
Try
256K
$0.200
$1.500
65.7
79.3
72.7
$0.02
-
Try
131K
$0.250
$0.500
69.6
82.8
79.1
$0.075
-
Try
131K
$0.300
$0.500
$0.075
-
Try
256K
$3.000
$15.000
81.9
86.6
87.7
$0.75
-
Try
131K
$3.000
$15.000
$0.75
-
Try
131K
$3.000
$15.000
$0.75
-
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:
Loading chart...
Grok 4
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.1 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.