Get the app

xAI API pricing

Prices per million tokens for the 4 xAI models we track, with context windows and what a typical task costs. The cheapest is Grok Build 0.1 at $1.00 input and $2.00 output per million tokens; the largest context window is Grok 4.7's 500K tokens. Updated 25 Oct 2026.

ModelInput / 1MOutput / 1MContextToolsReasoning
Grok Build 0.1$1.00$2.00256KYesYes
Grok 4.7$2.00$6.00500KYesYes
Grok 4.6$2.00$6.00500KYesYes
Grok 4.5$2.00$6.00500KYesYes

What xAI models cost per task

Using the listed prices, for three common jobs: a chat turn (2,000 tokens in, 500 out), summarising a 100,000-token document into 2,000 tokens, and a long agent run (1 million in, 50,000 out).

How xAI compares with other providers

Across all 40 models we track, the cheapest xAI model ranks #18 by output price. For a model-by-model comparison, see the full price table or the guide to choosing an LLM.

Other providers: Anthropic pricing · OpenAI pricing · Google pricing · Meta pricing · DeepSeek pricing · Mistral AI pricing · Qwen (Alibaba) pricing · Moonshot AI pricing · Z.ai pricing

xAI in the news

Prices and limits come from OpenRouter's public model catalogue, last synced 25 Oct 2026. xAI's own API pricing can differ and changes often; confirm on its pricing page before you commit.

The daily AI brief, on your phone.

Feed, daily deep-dive and bytes — readable offline, with push alerts for the topics you follow.

Get it on Google Play