Supported Models
Setup
Environment Variables
string
required
Your xAI API key. Format:
xai-...Configuration Example
- .env
- settings.yml
Model Aliases
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