Grok 2 API pricing
RetiredAs of October 22, 2026, xAI Grok 2 costs $2.00 per million input tokens and $10.00 per million output tokens as listed on OpenRouter.
No longer listed on OpenRouter; last listed price shown.
- Input, per million tokens$2.00
- Output, per million tokens$10.00
- Cached input, per millionNo cache price listed
- Context window131K tokens
- Max outputNot published
- Output speedNot measured
What a request costs
Three fixed token mixes at the list price, without cache or batch discounts. For a whole month, use the calculator.
| Workload | Tokens | One request | 1,000 requests | Fits the context window |
|---|---|---|---|---|
| Chat turn | 1K input + 500 output tokens | $0.0070 | $7.00 | Yes |
| Repository review | 50K input + 3K output tokens | $0.130 | $130.00 | Yes |
| Agent loop | 200K input + 10K output tokens | $0.500 | $500.00 | No, it would need splitting |
| Solved coding task | One SWE-bench Verified attempt, divided by the share that succeed | Not computable | Not computable |
Price history
The price of Grok 2 here is the price OpenRouter lists, so we do not track price changes for it.
Cheaper models as good as Grok 2
Grok 2 has no overall or coding score, so we make no quality claim against it.
Grok 2 pricing questions
- How much does Grok 2 cost per million tokens?
- $2.00 per million input tokens and $10.00 per million output tokens, as listed on OpenRouter on October 22, 2026.
- Does Grok 2 support prompt caching?
- OpenRouter lists no cached input price for this model, so assume every input token is billed at the full rate.
- Has the price of Grok 2 changed?
- The price of Grok 2 here is the price OpenRouter lists, so we do not track price changes for it.