xAI
⚠️ Please note that using some AI providers, such as xAI's API, can be expensive. Monitor your usage carefully to avoid incurring unexpected costs. We're NOT responsible for your usage under any circumstance.
Quick Start Guide
- Instructions for setting up an API key to use xAI's Grok models can be found here.
Update your agent settings
- Set
AI_PROVIDER
toopenai
. - Set
API_URI
tohttps://api.x.ai/v1
- Set
OPENAI_API_KEY
to your xAI API key. - Set
AI_MODEL
togrok-beta
or your preferred xAI model. - Set
MAX_TOKENS
to the maximum number of input tokens.