Providers · provider

xAI API: models, pricing and limits

A practical guide to xai, using data from the AI & LLM Index. The goal is a shortlist and a decision, not a tour of every option.

The xAI lineup

xAI has 14 models in the index. AI company behind the Grok models. The lineup spans 3 categories, from frontier to mid-range.

The strongest model by average score is grok-4-reasoning. The cheapest by input price is Grok 3 Nano.

Pricing

Across the lineup, the average input price is $15.40 per million tokens and the average output price is $71.89. That average hides a wide range: individual models run from $7.12 to $19.70 on input.

Use the average as a starting point, then check the specific model you plan to deploy. Output price and cached input pricing can change the ranking for long or repetitive workloads.

Strengths and limits

0 of the 14 models are open weights. That gives you a self-hosting path for part of the lineup, while the proprietary models remain API-only.

The best benchmark result in the lineup is 87.8 on the index average. Compare that with the best model from other providers before treating xAI as the default.

How to choose

  • Start with the task, not the brand.
  • Pick the cheapest model that clears your evaluation set.
  • Keep a second provider as a fallback for outages and price changes.
  • Check licence and data-handling terms for every model you shortlist.

xAI models at a glance

ModelInput / 1MContextAvg score
Grok 4 Reasoning$19.672,000,00087.8
Grok 4 Turbo$19.211,000,00086.7
Grok 4 Max$19.702,000,00086.6
Grok 4$17.90200,00086.5
Grok 3 Max$17.662,000,00085.9
Grok 4 Pro$19.001,000,00085.4
Grok 3 Pro$16.61400,00083.8
Grok 3 Turbo$15.97128,00083.1
Grok 3 Reasoning$16.07200,00082.9
Grok 3$15.84128,00082.8

Related

FAQ

Which xAI model should I start with?

Start with grok-4-reasoning for quality-sensitive work and Grok 3 Nano for high-volume tasks.

What is the most important factor in xai?

Fit to the task beats raw benchmark rank. Define the failure modes, pick the benchmarks that resemble them, then test a small shortlist on your own examples.

How many models should I evaluate?

Three is usually enough: a quality candidate, a value candidate and a fallback. More candidates add work without changing the decision.

How do I control cost?

Compare blended 3:1 price, watch output tokens, use caching where available and route simple requests to a cheaper model.