---
title: xAI
slug: xai
image: https://make-cxp-documentation.ams3.digitaloceanspaces.com/apps-center-icons/PREVIEW_xai.png
createdAt: 2025-02-03T13:28:13.883Z
---

::::VerticalSplit{layout="left"}
:::VerticalSplitItem
::Image[]{src="https://api.archbee.com/api/optimize/oAyFj2GHlBeBVWF5OAir2/L1z3rtH6mt81hn8Wqt2if-20260429-113432.png" darkSrc="https://archbee-image-uploads.s3.amazonaws.com/oAyFj2GHlBeBVWF5OAir2/L1z3rtH6mt81hn8Wqt2if-20260429-113432.png" size="60" width="800" height="800" darkWidth="800" darkHeight="800" position="center" showCaption="false"}
:::

:::VerticalSplitItem
With the xAI app in Make, you can create completions and make API calls in your xAI account.
:::
::::

# Requirements

To use the xAI app in Make, you must have a [xAI account](https://x.ai/).

# Connect xAI to Make

To get started, you must first create a connection between xAI and Make, allowing the two services to communicate.

To create the connection, you need to:

1. [Obtain an API key in your xAI account.](docId\:RmvahZpCj17oJHCtY-bN4)
2. [Create the connection in Make.](docId\:RmvahZpCj17oJHCtY-bN4)

## Obtain your API key in xAI

Before you create the connection in Make, you should first obtain an API key in your xAI account.

To obtain the API key:

::::WorkflowBlock
:::WorkflowBlockItem
Log in to your [xAI Account](https://accounts.x.ai/sign-in).
:::

:::WorkflowBlockItem
Click **Go to API console** in the lower left.
:::

:::WorkflowBlockItem
In the left sidebar, click **API keys**.
:::

:::WorkflowBlockItem
Click **Create API Key**.
:::

:::WorkflowBlockItem
Enter a name for the key, select the **endpoints** and the **models**.
:::

:::WorkflowBlockItem
Click **Save**.
:::

:::WorkflowBlockItem
Copy the **API key** value shown and store it in a safe place.&#x20;
:::
::::

You'll use this value in the **API Key** connection field in Make.

## Create the connection in Make

Once you have your xAI API key you're ready to create the connection in Make.&#x20;

To create the connection:

::::WorkflowBlock
:::WorkflowBlockItem
Log in to your Make account, add a xAI module to your scenario, and click **Create a connection**.
:::

:::WorkflowBlockItem
Optional: In the **Connection name** field, enter a name for the connection.
:::

:::WorkflowBlockItem
In the **API Key** field, enter the API key copied above.
:::

:::WorkflowBlockItem
Click **Save**.
:::

:::WorkflowBlockItem
If prompted, authenticate your account and confirm access.
:::
::::

You've successfully created the connection and can now use the xAI app in your scenarios. If you want to make changes to your connection in the future, follow the steps [here](docId\:SO88FM6pkT0G-adKDDfzZ).

## xAI&#x20;

After connecting to the xAI app, you can use the following types of modules to build your scenarios.

:::ExpandableHeading{isOpen="true"}
**Generation**

- Create a completion
- Create a response
- Generate an image
:::

:::ExpandableHeading{isOpen="true"}
**Other**

- Make an API call
:::

# Templates

You can look for xAI templates in [Make's template gallery](https://www.make.com/en/templates), where you'll find thousands of pre-created scenarios.

# xAI resources

- [xAI API documentation](https://docs.x.ai/api)

