xAI

Grok4 7 API pricing

Made by xAI

1 provider route, checked 27 Nov 2026. For a sample chat workload, the cheapest is GMI Cloud at $1,470.00 a month.

Input from
$2.00
Output from
$6.00
Context up to
500K tokens
Batch rates
None listed

Every route, cheapest first

Prices per 1M tokens. Month is the sample workload: 300,000 requests, 2,000 tokens in and 400 out per request, half the input cached. Cache writes are not counted.

ProviderInputOutputCache readCache writeBatch in / outContextMonth
GMI CloudLiteLLM$2.00$6.00$0.50——500K$1,470.00

Other Grok4 models