grok-2-1212 · xAI
Legacy Grok 2 conversational and reasoning model with real-time X platform data integration and 128K context.
Last checked Aug 19, 2026. Calculations use the listed base rates; provider-specific tiers, cache writes, batch pricing, and long-context rules may differ. Confirm the current rate at the official provider source.
Input
$2.00
per 1M tokens
Output
$10.00
per 1M tokens
Cached input
—
not published
Context window
128K
max output 8.2K
Grok 2 cost calculator
What Grok 2 costs per task
| Use case | Input tokens | Output tokens | Cost / request | Monthly @ 1K req/day |
|---|---|---|---|---|
| Customer support chatbot | 3,500 | 350 | $0.0105 | $315.00 |
| RAG / search-augmented answers | 8,000 | 500 | $0.021 | $630.00 |
| AI coding assistant | 12,000 | 2,000 | $0.044 | $1,320.00 |
| Document summarization | 25,000 | 600 | $0.056 | $1,680.00 |
| Agentic workflow | 40,000 | 1,500 | $0.095 | $2,850.00 |
| Content generation | 800 | 1,200 | $0.0136 | $408.00 |
| Data extraction & tagging | 2,000 | 250 | $0.0065 | $195.00 |
| Translation | 5,000 | 5,500 | $0.065 | $1,950.00 |
Assumes each use case's typical cacheable share of input. See full cost scenarios.
Compare with alternatives
| Model | Input /M | Output /M | Context | Chat request* |
|---|---|---|---|---|
| Grok 2 | $2.00 | $10.00 | 128K | $0.016 |
| GPT-5.6 Sol | $5.00 | $30.00 | 1.1M | $0.035 |
| GPT-5.6 Terra | $2.00 | $12.00 | 1.1M | $0.014 |
| GPT-5.6 Luna | $0.20 | $1.20 | 1.1M | $0.0014 |
| GPT-5.6 Cyber | $12.50 | $75.00 | 1.1M | $0.0875 |
| GPT-5.5 Standard | $5.00 | $30.00 | 512K | $0.035 |
| GPT-5.5 Pro | $30.00 | $180.00 | 512K | $0.21 |
| GPT-5.4 Workhorse | $2.50 | $15.00 | 256K | $0.0175 |
| GPT-5.4 mini | $0.75 | $4.50 | 256K | $0.00525 |
*4,000 in + 800 out tokens, 50% cached input where available.
Related calculations
FAQ
Grok 2 costs $2.00 per 1M input tokens and $10.00 per 1M output tokens. Verified Aug 19, 2026 against https://docs.x.ai/docs/models.
Grok 2 supports a 128,000-token context window with up to 8,192 output tokens per request, tokenized with tiktoken_cl100k.
At $2.00/M input and $10.00/M output, Grok 2 sits below GPT-5.6 Sol ($5.00/M in, $30.00/M out) — see the comparison table for full-workload differences.