grok-code-fast-1 pricing

grok-code-fast-1 by xAI is sold on Microsoft Foundry (Azure). It costs $0.20 per million input tokens and $1.50 per million output tokens on Microsoft Foundry (Azure) (global deployment).

Microsoft Foundry (Azure)

TierRuns inInputOutput
StandardGlobal (39 regions)$0.20$1.50
StandardGeography (data zone) (20 regions)$0.22$1.65
StandardGeography (data zone) (polandcentral)$0.32$1.65

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