diff --git a/docs/3-Providers/3-xAI.md b/docs/3-Providers/3-xAI.md new file mode 100644 index 0000000..8ae3940 --- /dev/null +++ b/docs/3-Providers/3-xAI.md @@ -0,0 +1,18 @@ +# xAI + +- [xAI](https://docs.x.ai/docs) +- SOPHIA + +⚠️ **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](https://docs.x.ai/docs#getting-started). + +### Update your agent settings + +1. Set `AI_PROVIDER` to `openai`. +2. Set `OPENAI_API_URI` to `https://api.x.ai/v1` +3. Set `OPENAI_API_KEY` to your xAI API key. +4. Set `OPENAI_MODEL` to `grok-beta` or your preferred xAI model. +5. Set `OPENAI_MAX_TOKENS` to the maximum number of input tokens.