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_PROVIDERtoopenai. - Set
OPENAI_API_URItohttps://api.x.ai/v1 - Set
OPENAI_API_KEYto your xAI API key. - Set
OPENAI_MODELtogrok-betaor your preferred xAI model. - Set
OPENAI_MAX_TOKENSto the maximum number of input tokens.