grok
xAI is the AI company founded by Elon Musk that develops the Grok family of large language models. Grok is known for real-time information access (integrated with X platform data), a witty style, and a relaxed content policy. It offers multiple tiers—the Grok-4 flagship, the balanced Grok-4.3, the ultra-fast Grok-4-1-Fast, and the code-specialized Grok-Code-Fast—supporting context windows of up to 2M tokens.
256K–2M token context window; real-time information access (X platform integration); Function Calling; visual understanding (supported by Grok-4); code generation (Grok-Code-Fast); JSON mode; Batch API; compatible with the OpenAI Chat Completions interface.
Real-time information Q&A and summarization; social media content analysis; code generation and debugging; conversation and customer support; agent workflows; news and public-opinion monitoring; creative writing (witty style).
No image generation; rate limits are based on account quotas; long-context models are more expensive; no on-premises deployment; some enterprise features require contacting sales.
| Model | Input / 1M | Output / 1M | Cache Read / 1M | Per 1M |
|---|---|---|---|---|
| 1M | ||||
| 1M | ||||
| 1M | ||||
| 1M | ||||
| 1M | ||||
| $1.5/M$1.05/M-30% |
| $0.02/M$0.014/M-30% |
| 1M |
Grok 4 Fast grok-4-fast | $0.2/M$0.14/M-30% | $0.5/M$0.35/M-30% | $0.05/M$0.035/M-30% | 1M |
Grok 4 grok-4 | $3/M$2.1/M-30% | $15/M$10.5/M-30% | - | 1M |
Grok 3 grok-3 | $3/M$2.1/M-30% | $15/M$10.5/M-30% | $0.3/M$0.21/M-30% | 1M |
Grok 3 Fast grok-3-fast | $0.2/M$0.14/M-30% | $0.5/M$0.35/M-30% | $0.05/M$0.035/M-30% | 1M |