--- title: Using Azure OpenAI API Key in LobeChat description: >- Learn how to integrate and configure Azure OpenAI in LobeChat to enhance your AI assistant capabilities. Follow these steps to obtain the API key, configure the settings, and start engaging in conversations. tags: - Azure OpenAI - AI assistant - API key - Configuration - Conversation models --- # Using Azure OpenAI in LobeChat {'Azure This document will guide you on how to use [Azure OpenAI](https://oai.azure.com/) in LobeChat: ### Step 1: Obtain Azure OpenAI API Key - If you haven't registered yet, you need to create an [Azure OpenAI account](https://oai.azure.com/). {'Create - After registration, go to the `Deployments` page and create a new deployment with your selected model. ![Create a new deployment with the selected model](https://github.com/lobehub/lobe-chat/assets/17870709/4fae3e6f-e680-4471-93c4-987c19d7170a) {'Create - Navigate to the `Chat` page and click on `View Code` to obtain your endpoint and key. {'Go {'Get ### Step 2: Configure Azure OpenAI in LobeChat - Access the `Settings` interface in LobeChat. - Find the setting for `Azure OpenAI` under `Language Model`. {'Enter - Enter the API key you obtained. - Choose an Azure OpenAI model for your AI assistant to start the conversation. {'Select During usage, you may need to pay the API service provider. Please refer to Azure OpenAI's relevant pricing policies. Now you can engage in conversations using the models provided by Azure OpenAI in LobeChat.