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

# Google Gemini

> Connect Google Gemini for writing and for the image models that keep characters consistent.

Google Gemini covers two jobs in MagicBook:

* **Writing**: Gemini models for planning, scenes and editing.
* **Pictures**: Gemini image models, which keep characters consistent from reference sheets.

## Get a key

Create a key in [Google AI Studio](https://aistudio.google.com/apikey).

## Add it to MagicBook

**1. Open AI Providers**

Go to **AI → AI Providers** and find the **Google Gemini** card.

**2. Save and test**

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

**3. Enable the models**

Enable Gemini text models on [Text models](https://magic-book.mintlify.site/admin/text-models.md), and Gemini image models on [Image models](https://magic-book.mintlify.site/admin/image-models.md). Gemini image models that accept references can draw character sheets.


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