Grok Code Fast 1
xAI256K context
Official price from xAI
Pricing pagePer million tokens
- Input
- $1.00
- Output
- $2.00
- Cached input
- $0.20
- Batch input / output
- —
- Long prompts are priced higher above a context threshold; these are the starting prices.
- Up to 256K output tokens per request.
Estimate your monthly cost
Est. per month = input tokens × input price + output tokens × output price. Prices are per million tokens, so 10M input tokens at $3.00 cost $30.
From xAI: $14.00 a month. Microsoft Foundry is the cheapest seller at $5.00, $9.00 less.
Where to buy it (2)
Sorted by your monthly estimate. Prices per million tokens.
Microsoft FoundryCheapest
- Input / output
- $0.20 / $1.50
- Context
- 256K
- Per month
- $5.00
azure_ai/grok-code-fast-1
xAIOfficial
- Input / output
- $1.00 / $2.00
- Context
- 256K
- Per month
- $14.00
xai/grok-code-fast-1
Cloud and hosted sellers may add regional pricing, minimums or platform fees. Supports: Tool calling, Web search, Vision, Reasoning.