Grok 2 is xAI's language model with a 131K context window and up to 4K output tokens, available from 2 providers, starting at $2.00 / 1M input and $10.00 / 1M output. xAI's second-generation flagship LLM with strong performance across reasoning, coding, and knowledge-intensive tasks.
Capabilities
Input1/5
Text✓
Image·
Audio·
Video·
PDF·
Output1/5
Text✓
Image·
Audio·
Video·
Embedding·
Capabilities2/13
Reasoning·
Adaptive Reasoning·
Function Calling✓
Parallel Function Calling·
Structured Outputs·
Native JSON Schema·
Web Search✓
URL Context·
Computer Use·
Code Execution·
File Search·
Prompt Caching·
Assistant Prefill·
Pricing by Provider
| Provider | Standard | |
|---|---|---|
| Input $ / 1M | Output $ / 1M | |
Vercel AI Gateway | $2.00 | $10.00 |
xAI | $2.00 | $10.00 |
Cost Calculator
Preset:
Versions
| Version | Released | Context | Input / 1M | Output / 1M | Status |
|---|---|---|---|---|---|
| Grok 4.3 | 1.0M | $1.25 | $2.50 | Available | |
| Grok 4.20 | 2.0M | $1.25 | $2.50 | Available | |
| Grok 4.20 Multi-Agent | 2.0M | $1.25 | $2.50 | Available | |
| Grok 4.20 Multi-Agent Beta | 2.0M | $1.25 | $2.50 | Available | |
| Grok 4.20 Non-Reasoning | 2.0M | $1.25 | $2.50 | Available | |
| Grok 4.20 Reasoning | 2.0M | $1.25 | $2.50 | Available | |
| Grok 4.1 Fast | 2.0M | $1.25 | $2.50 | Deprecated | |
| Grok 4 Fast | 131K | $0.200 | $0.500 | Deprecated | |
| Grok 4 Fast Non-Reasoning | 2.0M | $0.200 | $0.500 | Available | |
| Grok 4 | 256K | $1.25 | $2.50 | Deprecated | |
| Grok 2 | — | 131K | $2.00 | $10.00 | Current |