Documentation Index
Fetch the complete documentation index at: https://docs.enconvo.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
xAI, founded by Elon Musk, develops the Grok family of language models. Grok models are designed to be maximally helpful with real-time knowledge and a distinctive conversational style.Supported Models
| Model | Description | Best For |
|---|---|---|
| Grok-2 | Flagship model, strong reasoning | Complex tasks, analysis |
| Grok-2-mini | Faster, lightweight variant | Quick responses, chat |
Setup
Get API Key
- Go to xAI Console
- Sign in or create an account
- Navigate to API Keys
- Create a new API key
Configure in EnConvo
- Open Settings → AI Provider
- Select xAI
- Go to Credentials module
- Enter your API key
Configuration
| Setting | Description | Default |
|---|---|---|
| Credentials | API key configuration | Required |
| Model Name | Model to use | Grok-2 |
| Temperature | Creativity (0-2) | Medium (1) |
Validate and Use
Validate credentials
Click Validate in the xAI credential settings. If validation fails, confirm the API key is active and your xAI account has billing or credits available.
Choose model size
Use the flagship Grok model for complex work and the mini model for quick responses or cost-sensitive chat.
Pricing
Check xAI Pricing for current rates.| Model | Input | Output |
|---|---|---|
| Grok-2 | $2/1M | $10/1M |
| Grok-2-mini | $0.30/1M | $0.50/1M |
Best Practices
Model Selection
Model Selection
- Grok-2: Use for complex reasoning, writing, and analysis tasks
- Grok-2-mini: Use for quick chat, simple Q&A, and cost-sensitive workloads
Unique Strengths
Unique Strengths
Grok models are known for their direct, unfiltered communication style and strong performance on reasoning benchmarks. They are a solid choice for brainstorming and creative tasks.
Troubleshooting
Invalid API key
Invalid API key
- Verify the key is copied correctly from console.x.ai
- Check if the key has expired or been revoked
- Ensure billing is set up on your xAI account
Rate limits
Rate limits
- Free tier credits have usage limits
- Upgrade your plan for higher throughput
- Switch to Grok-2-mini for lighter tasks
Connection issues
Connection issues
- Check your network connection
- Verify the xAI API service is available
- Try again after a few minutes