Grok 4 is xAI's language model with a 256K context window, available from 6 providers, starting at $1.25 / 1M input and $2.50 / 1M output. xAI's fourth-generation reasoning LLM with a 256k context window, supporting parallel tool calling, structured outputs, and multimodal image and text inputs.
| Benchmarks | |
|---|---|
| Intelligence Index | #103 |
| Math Index | #19 |
| MMLU-Pro | #18 |
| GPQA | #61 |
| HLE | #91 |
| LiveCodeBench | #27 |
| AIME | #2 |
| IFBench | #159 |
| Time to First Token | #298 |
| SciCode | #66 |
| MATH-500 | #8 |
| AIME 2025 | #19 |
| LCR | #127 |
| TerminalBench Hard | #53 |
| TAU2 | #137 |
| Output TPS | #530 |
Capabilities
Input2/5
Text✓
Image✓
Audio·
Video·
PDF·
Output1/5
Text✓
Image·
Audio·
Video·
Embedding·
Capabilities6/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
US Dollar ($)
Per 1M tokens
| Provider | Standard | ||
|---|---|---|---|
| Input $ / 1M | Output $ / 1M | Cache Read $ / 1M | |
| $3.00 | $15.00 | N/A | |
| $3.00 | $15.00 | N/A | |
| $3.00 | $15.00 | N/A | |
| $7.20 | $36.00 | N/A | |
| $3.00 | $15.00 | N/A | |
| $1.25 | $2.50 | $0.2 | |
Cost Calculator
US Dollar ($)
Preset:
Versions
| Version | Released | Context | Input / 1M | Output / 1M | Status |
|---|---|---|---|---|---|
| Grok 4.6 | 500K | $2.00 | $6.00 | Available | |
| Grok 4.5 | 500K | $2.00 | $6.00 | Available | |
| 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 Reasoning | 2.0M | $0.200 | $0.500 | Deprecated | |
| Grok 4.1 Fast | 2.0M | $1.25 | $2.50 | Deprecated | |
| Grok 4 | 256K | $1.25 | $2.50 | Current |