# 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="how-to-generate-azure-openai-api-key" %}
[how-to-generate-azure-openai-api-key](https://docs.boltai.com/docs/guides/how-to-generate-azure-openai-api-key)
{% 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="https://3493584844-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FynYW2xZqA52spY7XgWis%2Fuploads%2FPP1ToP3eTtdlPQayUDTz%2FCleanShot%202024-10-11%20at%2011.33.23%402x.png?alt=media&#x26;token=9945d21f-2c17-4ef3-bd69-19fc3854f84c" 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="https://3493584844-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FynYW2xZqA52spY7XgWis%2Fuploads%2Fxub33Rhfp21MlwJ6dFJo%2FCleanShot%202024-10-11%20at%2011.40.44%402x.png?alt=media&#x26;token=96d3e155-353e-4457-b331-b9cfe10ec06e" 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.
