Skip to main content
xAI is a platform for providing endpoints for Large Language models.

Authentication

Set your XAI_API_KEY environment variable. You can get one from xAI here.

Example

Use xAI with your Agent:

Params

For more information, please refer to the xAI docs as well.

Params

xAI also supports the params of OpenAI.