Pricing
per 1M tokens
| Input / 1M | $3.00 |
| Output / 1M | $15.00 |
Specifications
| API Model ID | grok-4 |
| Context Window | 256K tokens |
| Max Output | 32K tokens |
Modalities
textimage
Capabilities
tool-usestreamingjson-modevisioncodereasoning
Other xAI Text / Chat Models
| Model | Input / 1M | Output / 1M | Cache Read / 1M | Cache Write / 1M |
|---|---|---|---|---|
| Grok 4.20 Beta | $2.00 | $6.00 | — | — |
| Grok 4.1 Fast | $0.20 | $0.50 | — | — |
| Grok 3 | $3.00 | $15.00 | — | — |
| Grok 3 Mini | $0.30 | $0.50 | — | — |