LLM API PricingPlans, free tiers, usage limits of LLM APIs from OpenAI, Anthropic, Google, Mistral, DeepSeek, xAI and others, from each vendor's official pricing page
LLM API pricing › xAI (Grok)

xAI (Grok) API pricing

We list 3 xAI (Grok) API models. Output prices run from $2 per 1M tokens (Grok Build 0.1) to $6 (Grok 4.7). Checked on the official pricing page on .

Prices are from each vendor's official pricing page, checked on . This page has no affiliate links.

xAI (Grok) API prices per 1M tokens (standard rates, checked Oct 18, 2026)
ModelInput / 1M tokensOutput / 1M tokens1M in + 1M out
Grok 4.7$2$6$8
Details
Cached input / 1M tokens
$0.50
Context
500K
Note
Rate for prompts under 200K tokens. At 200K or more, the whole request is billed at input $4.00, cached $1.00, output $12.00. Recommended top model in the official docs.
Source, checked
Source
Grok 4.3$1.25$2.50$3.75
Details
Cached input / 1M tokens
$0.20
Context
1M
Note
Rate for prompts under 200K tokens. At 200K or more: input $2.50, cached $0.40, output $5.00.
Source, checked
Source
Grok Build 0.1$1$2$3
Details
Cached input / 1M tokens
$0.20
Context
256K
Note
Rate for prompts under 200K tokens. At 200K or more: input $2.00, cached $0.40, output $4.00.
Source, checked
Source

xAI (Grok) official pages

Websitex.ai/api
Pricing pagehttps://docs.x.ai/docs/models
Checked
CurrencyUSD
Free tier—

Compare all providers on the LLM API pricing table.

Pricing tables for other AI tools

Links marked "Affiliate link" pay us a commission if you subscribe. They do not change the order of the tables, which is sorted by price. Prices are as published by each vendor (most exclude sales tax and VAT). Check the vendor's page before you buy.

How this data is collected: Prices are read by hand from each vendor's official pricing page and stored with the date and source URL. Values we could not confirm there are left blank. Last checked .