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

# Connect your AI provider

> Add your OpenAI, Claude or OpenRouter key to use Write with AI and Generate

# Connect your AI provider

Connect your organisation's own AI key so you can use **Write with AI** in Content and emails, and **Generate** for assets, with the model you choose. AI only runs when someone asks it to.

## Before you start

* Have an API key from OpenAI, Anthropic (shown as **Claude** in the app) or OpenRouter.
* Switch to the organisation that should use this key.

## Steps

### From Integrations

1. Open **Integrations**.
2. Click **Add Integration**.
3. Filter by **Content Generation** or **Asset Generation** (or search), then choose **OpenAI**, **Claude** or **OpenRouter**.
4. On **Connect**, keep the **Name** (it starts as the provider's name, for example **OpenAI**) or change it. Paste your **API key**.
5. On **Configure**, choose a model from that provider.
6. Save.

Your connection is ready once you finish **Configure**. After you save, you'll only see the last four characters of your key.

### From Write with AI

If you haven't connected AI yet, you can do it from where you write.

1. Click **Write with AI** (the sparkles icon) in the email builder or in Content.
2. In **Add Integration**, choose **OpenAI**, **Claude** or **OpenRouter**. Only AI providers are shown here.
3. Complete **Connect** and **Configure** as above.
4. Click **Write with AI** again to start writing.

## Good to know

* If you close the dialog before you finish **Configure**, the connection isn't saved. You can start again with the same name.
* You can connect the same key more than once, with different names and models, for example **OpenAI** and **OpenAI drafts**.
* When you use **Write with AI** or **Generate**, you choose the integration by name. It uses the model you saved with it.
* [Add from URL](https://docs.brandblox.app/brands/add-from-url.md) uses Brandblox's own AI, so you don't need to connect one for it.
* When you translate an email into another language, Brandblox uses your connected AI if one is turned on. Otherwise it uses its own built-in translation.

## Additional resources

* [Integrations overview](https://docs.brandblox.app/integrations.md)
* [Write Content with AI](https://docs.brandblox.app/content/how-to-write-content-with-ai.md)
* [Add reusable copy to Content](https://docs.brandblox.app/content/how-to-add-reusable-copy.md)
* [Write email copy with AI](https://docs.brandblox.app/emails/how-to-write-email-copy-with-ai.md)
* [Integration platforms](https://docs.brandblox.app/integrations-platforms.md)


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