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

# Connect xAI with API Key – StackOne Hub

> Link a xAI account in the StackOne Hub using API Key. End-user guide to authorize the integration and start using xAI actions.

## Create an API key

An API key belongs to one console team and to the user who creates it. It can call only the endpoints and models it is given.

**1. Create the key**

Sign in to the [xAI Console](https://console.x.ai), check that the right team is selected, and open **API Keys** from the sidebar.

<ul>
  <li>Select **Create API Key**.</li>
  <li>**Name**: `StackOne Integration`</li>
  <li>Give it access to the endpoints and models you plan to use.</li>
</ul>

**2. Copy the key**

The key is shown once.

<ul>
  <li>Copy the **API Key** across.</li>
</ul>

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).


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