grok-4.2 pricing

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

Microsoft Foundry (Azure)

TierRuns inInputOutput
StandardGlobal (39 regions)$1.25$2.50
StandardGeography (data zone) (37 regions)$1.375$2.75

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