Grok 4
xAI262K context
As of Nov 29, 2026, Grok 4 costs $3.00 per million input tokens and $15.00 per million output tokens from Microsoft Foundry. The cheapest of 3 providers is Microsoft Foundry at $3.00 / $15.00. No price change since Appndo started tracking it on Oct 14, 2026. Recent price changes
Providers (3)
Sorted by your monthly estimate. Prices per million tokens. Microsoft Foundry also lists up to 8K output tokens per request.
- Input / output
- $3.00 / $15.00
- Context
- 262K
- Per month
- $60.00
azure_ai/grok-4
- Input / output
- $3.00 / $15.00
- Context
- 256K
- Per month
- $60.00
vercel_ai_gateway/xai/grok-4
- Input / output
- $7.20 / $36.00
- Context
- —
- Per month
- $144.00
replicate/xai/grok-4
Cloud and hosted providers may add regional pricing, minimums or platform fees. Supports: Tool calling, Web search.
Similar models
Common questions
How much does the Grok 4 API cost?
As of Nov 29, 2026, Grok 4 costs $3.00 per million input tokens and $15.00 per million output tokens from Microsoft Foundry.
Where is Grok 4 cheapest?
As of Nov 29, 2026, the cheapest of 3 providers is Microsoft Foundry at $3.00 per million input tokens and $15.00 per million output tokens. Appndo lists no official price from xAI.
What is the context length of Grok 4?
Grok 4 takes up to 262K tokens of context at Microsoft Foundry; the limit differs between providers.
How does Grok 4 compare with similar models?
On LMArena Grok 4 scores 1411, #146 overall. Models with close scores and their cheapest price per million input / output tokens: GPT-5.4 mini ($0.75 / $4.50), O3 ($2.00 / $8.00), and Qwen3 Max ($1.20 / $6.00).