Skip to main content
xAI

Grok API pricing

Every Grok model we track, with the cheapest input and output rates per 1M tokens across 7 providers next to xAI's own API price. Collected daily.

Lowest input /1M
$0.840
Grok 4.7
Models
6
Providers
7
Last updated
November 15, 2026

Grok API prices by model

Standard (real-time) rates per 1M tokens, newest first. The cheapest input and the cheapest output are often on different hosts, so each is shown with its own host. Batch and cached-input rates are on each model page.

Grok API pricing by model
ModelCheapest inputCheapest output
Grok 4.202.0M context$1.25OpenRouter$2.50OpenRouter
Grok 4.7$0.840HiAPI$2.52HiAPI
Grok 4.6$0.840HiAPI$2.52HiAPI
Grok 4.5$2.00GMI Cloud$6.00GMI Cloud
Grok 4.3$1.25xAI$2.50xAI
Grok Build 0.1 0616$1.00xAI$2.00xAI

Official column shows input / output per 1M tokens on xAI's own API.

Grok price history

Average input price per 1M tokens across the providers serving each model, last 90 days.

Frequently Asked Questions

Which Grok model has the lowest API prices?

Of the 6 Grok models we track, Grok 4.7 has the lowest input rate right now: $0.840 per 1M tokens on HiAPI. Grok Build 0.1 0616 has the lowest output rate: $2.00 per 1M tokens on xAI. Which is cheaper for you depends on how many input tokens you send per output token. Prices are collected daily from 7 providers.

Where is Grok 4.20 cheapest?

Grok 4.20 is served by 2 providers we track. The lowest rates are $1.25 per 1M input tokens on OpenRouter and $2.50 per 1M output tokens on OpenRouter. Throughput, latency and context limits differ between hosts, so check the model page before committing.

Is a third-party host cheaper than xAI's own API?

Of the 5 Grok models xAI serves directly, another provider currently lists a lower input rate for 2 and a lower output rate for 2. Compare the cheapest-input and cheapest-output columns with the "Official" column above; batch and cached-input rates are on each model page.

Other model families