Price Per TokenPrice Per Token
X Ai

X Ai API Pricing (Updated 2026)

Compare pricing for all 2 X Ai models. Prices shown per 1M tokens with historical trends.

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

No bots, no big tech influence — join the new community for AI devs
8 Ways to Use Fewer Tokens
Last updated: May 1, 2026 at 08:30 AM

Overview

2
Total Models
$1.25
Cheapest Input (per 1M)
Max Context Length

Model Release Timeline

0 releases
No release date information available
Spacing represents time between releases

All X Ai Models

Compare pricing for all 2 X Ai models.

Model
Context
Input
Output
Coding
MMLU
GPQA
Cache Read
Cache Write
Actions
-
$1.250
$2.500
$0.2
-
Try
-
$2.000
$6.000
$0.2
-
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 X Ai models by benchmark performance and cost.

X-axis:
Y-axis:

No benchmark data available for comparison

Benchmark scores are sourced from Artificial Analysis

X Ai Models

Community Ratings

Rate how well X Ai models perform across popular AI coding tools.

Historical Pricing Trends

Price Changes Over Time

No historical pricing data available for this provider.

Try X Ai Models

Cost Calculator

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

Open Cost Calculator

Try in Playground

Test X Ai models directly in your browser.

Open Playground

Frequently Asked Questions

Currently, x-ai/grok-4.20-beta is the most affordable at $1.25 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.
X Ai pricing varies by model. Input costs range from $1.25 to $2.00 per 1M tokens. See the table above for specific model pricing.