> ## 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!

![image.png](https://mintcdn.com/typingmind/Nn1-WOYJzVth_7fv/manage-and-connect-ai-models/xai-\(grok-ai\)/image.webp?fit=max\&auto=format\&n=Nn1-WOYJzVth_7fv\&q=85\&s=e35f955026b38d5a63e9f6ed5f2a7d55)

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.

![image.png](https://mintlify.s3.us-west-1.amazonaws.com/typingmind/manage-and-connect-ai-models/xai-\(grok-ai\)/image%201.webp)

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

![image.png](https://mintlify.s3.us-west-1.amazonaws.com/typingmind/manage-and-connect-ai-models/xai-\(grok-ai\)/image%202.webp)

![image.png](https://mintlify.s3.us-west-1.amazonaws.com/typingmind/manage-and-connect-ai-models/xai-\(grok-ai\)/image%203.webp)

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

![image.png](https://mintlify.s3.us-west-1.amazonaws.com/typingmind/manage-and-connect-ai-models/xai-\(grok-ai\)/image%204.webp)

## Step 4: Create API key

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

![image.png](https://mintlify.s3.us-west-1.amazonaws.com/typingmind/manage-and-connect-ai-models/xai-\(grok-ai\)/image%205.webp)

* 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**](https://www.typingmind.com/)
* Navigate the Models menu on the left sidebar → Switch to API key tab
* Input the copied API key for xAI.

![Api Key Tab](https://mintcdn.com/typingmind/f18I_2hiObU32xEr/images/api-key-tab.webp?fit=max\&auto=format\&n=f18I_2hiObU32xEr\&q=85\&s=cd0e293a1514cb9d086e8754ac1106ee)

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

![Xai Model](https://mintcdn.com/typingmind/VAznm0Uo9H9pR4_5/images/xai-model.webp?fit=max\&auto=format\&n=VAznm0Uo9H9pR4_5\&q=85\&s=03b8242dd7c37a582cda82066e782508)

## Step 6: Start chatting!

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


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