> For the complete documentation index, see [llms.txt](https://docs.boltai.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.boltai.com/docs/guides/how-to-use-azure-openai-api-key-in-boltai.md).

# How to use Azure OpenAI API key in BoltAI

Are you a resident of Europe and need to comply with GDPR when handling customers' data? No problems. BoltAI supports Azure OpenAI Service *natively*. Follow this guide below to get started:

### Make sure your Azure OpenAI deployment is ready

If you haven't deployed an OpenAI instance yet, follow this guide below:

{% content-ref url="/pages/RrMpnLB4rLBBl0Z1hcub" %}
[How to generate Azure OpenAI API key](/docs/guides/how-to-generate-azure-openai-api-key.md)
{% endcontent-ref %}

### Set up Azure OpenAI Service in BoltAI

Go to **Settings > Models.** Click **+ Plus** button and select "Azure OpenAI"

1. Give it a friendly name
2. Enter the **full** Endpoint URL, including the api-version query parameter. For example: `https://xxx.openai.azure.com/openai/deployments/xxx/chat/completions?api-version=2023-03-15-preview`
3. Enter your API key
4. Select the model of this deployment. Note: you can select Dall E for text-to-image instances.
5. Click "**Save Changes**"
6. (Optional) Set this as the default service.

<figure><img src="/files/idQpPqxecGNZnPt0BboS" alt=""><figcaption><p>Setting up Azure OpenAI in BoltAI</p></figcaption></figure>

### How to use Azure OpenAI Service in BoltAI

It's really simple. Go back to BoltAI main chat window, and start a new chat. Select the Azure instance you've just created if it's not the default and start your chat.

<figure><img src="/files/g5peW1ElGMRySx5qSW3c" alt=""><figcaption><p>Using Azure OpenAI Service with BoltAI</p></figcaption></figure>

### FAQ

* **Can I use Dall E on Azure OpenAI Service?**\
  Yes. BoltAI automatically detects if your Azure deployment is a text-to-image instance.
* **Do you store my chat content on your server?**\
  Not if you don't use our Cloud Sync service. Your prompts are sent directly to your Azure instance. All other data are store locally on your machine.
* **Do I need to use Cloud Sync service to use BoltAI?**\
  No. BoltAI Cloud Sync is optional and only needed if you want to sync data accross devices.
*
* **I have another question**\
  Send me an email at <hello@boltaisupport.com>. I'm happy to help.
