grok-4 pricing

grok-4 by xAI is sold on Microsoft Foundry (Azure). It costs $3.00 per million input tokens and $15.00 per million output tokens on Microsoft Foundry (Azure) (global deployment).

Microsoft Foundry (Azure)

TierRuns inInputOutput
StandardGlobal (39 regions)$3.00$15.00
StandardGeography (data zone) (20 regions)$3.30$16.50
StandardGeography (data zone) (polandcentral)$6.05$30.30

More xAI models

Prices in USD per 1 million tokens, from OpenAI and Anthropic's pricing pages, the AWS Price List API (Bedrock) and the Azure Retail Prices API (Microsoft Foundry). Cloud prices are the lowest in any region; global deployments can run anywhere.

Prices as of 12 Nov 2026. All AI models