Skip to main content

xAI Grok API pricing

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

Lowest input /1M
$0.200
Grok 4 Fast
Models
9
Providers
8
Last updated
November 23, 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.25Liquid Inference$2.50Liquid Inference
Grok 4.7$0.840HiAPI$2.52HiAPI
Grok 4.6$0.840HiAPI$2.52HiAPI
Grok 4.5$2.00RouterPlus$6.00RouterPlus
Grok 4.3$1.25xAI$2.50xAI
Grok 4256K context$3.01Liquid Inference$15.03Liquid Inference
Grok 4 Fast2.0M context$0.200Liquid Inference$0.500Liquid Inference
Grok 3131K context$3.00Liquid Inference$14.98Liquid Inference
Grok Build 0.1 0616$1.00xAI$2.00xAI

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

xAI API prices: standard, cached input and batch

Rates per 1M tokens on xAI's own API. Cached input is the price of a prompt prefix the API has already seen; batch requests run asynchronously and can take hours. A dash means xAI publishes no rate for that mode, or we have no current figure.

xAI API prices by billing mode
ModelInputCached inputOutputBatch inputBatch output
Grok 4.7$2.00$0.500$6.00——
Grok 4.6$2.00$0.500$6.00——
Grok 4.5$2.00$0.300$6.00——
Grok 4.3$1.25$0.200$2.50——
Grok Build 0.1 0616$1.00$0.200$2.00——

What 1,000 Grok requests cost

An estimate for one example request: 3,000 input tokens, 50% of them a cached prefix, and 400 output tokens, the same shape as our customer support chatbot comparison. Each cost uses one provider's own input, cached-input and output rates; where a provider publishes no cached-input rate, cached tokens are billed at its full input rate.

Estimated cost of 1000 Grok requests
ModelLowest costOn xAI's API
Grok 4.20$3.17OpenRouter—
Grok 4.7$2.58HiAPI$6.15
Grok 4.6$2.58HiAPI$6.15
Grok 4.5$5.85RouterPlus$5.85
Grok 4.3$3.17xAI$3.17
Grok 4$15.03Liquid Inference—
Grok 4 Fast$0.800Liquid Inference—
Grok 3$14.98Liquid Inference—

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 9 Grok models we track, Grok 4 Fast has the lowest input rate right now: $0.200 per 1M tokens on Liquid Inference. Grok 4 Fast has the lowest output rate: $0.500 per 1M tokens on Liquid Inference. Which is cheaper for you depends on how many input tokens you send per output token. Prices are collected daily from 8 providers.

Where is Grok 4.20 cheapest?

Grok 4.20 is served by 3 providers we track. The lowest rates are $1.25 per 1M input tokens on Liquid Inference and $2.50 per 1M output tokens on Liquid Inference. 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.

How much do cached input tokens cost on xAI's API?

For Grok 4.7, xAI charges $0.500 per 1M cached input tokens against $2.00 for ordinary input, 75% less. Cached tokens are the repeated start of a prompt (a system prompt, tool definitions, a long document) that the API has already seen. Cached-input rates for every model are in the table above.

What does a typical Grok 4.20 request cost?

A chat request with 3,000 input tokens and 400 output tokens costs about $3.17 per 1,000 requests at OpenRouter's current rates, the lowest of the providers we track. Your cost depends on how long your prompts and answers are; the estimate table above shows the same request on other Grok models.

Other model families