xAI

Grok 4 20 Reasoning API pricing

Made by xAI

6 provider routes, checked 27 Nov 2026. For a sample chat workload, the cheapest is Oracle Cloud at $735.00 a month; the dearest costs $1,380.00, 1.9× as much.

Input from
$1.25
Output from
$2.50
Context up to
2M tokens
Batch rates
1 route

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
Oracle CloudLiteLLM$1.25$2.50$0.20——1M$735.00
Google Vertex AILiteLLM$1.25$2.50$0.20——2M$735.00
xAILiteLLM$1.25$2.50$0.20—$1.00 / $2.001M$735.00
PerplexityLiteLLM$1.25$2.50$0.20———$735.00
AzureLiteLLM$1.25$2.50$1.25——262K$1,050.00
AihubmixLiteLLM$2.00$6.00$0.20——1M$1,380.00

Other Grok models