xAI (Grok)
Connect to xAI's Grok models.
Configuration
| Field | Required | Example |
|---|---|---|
| Application Name | Yes | my-grok-app |
| Model Name | Yes | grok-3, grok-2 |
| API Key | Yes | xai-... |
Getting Your API Key
- Go to xAI Console
- Sign up or log in
- Navigate to API Keys
- Create and copy your API key
Popular Models
| Model | Description |
|---|---|
grok-4.1 | Latest model with improved reasoning, reduced hallucinations |
grok-4-1-fast-reasoning | Optimized for tool use, web search, code execution |
grok-4-1-fast-non-reasoning | Fast non-reasoning mode |
grok-4 | "Most intelligent model in the world", native tool use |
grok-4-fast | 40% fewer thinking tokens, 2M context window |
grok-3 | Strong reasoning with 1M context window |
grok-3-mini | Cost-efficient reasoning model |
Note: Grok 4 was trained with reinforcement learning for native tool use including code interpreter and web browsing.
For the complete list of available models, visit the xAI Models Documentation.
Advanced Parameters
| Parameter | Type | Description |
|---|---|---|
max_tokens | integer | Maximum tokens |
temperature | float | Randomness |
top_p | float | Nucleus sampling |
frequency_penalty | float | Reduce repetition |
presence_penalty | float | Encourage new topics |
Setup Steps
- Navigate to AI Applications → New Application
- Select Model Providers tab
- Click xAI (Grok)
- Enter your Application Name and API Key
- Select your desired Model Name
- Configure Advanced Settings (optional)
- Click Test Response to verify (optional)
- Review and submit