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

# Xai

You can now set up xAI models as custom models on TypingMind!

<img src="https://mintlify.s3.us-west-1.amazonaws.com/typingmind/manage-and-connect-ai-models/xai-(grok-ai)/image.png" alt="image.png" />

Here’s how!

## Step 1: Create an xAI account

Go to [https://console.x.ai/](https://console.x.ai/create-team) to sign up for an xAI account if you don’t have one yet.

<img src="https://mintlify.s3.us-west-1.amazonaws.com/typingmind/manage-and-connect-ai-models/xai-(grok-ai)/image%201.png" alt="image.png" />

## Step 2: Create an xAI team

Next, you will need to create an xAI team to get into the console:

* Create a new team by entering a Team name and description.
* Click **Create Team**.
  * You can skip inviting members if not necessary.
  * Skip the API key creation for now - we’ll handle that later.
  * Click **Go to Home** to return to the console dashboard.

<img src="https://mintlify.s3.us-west-1.amazonaws.com/typingmind/manage-and-connect-ai-models/xai-(grok-ai)/image%202.png" alt="image.png" />

<img src="https://mintlify.s3.us-west-1.amazonaws.com/typingmind/manage-and-connect-ai-models/xai-(grok-ai)/image%203.png" alt="image.png" />

## Step 3: Purchase API credits

To use the API, you'll need to purchase credits:

* Go to **Billing**.
* Click on **Credits**.
* Select **Purchase Credits**.

*Note: Make sure to set up your billing profile and payment method before topping up credits.*

<img src="https://mintlify.s3.us-west-1.amazonaws.com/typingmind/manage-and-connect-ai-models/xai-(grok-ai)/image%204.png" alt="image.png" />

## Step 4: Create API key

* Go to **API Keys** in the console.
* Click **Create API Key**.

<img src="https://mintlify.s3.us-west-1.amazonaws.com/typingmind/manage-and-connect-ai-models/xai-(grok-ai)/image%205.png" alt="image.png" />

* Click to copy to API key to a safe place to set up on TypingMind.

## Step 5: Use xAI on TypingMind

* Go to [**typingmind.com**](http://typingmind.com)
* Navigate the Models menu on the left sidebar → Switch to API key tab
* Input the copied API key for xAI.

<Frame>
  <img src="https://mintcdn.com/typingmind/f18I_2hiObU32xEr/images/api-key-tab.webp?fit=max&auto=format&n=f18I_2hiObU32xEr&q=85&s=cd0e293a1514cb9d086e8754ac1106ee" alt="Api Key Tab" width="2342" height="1764" data-path="images/api-key-tab.webp" />
</Frame>

After entering the API key for xAI, switch back to Models tab → select xAI → enable xAI models you want to chat with.

<Frame>
  <img src="https://mintcdn.com/typingmind/VAznm0Uo9H9pR4_5/images/xai-model.webp?fit=max&auto=format&n=VAznm0Uo9H9pR4_5&q=85&s=03b8242dd7c37a582cda82066e782508" alt="Xai Model" width="2358" height="1740" data-path="images/xai-model.webp" />
</Frame>

## Step 6: Start chatting!

You’re all set to use xAI within TypingMind. Enjoy!
