aiapicostcalcUnit economicsPricesBrandsCompareBenchmarksSkills & PluginsFind my modelGuidesChanges

xAI Grok API pricing: all 3 models, cheapest first

xAI lists 3 Grok models with a price on its official API pricing page, from Grok Build 0.1 at $1 input and $2 output per 1M tokens to Grok 4.7 at $2 and $6 per 1M. Every rate below is checked 2026-11-18, links to its model page and names the official source.

Last verified 2026-11-18 · Sources: xAI pricing page, checked 2026-11-18 · Report an error

By Shangyi Duan · Reviewed against the xAI pricing page

All 3 Grok models, cheapest first

ModelInput /1MCached /1MOutput /1M1,000 calls (10K in / 1K out)Checked
Grok Build 0.1$1$0.2$2$0.01202026-11-15
Grok 4.3$1.25$0.2$2.5$0.01502026-11-15
Grok 4.7$2$0.5$6$0.02602026-11-15

Prices are the standard list rate per 1M tokens on the official xAI pricing page, checked 2026-11-18. The 1,000-call column uses a 10,000-input / 1,000-output workload with no caching; price your own token shape in the Grok calculator.

What the price range means

Across the 3 xAI models priced here, 1M input tokens cost $1 to $2 (a 2.0x spread) and 1M output tokens cost $2 to $6. The cheapest input rate is Grok Build 0.1 at $1 per 1M; the highest is Grok 4.7 at $2. At a 10,000-input / 1,000-output workload the cheapest model here costs $0.0120 per 1,000 calls and the most expensive costs $0.0260.

Input and output are priced separately, so the order changes with the workload: a model with a low input rate climbs a RAG-style table, while a model with a low output rate climbs a long-answer table. The table above holds one fixed shape (10,000 in / 1,000 out) so the rows are directly comparable; price your own shape in the Grok API cost calculator or the homepage calculator.

3 of the 3 models list a separate cached-input rate; where a model does not, this table reuses its standard input rate and shows a dash.

How xAI bills tokens

xAI publishes a per-token list price for every model in the table: input, output and, for 3 of them, a cheaper cached-input rate. The rate applies per 1M tokens; the method page explains how a price is read from the official page and what happens when one cannot be verified.

2 of these models list a batch discount: Grok 4.3 at 20% off, Grok 4.7 at 20% off.

3 models move to a higher long-context rate once the prompt passes a token threshold: Grok Build 0.1 over 200K input, Grok 4.3 over 200K input, Grok 4.7 over 200K input. Above that threshold the higher rate applies to the whole request, not just to the excess tokens.

Context windows run from 256K tokens on Grok Build 0.1 to 1000K on Grok 4.3. A request larger than the window is rejected, so a long-document workload has to be split or moved to a larger-context model; that changes the number of calls, not just the rate.

Which Grok model to price first

Start with the cheapest model that passes your own test, not with the most expensive one. Grok Build 0.1 has the lowest input rate in this lineup at $1 per 1M tokens; if its answers hold up on your prompts, moving a workload down to it is usually worth more than any caching or batch tweak. If it fails, step up one row at a time in the table above and re-run the same prompts, so the quality difference you pay for is one you can see.

Cost per call is not the same as cost per finished task: a cheaper model that needs two attempts, a longer prompt or manual fixes costs more than its rate suggests. The benchmark comparison puts measured scores next to these prices, and the coding-cost ranking prices completed coding tasks rather than single calls.

Related

Questions

How many xAI models does this page price?

This page prices 3 xAI models, every one copied from the official xAI pricing page and checked 2026-11-18. Each row links to a per-model page with the full rate tiers, worked examples and the source URL, so a number here can always be traced back.

Does xAI charge less for cached input tokens?

Yes. 3 of the 3 models list a cached-input rate below the standard input rate; the cheapest cached read here is $0.2 per 1M tokens. Cached pricing only applies to a repeated prefix the provider has stored, so the saving depends on how much of your prompt is identical between calls.

Which xAI model is cheapest per 1M tokens?

Grok Build 0.1 has the lowest input rate at $1 per 1M tokens and $2 per 1M output tokens. At a 10,000-input / 1,000-output workload the cheapest model is Grok Build 0.1 at $0.0120 per 1,000 calls, while Grok 4.7 at $2/$6 carries the highest input rate in this lineup.

Which xAI model has the largest context window?

The largest context window here is 1000K tokens on Grok 4.3. A larger window does not make a model cheaper: cost the input side of the bill first and check the window only for the documents you need to send in one request.

Next step → Price a Grok workload per user

Price data last checked 2026-11-18 against official sources · how we verify

Price-change alerts

One short email when a provider changes a price or a promo ends. No spam, unsubscribe any time.