Last Updated: 2026-11-25
From $0.30 / 1M Input Tokens
xAI Grok API Pricing Calculator (2026)
Calculate xAI Grok 4.7 and Grok 3 Mini API pricing for 500K-context flagship reasoning, coding, and fast logic workloads.
xAI Grok API Pricing & Providers
Prices shown per 1 million tokens. Monthly bills update automatically from the calculator above.
| PK | Model & Provider | Input / 1M↕ | Output / 1M↕ | Blended / 1M↕ | Context↕ | Est. Speed↕ | Your Est. Cost▲ | Official Pricing |
|---|
xAI Grok API Monthly Cost Scenarios (1,200 In / 400 Out, 30% Cache)
Pre-computed monthly USD estimates across startup, growth, and high-scale daily volumes.
| Model & Provider | Input / Output (1M) | 500 req/day | 5,000 req/day | 50,000 req/day |
|---|---|---|---|---|
| Grok 4.7 | $2.00 / $6.00 | $63.90/mo | $639.00/mo | $6,390.00/mo |
| Grok 3 Mini | $0.30 / $0.50 | $8.40/mo | $84.00/mo | $840.00/mo |
xAI Grok API Buying & Optimization Notes
Grok 4.7 provides a 500K context window at $2.00/1M input and $6.00/1M output ($0.50 cached), while Grok 3 Mini targets ultra-budget reasoning at $0.30/$0.50.
With OpenAI-compatible SDK support, migrating existing prompts to xAI Grok endpoints takes only minutes.
Explore Other Model Pricing
OpenAI API Pricing Calculator →
Calculate monthly OpenAI API costs across GPT-6.2 Astra & Sol, GPT-6 Luna, GPT-5, GPT-4.1, GPT-4o, o3, and o4-mini with prompt caching and 50% Batch API discounts.
Claude API Pricing Calculator →
Estimate Anthropic Claude Opus 5.5, Sonnet 5.5, Haiku 5.5, Sonnet 4.6, and 3.7 Sonnet API costs per month, with up to 90%–95% prompt caching discounts.
Google Gemini API Pricing Calculator →
Calculate Google Gemini 4 Neon & Argon, Gemini 3.8 Flash, and Gemini 2.5 Pro, Flash & Flash-Lite API pricing with 1M context windows and Google AI Studio free tier.
DeepSeek API Pricing Calculator →
Compare DeepSeek-V4 Pro, DeepSeek-V4.1 Flash, DeepSeek-V3, and DeepSeek-R1 API costs across DeepSeek Official, Together AI (US hosted), and OpenRouter.