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

# Azure OpenAI

You can use Azure OpenAI on TypingMind by adding a Custom Model as follow:

## Get an Azure OpenAI account

If you haven’t already, you must register for an Azure OpenAI Account. You can create one here: [https://oai.azure.com/](https://oai.azure.com/)

![Untitled](https://mintcdn.com/typingmind/pm53BB_D69NXvWmb/manage-and-connect-ai-models/azure-openai/Untitled.webp?fit=max\&auto=format\&n=pm53BB_D69NXvWmb\&q=85\&s=64a9dd11877dc271384430fca05abc1a)

## Get a Deployment, Endpoint, and API Key

Go to “Deployments” and create a new deployment with a model of your choice.

![Untitled](https://mintlify.s3.us-west-1.amazonaws.com/typingmind/manage-and-connect-ai-models/azure-openai/Untitled%201.webp)

Go to the “Chat” playground and click “View Code” to get your **Endpoint** and **Key**.

![Untitled](https://mintlify.s3.us-west-1.amazonaws.com/typingmind/manage-and-connect-ai-models/azure-openai/Untitled%202.webp)

![Untitled](https://mintlify.s3.us-west-1.amazonaws.com/typingmind/manage-and-connect-ai-models/azure-openai/Untitled%203.webp)

## Create a custom model on TypingMind

Go to [typingmind.com](https://www.typingmind.com/) and create a new Custom Model as follow:

* Click Add Custom Model
* Enter any name.
* Enter the exact endpoint (including the `?apiVersion` part).
* **Important: there are many types of endpoint on Azure OpenAI. Make sure you use the correct one that contains “/chats/completions”.**
* Enter the Model ID and context length
* Add a custom header row, then enter `api-key` and the API key in the value textbox.

![Untitled](https://mintlify.s3.us-west-1.amazonaws.com/typingmind/manage-and-connect-ai-models/azure-openai/Untitled%204.webp)

* Click “Test” and verify that the endpoint is working.
* Click “Add Model”.

## Chat with Azure OpenAI

You can now select the Azure OpenAI model and chat with it.

![Untitled](https://mintlify.s3.us-west-1.amazonaws.com/typingmind/manage-and-connect-ai-models/azure-openai/Untitled%205.webp)

![Untitled](https://mintlify.s3.us-west-1.amazonaws.com/typingmind/manage-and-connect-ai-models/azure-openai/Untitled%206.webp)


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