> ## Documentation Index
> Fetch the complete documentation index at: https://magic-book.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# xAI Grok

> Connect xAI for writing and planning with Grok models.

xAI provides Grok models for writing. MagicBook uses them for planning and writing text. xAI does not offer image or voice models in MagicBook.

## Get a key

Create a key in the [xAI console](https://console.x.ai).

## Add it to MagicBook

**1. Open AI Providers**

Go to **AI → AI Providers** and find the **xAI Grok** card.

**2. Save and test**

Press **Add key**, paste the key and press **Save and test**.

**3. Enable the models**

Add and enable the Grok models on [Text models](https://magic-book.mintlify.site/admin/text-models.md).


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