The xAI integration allows Beamlit users to call xAI models using a Beamlit endpoint in order to unify access control, credentials and observability management.

The integration must be set up by an admin in the Integrations section in the workspace settings.

Set up the integration

In order to use this integration, you must register an xAI access token into your Beamlit workspace settings. First, generate an xAI API key from your xAI team console.

On Beamlit, in Workspace Settings > xAI integration, create a new connection and paste this token into the “Access token” section.

Connect to an xAI model

Once you’ve set up the integration in the workspace, any workspace member can use it to reference an xAI model as an external model API.

When creating a model API, select Connect an external model > xAI. You can search for any ****model from the xAI catalog.

After the model API is created, you will receive a dedicated global Beamlit endpoint to call the model. Beamlit will forward inference requests to xAI, using your xAI credentials for authentication and authorization.

Because your own credentials are used, any inference request on this endpoint will incur potential costs on your xAI account, as if you queried the model directly on xAI.