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 (xAI Official) $2.00 / $6.00 $63.90/mo $639.00/mo $6,390.00/mo
Grok 3 Mini (xAI Official) $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