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

# xAI

> Run workflow steps and Miraxa on Grok models from your own xAI account.

Add your xAI account to run workflow steps and Miraxa on Grok models, billed to your xAI account. See [Your own AI providers](https://docs.spojit.com/ai-providers/overview.md) for how providers work.

## Get an API key

1. Sign in at [console.x.ai](https://console.x.ai) and open **API keys**.
2. Create a key and copy it. It starts with `xai-`.
3. Add credit to your xAI team: requests are refused without it.

## Add it in Spojit

1. Open **Settings → AI providers** and select **Add provider**.
2. Choose **xAI**, give it a name and paste the key.
3. Select **Add provider**.

## Choose models

In **Add model**, pick a model from the list your xAI account shows, or type its id as xAI names it on the **Models** page of the xAI console.


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