Grok 2 API pricing
Earlier xAI chat model, kept for historical API pricing and specification reference.
How much does Grok 2 API cost?
The historical price recorded for Grok 2 is $5.00 per 1 million input tokens and $15.00 per 1 million output tokens. It is not a current TokenGate price.
| Model | Input tokens / 1M | Cached input / 1M | Output tokens / 1M |
|---|---|---|---|
| Grok 2 | $5.00 | — | $15.00 |
Estimate Grok 2 API cost
Historical pricing
Model specifications
- Provider
- xAI
- API model identifier
- grok-2
- Generation
- 2
- Provider lifecycle
- Active
- Context window
- 131K
- Maximum output tokens
- 8K
- Input modalities
- Text, Image
- Output modalities
- Text
- Capabilities
- Streaming, Function calling, Vision, JSON mode
Best for
- Knowledge work
Explore TokenGate models
Availability through TokenGate is not confirmed for this model.
- · One API integration
- · OpenAI-compatible interface
- · Payment in USDT
Frequently asked questions
Related models
Grok 4.6
xAI's current flagship model for coding, agentic tasks, tool use and general knowledge work.
- Input / 1M
- $2.00
- Output / 1M
- $6.00
- Context
- 500K
- Generation
- 4.6
Function calling · Structured outputs · Vision
Grok 4.6 API pricingGrok 4.5
Previous-generation xAI model with a 500K context window for coding and agentic tasks.
- Input / 1M
- $2.00
- Output / 1M
- $6.00
- Context
- 500K
- Generation
- 4.5
Function calling · Structured outputs · Vision
Grok 4.5 API pricingGPT-6 Astra
OpenAI's flagship model for complex reasoning, coding, research, computer use and demanding professional workflows.
- Input / 1M
- $10.00
- Output / 1M
- $50.00
- Context
- 1.05M
- Generation
- 6
Streaming · Function calling · Structured outputs
GPT-6 Astra API pricingTokenGate
