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
Official API prices
USD per 1M tokens. Direct provider rates are listed first; OpenRouter prices follow as a separate channel.
| Model | Input | Output | Source | Checked |
|---|---|---|---|---|
| xAI Grok 4.7 | $2.00 | $6.00 | Official 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
| Model | Chat: 1,000 replies | Summaries: 100 documents | Coding: 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
| Model | Input per 1M tokens | Output per 1M tokens | Context (tokens) | Listed since |
|---|---|---|---|---|
| xAI: Grok Build 0.1 | $1.00 | $2.00 | 256,000 | 20 May 2026 |
| xAI: Grok 4.20 | $1.25 | $2.50 | 2,000,000 | 31 Mar 2026 |
| xAI: Grok 4.20 Multi-Agent | $1.25 | $2.50 | 2,000,000 | 31 Mar 2026 |
| xAI: Grok 4.3 | $1.25 | $2.50 | 1,000,000 | 30 Apr 2026 |
| xAI: Grok 4.5 | $2.00 | $6.00 | 500,000 | 8 Jul 2026 |
| xAI: Grok 4.6 | $2.00 | $6.00 | 500,000 | 12 Aug 2026 |
| xAI: Grok 4.7 6 of 6 common tasks fit on price and context · quality not tested | $2.00 | $6.00 | 500,000 | 21 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.
| Model | Input per 1M tokens | Output per 1M tokens | Context (tokens) | Listed since |
|---|---|---|---|---|
| xAI: Grok 4.3 (batch) | $1.00 | $2.00 | 1,000,000 | 30 Apr 2026 |
| xAI: Grok 4.6 (batch) | $1.60 | $4.80 | 500,000 | 12 Aug 2026 |
| xAI: Grok 4.7 (batch) | $1.60 | $4.80 | 500,000 | 21 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.