xAI’s Grok models have access to real-time data from X (Twitter) and provide large context windows with strong reasoning capabilities.Documentation Index
Fetch the complete documentation index at: https://docs.profclaw.ai/llms.txt
Use this file to discover all available pages before exploring further.
Supported Models
| Model | ID | Context | Tools | Notes |
|---|---|---|---|---|
| Grok 2 | grok-2 | 131K | Yes | Latest stable |
| Grok 3 | grok-3 | 131K | Yes | Most capable |
| Grok 2 Mini | grok-2-mini | 131K | Yes | Faster/cheaper |
Setup
Environment Variables
Your xAI API key. Format:
xai-...Configuration Example
- .env
- settings.yml
Model Aliases
| Alias | Model |
|---|---|
grok | grok-2 |
grok-3 | grok-3 |
Usage Examples
Notes
- API endpoint:
https://api.x.ai/v1(OpenAI-compatible) - Status: Beta
- Grok has access to real-time X/Twitter data, making it useful for current events queries.
- xAI access is invitation-based and may have waitlist requirements.
Related
- AI Providers Overview - Compare all 37 supported providers
- Perplexity - Another provider with real-time web search
- OpenRouter - Access Grok via OpenRouter as an alternative
- profclaw provider - Add and test providers from the CLI