xAI API Pricing and Measured Speed

We track 10 models from xAI. Official API prices are shown first where available; OpenRouter is a separate channel. Prices were last checked . Methodology · Source

Subscription limits · Terms tracker · Model prices · What's new

All providers

Official API prices

USD per 1M tokens. Direct provider rates are listed first; OpenRouter prices follow as a separate channel.

ModelInputOutputSourceChecked
xAI Grok 4.7$2.00$6.00Official price list

Our measured latency and output speed appear on the linked model pages, by route and country, after successful requests on at least two dates.

What typical tasks cost with these models

ModelChat: 1,000 repliesSummaries: 100 documentsCoding: one working day
Grok 4.7$3.80$1.06$3.36

Calculated at the model provider's own API price. For the same tasks through OpenRouter and on other models, see LLM API pricing comparison by task.

Not building on an API? Ready-made AI tools for writing, speech and images charge per month or per credit instead of per token: AI tool prices and the usage each plan includes.

Prices through OpenRouter

ModelInput per 1M tokensOutput per 1M tokensContext (tokens)Listed since
xAI: Grok Build 0.1$1.00$2.00256,00020 May 2026
xAI: Grok 4.20$1.25$2.502,000,00031 Mar 2026
xAI: Grok 4.20 Multi-Agent$1.25$2.502,000,00031 Mar 2026
xAI: Grok 4.3$1.25$2.501,000,00030 Apr 2026
xAI: Grok 4.5$2.00$6.00500,0008 Jul 2026
xAI: Grok 4.6$2.00$6.00500,00012 Aug 2026
xAI: Grok 4.7
6 of 6 common tasks fit on price and context · quality not tested
$2.00$6.00500,00021 Sep 2026

Batch variants (3)

OpenRouter lists these as separate batch variants at a different price; batch requests are not answered right away, so these prices are kept apart from live prices.

ModelInput per 1M tokensOutput per 1M tokensContext (tokens)Listed since
xAI: Grok 4.3 (batch)$1.00$2.001,000,00030 Apr 2026
xAI: Grok 4.6 (batch)$1.60$4.80500,00012 Aug 2026
xAI: Grok 4.7 (batch)$1.60$4.80500,00021 Sep 2026

Unknown means no value was recorded at our latest check; it is never shown as zero. Prices in USD as OpenRouter lists them; we do not add taxes.

How these numbers are produced

Each row is one model at one provider in our ai-models section. Prices are the input and output prices per one million tokens from the latest check of that model; the context length is the value read on the same pass. The table is sorted by our latest output price, lowest first; rows without an output price come last, and after them, greyed, rows of providers whose terms restrict independent comparisons (list of these providers).

A provider gets its own page when we track at least 5 of its models.

Each model links to its page with dates, the source link and the full history.