Features
xAI API (Twitter)
xAI API (Twitter) Docs
Larafast provides a simple way to integrate xAI API with Laravel.
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
That’s it, your project is ready to use xAI API.
Usage
To use xAI service, you can create an instance of XAIService
and use the following methods to interact with xAI API.