---
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
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/).
- After registration, go to the `Deployments` page and create a new deployment with your selected model.

- Navigate to the `Chat` page and click on `View Code` to obtain your endpoint and key.
### Step 2: Configure Azure OpenAI in LobeChat
- Access the `Settings` interface in LobeChat.
- Find the setting for `Azure OpenAI` under `Language Model`.
- Enter the API key you obtained.
- Choose an Azure OpenAI model for your AI assistant to start the conversation.
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.