Price Per TokenPrice Per Token
Xai

Xai API Pricing (Updated 2026)

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

OpenClaw

Best LLMs for OpenClaw Vote for which model works best with OpenClaw

112 out of our 301 tracked models have had a price change in February.

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

Last updated: February 15, 2026 at 08:07 AM

Overview

8
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.30 / $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 8 Xai models.

Current Pricing (per 1M tokens)

10 models

Model
Input $/M
Output $/M
Coding
MMLU
GPQA
Cache Read
Cache Write
Context
Actions
$0.200
$0.500
39.9
74.3
63.7
$0.050
-
2,000,000
Try
Grok 4.1 Fast Thinking
$0.200
$0.500
82.2
85.4
85.3
$0.050
-
2,000,000
Try
$0.200
$0.500
40.1
73.0
60.6
$0.050
-
2,000,000
Try
Grok 4 Fast Thinking
$0.200
$0.500
83.2
85.0
84.7
$0.050
-
2,000,000
Try
$0.200
$1.500
65.7
79.3
72.7
$0.020
-
256,000
Try
$0.300
$0.500
$0.075
-
131,072
Try
$0.300
$0.500
$0.075
-
131,072
Try
$3.000
$15.000
81.9
86.6
87.7
$0.750
-
256,000
Try
$3.000
$15.000
42.5
79.9
69.3
$0.750
-
131,072
Try
$3.000
$15.000
$0.750
-
131,072
Try

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

Cost vs. Quality

Compare Xai models by benchmark performance and cost.

X-axis:
Y-axis:
Loading chart...
Grok 4
Other 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 $3.00 per 1M tokens. See the table above for specific model pricing.