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

# Azure OpenAI

> Run workflow steps and Miraxa on models you deployed in your own Azure OpenAI or Azure AI Foundry resource.

Add your Azure OpenAI resource to run workflow steps and Miraxa on the models you deployed in it, billed to your Azure subscription. See [Your own AI providers](https://docs.spojit.com/ai-providers/overview.md) for how providers work.

## What you need

* An Azure OpenAI or Azure AI Foundry resource, with at least one model deployed in it.
* The resource's **endpoint** and one of its **keys**.

## Find the endpoint and key

1. In the [Azure portal](https://portal.azure.com), open your Azure OpenAI or Azure AI Foundry resource.
2. Open **Keys and Endpoint** (under **Resource Management**).
3. Copy the **Endpoint**. It ends in `.openai.azure.com` or `.services.ai.azure.com`.
4. Copy **KEY 1** or **KEY 2**.

Spojit uses Azure's v1 API, so you don't need an API version.

## Add it in Spojit

1. Open **Settings → AI providers** and select **Add provider**.
2. Choose **Azure OpenAI**, give it a name, paste the endpoint and the key.
3. Select **Add provider**. Spojit checks the key when you add your first model.

## Choose models

In Azure, a model is used through a **deployment** you create and name. Spojit asks for the deployment's name, not the model's:

1. In [Azure AI Foundry](https://ai.azure.com), open your resource and go to **Deployments**.
2. Copy the deployment's **name**, exactly as it shows there.
3. In Spojit, select **Add model** and paste it as the **Deployment name**.

The model's **Test** then checks the deployment answers and what it can do.


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