xAI API pricing

xAI currently lists 9 models in our data. The lowest input price is Grok Build 0.1 at $1.00 per 1M tokens and the lowest output price is Grok Build 0.1 at $2.00; the newest model is Grok 4.7 (2026-09-21). 9 of the 9 have a cached-input price and 4 a batch price. Tick models to compare them, or put your traffic into the calculator.

Default order: premium models (output $6.00+/1M) first, newest release first. Tick models to compare them side by side.

LLM API prices, USD per 1M tokens
CompareModelProviderReleasedInput /1MOutput /1MCached input /1MMax input
Grok 4.7xAI2026-09-21$2.00$6.00$0.50500K
Grok 4.6xAI2026-08-12$2.00$6.00$0.50500K
Grok 4.5xAI2026-07-08$2.00$6.00$0.30500K
Grok 4.3xAI2026-04-17$1.25$2.50$0.201000K
Grok Build 0.1xAI2026-04-16$1.00$2.00$0.20256K
Grok 4.20 Multi AgentxAI2026-03-09$1.25$2.50$0.201000K
Grok 4.20 Non ReasoningxAI2026-03-09$1.25$2.50$0.201000K
Grok 4.20 ReasoningxAI2026-03-09$1.25$2.50$0.201000K
Grok Code Fast 1xAI—$1.00$2.00$0.20256K

Recent price changes

No price changes recorded since tracking began on 2026-10-08.

Estimates from published per-token rates; check official pricing before budgeting. Data synced from the LiteLLM price list 2026-10-13 08:00 UTC.

FAQ

Where do these prices come from?

From the open-source LiteLLM price list, refreshed every 4 hours and, for providers with an automatic check, compared field by field with the provider's official pricing page. Each model page shows what was verified.

Why is a model missing?

We list first-party chat and reasoning models with published per-token prices. Audio, image, realtime, fine-tuned and third-party-hosted models are out of scope; deprecated models move to the retired list. Missing or wrong entries can be reported on the feedback board.