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

# Azure

> Import Azure OpenAI models into Orq.ai's AI Router. Set up your Azure AI Foundry Base URL and API key for managed model access.

## Setting up a Model in Azure AI Foundry

[Azure AI Foundry](https://ai.azure.com/) lets you build, configure, tune and deploy the model within their environments.

### Deployment Configuration

An Azure model is managed in Azure AI Foundry and therefore won't be controlled within the **AI Studio**. You can decide on which **strategy to use for your model** within Azure AI Foundry while building your model.

For instance, **the region** where your model will be available at is configured when creating your model.

To learn more about the model possibilities, please refer to the provider documentations, see [the Azure Deployment Documentation](https://learn.microsoft.com/en-us/azure/ai-foundry/concepts/deployments-overview).

### Content Filtering

With your model running on Azure Cloud, the model configuration won't be available within the **AI Studio**. However its configuration will **influence the behaviour** of your [Deployment](/docs/deployments/overview) when called through **orq.ai**.

Azure offers powerful customization for content filtering, letting you configure its parameters for *Violent, Hate, Sexual, and Self-Harm* content.

<Frame caption="Within Azure AI Foundry configuration, you can define thresholds for the different types of content to protect your model and tailor its behavior to your needs.">
  <img src="https://mintcdn.com/orqai/EqUGDI2og-dnTmDI/images/docs/9424bb03492b06256bc5419850ec78f0719c9d3b3f4d29a8c157b4bd9cbb51c2-image.png?fit=max&auto=format&n=EqUGDI2og-dnTmDI&q=85&s=be53075374eb55f5c531c7da10725697" alt="Within Azure AI Foundry configuration, you can define thresholds for the different types of content to protect your model and tailor its behavior to your needs." width="3123" height="1772" data-path="images/docs/9424bb03492b06256bc5419850ec78f0719c9d3b3f4d29a8c157b4bd9cbb51c2-image.png" />
</Frame>

To learn more about Content filtering, see [the Azure AI Foundry Documentation](https://learn.microsoft.com/en-us/azure/ai-foundry/concepts/content-filtering)

## Onboarding Models to Orq.ai

Once your models are deployed and configured on Azure, you can import them into the **AI Studio**.

### Getting the Base URL and API Key from Azure AI Foundry

Your credentials are available directly on the [Azure AI Foundry](https://ai.azure.com/) homepage once you open your project. The **API key** and both the **Project endpoint** and **Azure OpenAI endpoint** are shown at the top of the page.

Use the **Azure OpenAI endpoint** as the Base URL in **orq.ai**.

<Frame caption="API key and endpoints are shown at the top of the Azure AI Foundry project homepage.">
  <img src="https://mintcdn.com/orqai/HHjqh-MIdaNoL6vT/images/azure-foundry.png?fit=max&auto=format&n=HHjqh-MIdaNoL6vT&q=85&s=bbf504783c350cfae387383255b8ea45" alt="Azure AI Foundry homepage credentials" width="5018" height="2490" data-path="images/azure-foundry.png" />
</Frame>

### Onboarding Models

Head to the [AI Router](/docs/model-garden/overview) in your panel and choose the **Add Model** button at the top-right of the screen.

<Frame caption="Choose the Azure option">
  <img src="https://mintcdn.com/orqai/wN0WvbQrtiupQYum/images/model-garden-add-model-1225.png?fit=max&auto=format&n=wN0WvbQrtiupQYum&q=85&s=c64f5b270a553c06d1d0bbfce9fa3f54" alt="AI Router Add Model" width="458" height="341" data-path="images/model-garden-add-model-1225.png" />
</Frame>

Enter the **Base URL** and **API Key**, then click **Fetch deployments** to automatically import all available deployments from your Azure AI Foundry project.

<Frame caption="Enter your Base URL and API Key, then fetch all available deployments at once.">
  <img src="https://mintcdn.com/orqai/HHjqh-MIdaNoL6vT/images/azure-configure.png?fit=max&auto=format&n=HHjqh-MIdaNoL6vT&q=85&s=6ba78447dcca57d3d542837d9128c1e4" alt="Azure Configure" width="1005" height="868" data-path="images/azure-configure.png" />
</Frame>

Once added, the model will be visible in the **AI Router**. Once the model is **Enabled** it will be available in [Playground](/docs/playground/overview), [Experiment](/docs/experiments/overview), [Deployment](/docs/deployments/overview), and [Agent](/docs/agents/build) to be used.

***
