> ## Documentation Index
> Fetch the complete documentation index at: https://www.adaline.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# xAI

> Configure xAI as an AI provider in your Adaline workspace

## Adding xAI Credentials

You can add xAI credentials by navigating to the **Providers** page under **Settings**.

**1. Configure Provider Name**

Click on the plus (+) icon.

![Configure xAI provider name](https://mintcdn.com/adaline/tvqUtfKxTlDfJpNv/images/admin/providers/xai/xai-1.png?fit=max\&auto=format\&n=tvqUtfKxTlDfJpNv\&q=85\&s=e3b7e5523ee11f5e870821d44d7ba56b)

* Enter a unique **Name** for your xAI configuration (e.g., "xAI-Dev").
* This name will be used as a prefix in the model dropdown to help you identify which provider configuration to use. The name appears as "xAI (your-name)::" before each model name.
* It makes it easy to distinguish between multiple xAI accounts like "xAI-dev" and "xAI-prod" setups.

**2. Enter API Credentials**

Add your **API key** in the required field.

![Enter xAI API credentials](https://mintcdn.com/adaline/tvqUtfKxTlDfJpNv/images/admin/providers/xai/xai-2.png?fit=max\&auto=format\&n=tvqUtfKxTlDfJpNv\&q=85\&s=647079d6667c3a86295cc61f143d4dbe)

* Optionally, you can specify a custom **Base URL** if needed (defaults to [https://api.x.ai/v1](https://api.x.ai/v1) if left blank).
* You can also add a **Description** to help identify the purpose of these credentials for future reference.

**3. Create**

Click **Create** to save your provider configuration.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.