xAI · Legacy
Grok 2 API Pricing · Cost per Token
Grok 2 is xAI's previous-generation flagship model. New deployments should use Grok 3 for improved capabilities at similar pricing.
Current pricing
- Input tokens: $2.00 per 1M tokens
- Output tokens: $10.00 per 1M tokens
- Context window: 32k tokens
- Provider: xAI
Cost at common workload volumes
- 1,000 requests/day (500 input + 300 output tokens each): calculate in the cost calculator below
- Prompt caching: available on select xAI models to reduce repeated-context costs
- Batch API: 50% discount for async workloads on eligible models
Calculate my Grok 2 cost