> ## 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**.

<Steps>
  <Step title="Configure Provider Name">
    Click on the plus (+) icon.

    <img src="https://mintcdn.com/adaline/tvqUtfKxTlDfJpNv/images/admin/providers/xai/xai-1.png?fit=max&auto=format&n=tvqUtfKxTlDfJpNv&q=85&s=e3b7e5523ee11f5e870821d44d7ba56b" alt="Configure xAI provider name" title="Configure xAI Provider Name" style={{ width:"100%" }} width="1100" height="1010" data-path="images/admin/providers/xai/xai-1.png" />

    * 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.
  </Step>

  <Step title="Enter API Credentials">
    Add your **API key** in the required field.

    <img src="https://mintcdn.com/adaline/tvqUtfKxTlDfJpNv/images/admin/providers/xai/xai-2.png?fit=max&auto=format&n=tvqUtfKxTlDfJpNv&q=85&s=647079d6667c3a86295cc61f143d4dbe" alt="Enter xAI API credentials" title="Enter xAI API Credentials" style={{ width:"100%" }} width="948" height="768" data-path="images/admin/providers/xai/xai-2.png" />

    * 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.
  </Step>

  <Step title="Create">
    Click **Create** to save your provider configuration.
  </Step>
</Steps>
