Installation
- Create an account on xAI
- Create your API key from the dashboard from API Keys
- Add your API key to your
.env
file asXAI_KEY=your-api-key
Usage
To use xAI service, you can create an instance ofXAIService
and use the following methods to interact with xAI API.