Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

2.8 KB
Raw Blame
---
title: Using Azure AI API Key in LobeHub
description: >-
  Learn how to configure and use Azure AI models in LobeHub, obtain your API
  key, and start chatting.
tags:
  - LobeHub
  - Azure AI
  - API Key
  - Web UI
---

# Using Azure AI in LobeHub

<Image alt={'Using Azure AI in LobeHub'} cover src={'/blog/assets29de82efbe7657a8b9ba7daf0904585d.webp'} />

[Azure AI](https://azure.microsoft.com) is an open AI technology platform built on Microsoft Azure's cloud infrastructure. It offers a wide range of AI capabilities including natural language processing, machine learning, and computer vision, enabling businesses to easily develop and deploy AI-powered applications.

This guide will walk you through how to integrate Azure AI models into LobeHub:

<Steps>
  ### Step 1: Deploy an Azure AI Project and Model

  - First, visit [Azure AI Foundry](https://ai.azure.com/) and sign up or log in.
  - Once logged in, go to the homepage and select `Browse Models`.

  <Image alt={'Accessing Azure AI Foundry'} inStep src={'/blog/assets8096422e62e10dcd58efe75c616f9e88.webp'} />

  - In the model marketplace, choose the model you want to use.
  - On the model details page, click the `Deploy` button.

  <Image alt={'Browsing Models'} inStep src={'/blog/assets7dbd100dac8e2614ef6b297885b3c9e2.webp'} />

  - In the pop-up dialog, create a new project.

  <Image alt={'Creating a New Project'} inStep src={'/blog/assetsb9d1f02ab6c26f8a2c7873a949b4dd3c.webp'} />

  <Callout type={'note'}>
    For detailed configuration of Azure AI Foundry, please refer to the [official documentation](https://learn.microsoft.com/azure/ai-foundry/model-inference/).
  </Callout>

  ### Step 2: Retrieve the Model's API Key and Endpoint

  - In the deployed model's details page, you can find the Endpoint and API Key.
  - Copy and securely save this information.

  <Image alt={'Retrieving API Key'} inStep src={'/blog/assets66829206b15b6c36fa3344835659c041.webp'} />

  ### Step 3: Configure Azure AI in LobeHub

  - Open **App Settings → AI Providers**, select **Azure AI**, and enable the provider.

  <Image alt={'Entering Azure AI API Key'} inStep src={'/blog/assets0a81d34f707bd87cee3852f26a3d14f0.webp'} />

  - Enter the endpoint and API key, then select **Check** to test the connection.

  <Callout type={'warning'}>
    Only enter the base part of the Endpoint, e.g., `https://xxxxxx.services.ai.azure.com/models`.
  </Callout>

  - Select an Azure AI model for your assistant to start chatting.

  <Image alt={'Selecting Azure AI Model'} inStep src={'/blog/assetsbd69842ebb37848ecd50c242aad835b0.webp'} />

  <Callout type={'warning'}>
    You may incur charges from the API service provider during usage. Please refer to Azure AI's pricing policy for more details.
  </Callout>
</Steps>

That's it! You're now ready to use Azure AI models for conversations in LobeHub.