> ## Documentation Index
> Fetch the complete documentation index at: https://nango-marcin-nan-6306-mcp-tool-connections-get.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# xAI - How do I link my account?

# Overview

To authenticate with xAI, you will need:

1. **API Key** - A key that grants secure access to the API, enabling authorized applications to interact with xAI resources and services.

This guide will walk you through generating your **API Key** within xAI.

### Prerequisites:

* You must have an account with xAI.

### Instructions:

#### Step 1: Generating Your API Key

1. Login to your [xAI](https://console.x.ai/) console.
2. Click on **API Keys** in the left sidebar menu, then click the **Create API Key** button.

<img src="https://mintcdn.com/nango-marcin-nan-6306-mcp-tool-connections-get/cglUJocYY7qhm8pT/integrations/all/xai/api_key.png?fit=max&auto=format&n=cglUJocYY7qhm8pT&q=85&s=225ceb650dc09c96ac9c47d0aa5d49e4" width="3022" height="1506" data-path="integrations/all/xai/api_key.png" />

3. Give your **API Key** a meaningful name, select the desired settings (e.g., enabling access to all endpoints), and then click **Save**.

<img src="https://mintcdn.com/nango-marcin-nan-6306-mcp-tool-connections-get/cglUJocYY7qhm8pT/integrations/all/xai/creating.png?fit=max&auto=format&n=cglUJocYY7qhm8pT&q=85&s=a1ce9df5c12dcd749453d1cb018fcfc8" width="3022" height="1506" data-path="integrations/all/xai/creating.png" />

4. Your **API Key** will be generated.

<img src="https://mintcdn.com/nango-marcin-nan-6306-mcp-tool-connections-get/cglUJocYY7qhm8pT/integrations/all/xai/key.png?fit=max&auto=format&n=cglUJocYY7qhm8pT&q=85&s=f3d94ff3b105bd580cef5f637d2027a4" width="3022" height="1506" data-path="integrations/all/xai/key.png" />

#### Step 2: Enter credentials in the Connect UI

Once you have your **API Key**:

1. Open the form where you need to authenticate with xAI.
2. Enter the **API Key** in its respective field.
3. Submit the form, and you should be successfully authenticated.

<img src="https://mintcdn.com/nango-marcin-nan-6306-mcp-tool-connections-get/cglUJocYY7qhm8pT/integrations/all/xai/form.png?fit=max&auto=format&n=cglUJocYY7qhm8pT&q=85&s=21a957938701194370b1efdb0c85efea" style={{maxWidth: "450px" }} width="1000" height="1394" data-path="integrations/all/xai/form.png" />

You are now connected to xAI.
