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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.boltai.com/docs/guides/how-to-use-azure-openai-api-key-in-boltai.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
