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

# xAI (Grok)

> Chat with Grok models in Enconvo using an xAI API key or your Grok plan.

Use xAI's Grok models in chats, Agents, and AI Commands. Connect with an xAI API key, which xAI bills per request, or sign in with your Grok plan. It's listed as **X.AI-GROK** in Settings.

## Connect

**1. Get an API key**

Create a key in the xAI console; the [xAI quickstart](https://docs.x.ai/docs/quickstart#creating-an-api-key) shows how.

**2. Add it to Enconvo**

Open **Settings → AI Model → X.AI-GROK**. Under **Authentication**, choose **API Key**, paste the key, then click **Validate**.

**3. Pick a model**

Choose a model in **Model Name** and send a short message. A reply means the connection works.

> [!TIP]
>
> Have a Grok plan? Choose **Grok Subscription** under **Authentication** instead and click **Connect**.

To keep a second xAI key, click **Add New Provider** and create another profile.

## Models and options

| Setting | What it does |
| - | - |
| **Model Name** | The model this provider uses. **Refresh** beside it reloads the list; **Manage Models** (the gear) adds or restores models. |
| **API Base Url** | In the credential. The default is `https://api.x.ai/v1`. |

xAI also has its own providers for text-to-speech, image generation, transcription, video generation, and X Search. They share this profile's key or Grok sign-in; pick each one in its own Settings page.

## On the iPhone

The iPhone app can use a Grok plan in Phone chats too. On the iPhone, open **Settings → AI Model → xAI**, choose the Grok card under **Authentication**, and tap **Sign in with Grok**. See [Phone Chats](https://docs.enconvo.ai/integrations/iphone-phone-chats.md).

## Troubleshooting

| Problem | What to do |
| - | - |
| **Validate** fails | Paste the whole key again and check that it is active in the xAI console. |
| A model is missing | Click **Refresh** beside **Model Name**. To add a model yourself, use **Manage Models**. |
| The Grok sign-in stops working | Open the account card's menu and click **Reconnect**. |
| Rate or usage limit errors | Check usage in your xAI account, or switch to another provider for now. |

## Related

> [card] [Phone Chats](https://docs.enconvo.ai/integrations/iphone-phone-chats.md)
>
> Use Grok in the iPhone app's own chats.

> [card] [Credentials and profiles](https://docs.enconvo.ai/configuration/credentials.md)
>
> Keep several keys, and see what a shared key affects.

> [card] [Choose a model](https://docs.enconvo.ai/ai/model-selection-guide.md)
>
> Pick a model by task, and see where defaults are set.

> [card] [Provider catalog](https://docs.enconvo.ai/providers/catalog.md)
>
> Every provider, grouped by the feature it powers.


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