xAI

Grok 4.7 API pricing

Made by xAI

9 provider routes, checked 27 Nov 2026. For a sample chat workload, the cheapest is Amazon Bedrock at $1,470.00 a month; the dearest costs $2,940.00, 2.0× as much.

Input from
$2.00
Output from
$6.00
Context up to
524K 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
Amazon BedrockOpenRouter$2.00$6.00$0.50$0.00—500K$1,470.00
xAIOpenRouter$2.00$6.00$0.50—$1.60 / $4.80500K$1,470.00
PerplexityLiteLLM$2.00$6.00$0.50———$1,470.00
Perplexity OrchestratorLiteLLM$2.00$6.00$0.50——500K$1,470.00
Google Vertex AILiteLLM$2.00$6.00$0.50——524K$1,470.00
AzureLiteLLM$2.00$6.00$0.50——500K$1,470.00
KymaLiteLLM$2.16$6.48$0.54——500K$1,587.60
DatabricksLiteLLM$2.50$7.50$0.625$2.50—500K$1,837.50
xAIOpenRouter$4.00$12.00$1.00——500K$2,940.00

Other Grok models