Per MillionLLM API prices, tracked daily

xAI API Pricing (Oct 2026): All 33 Models per 1M Tokens

As of : 33 models tracked. The median price is $1.25 per 1M input tokens and $2.50 per 1M output tokens. Cheapest blended price: grok-build-0.1 (xAI, $1.00 per 1M input / $2.00 per 1M output).

API list prices for every xAI chat model we track.

Browse: All models · Cheapest · Price changes · Cost calculator · By provider · Deprecations · Free RSS alerts

Models

Sort:

Models. Source: the LiteLLM price list (MIT License)
ModelProviderInput / 1MOutput / 1MCached input / 1MContext
grok-build-0.1xAI$1.00$2.00$0.20256K
grok-code-fastxAI$1.00$2.00$0.20256K
grok-code-fast-1xAI$1.00$2.00$0.20256K
grok-4.20xAI$1.25$2.50$0.201M
grok-4.20-0309-non-reasoningxAI$1.25$2.50$0.201M
grok-4.20-0309-reasoningxAI$1.25$2.50$0.201M
grok-4.20-betaxAI$1.25$2.50$0.201M
grok-4.20-beta-0309-non-reasoningxAI$1.25$2.50$0.201M
grok-4.20-beta-0309-reasoningxAI$1.25$2.50$0.201M
grok-4.20-beta-latestxAI$1.25$2.50$0.201M
grok-4.20-beta-latest-non-reasoningxAI$1.25$2.50$0.201M
grok-4.20-beta-latest-reasoningxAI$1.25$2.50$0.201M
grok-4.20-beta-non-reasoningxAI$1.25$2.50$0.201M
grok-4.20-beta-reasoningxAI$1.25$2.50$0.201M
grok-4.20-experimental-beta-0304xAI$1.25$2.50$0.201M
grok-4.20-experimental-beta-0304-non-reasoningxAI$1.25$2.50$0.201M
grok-4.20-experimental-beta-0304-reasoningxAI$1.25$2.50$0.201M
grok-4.20-experimental-beta-latestxAI$1.25$2.50$0.201M
grok-4.20-experimental-beta-non-reasoning-latestxAI$1.25$2.50$0.201M
grok-4.20-experimental-beta-reasoning-latestxAI$1.25$2.50$0.201M
grok-4.20-non-reasoningxAI$1.25$2.50$0.201M
grok-4.20-non-reasoning-gv2xAI$1.25$2.50$0.201M
grok-4.20-non-reasoning-latestxAI$1.25$2.50$0.201M
grok-4.20-reasoningxAI$1.25$2.50$0.201M
grok-4.20-reasoning-gv2xAI$1.25$2.50$0.201M
grok-4.20-reasoning-latestxAI$1.25$2.50$0.201M
grok-4.3xAI$1.25$2.50$0.201M
grok-4.3-latestxAI$1.25$2.50$0.201M
grok-4.5xAI$2.00$6.00$0.30500K
grok-4.5-latestxAI$2.00$6.00$0.30500K
grok-4.6xAI$2.00$6.00$0.50500K
grok-4.7xAI$2.00$6.00$0.50500K
grok-build-latestxAI$2.00$6.00$0.30500K

FAQ

How are prices shown?

In US dollars per 1 million tokens, as listed for each model's API. 'Blended' assumes 3 input tokens for every output token.

Which model is cheapest here?

grok-build-0.1 from xAI, at $1.00 per 1M input and $2.00 per 1M output tokens (as of ).

How current are these prices?

We copy the open-source LiteLLM price list once a day and record every change. Providers can change prices at any time, so confirm on the official pricing page linked from each model.