xAI Grok API
Access Grok-3 and Grok-2 models with real-time X data access and vision capabilities.
From $2/MTok
Get API Access - Category
- LLM Platforms & APIs
- Pricing
- From $2/MTok
- Vendor
- xAI
- Website
- x.ai
About xAI Grok API
xAI provides API access to its Grok-3 and Grok-2 models, featuring real-time awareness from the X platform, vision understanding, and function calling. Competitive with frontier models on reasoning and code benchmarks.
What you get
- Grok-3 flagship and Grok-2 models
- Real-time X/Twitter platform data
- Vision & image understanding
- Function calling & tool use
- Large context window
- OpenAI-compatible API
Specifications
| Context Window | 128K tokens |
|---|---|
| Tool Use | Yes |
| Vision | Yes |
| Streaming | Yes |
| Open Source | No |
| Self-Host | No |
| Starting Price | $2/MTok input |