---
title: Using Moonshot AI API Key in LobeHub
description: >-
  Learn how to configure and use Moonshot AI in LobeHub, including how to obtain
  an API key and select the appropriate AI model for conversations.
tags:
  - Moonshot AI
  - Web UI
  - API Key
---

# Using Moonshot AI in LobeHub

<Image alt={'Using Moonshot AI in LobeHub'} cover src={'/blog/assets17870709/21b94782-875b-4dee-a572-3c5843f3e1e3.webp'} />

The Moonshot AI API is now available to everyone. This guide will walk you through how to use [Moonshot AI](https://www.moonshot.cn/) in LobeHub:

<Steps>
  ### Step 1: Get Your Moonshot AI API Key

  - Apply for your [API Key](https://platform.moonshot.cn/console/api-keys)

  <Image alt={'Apply for API Key'} inStep src={'/blog/assets17870709/4e56e080-9b8c-42e1-87e1-11123dbb9067.webp'} />

  ### Step 2: Configure Moonshot AI in LobeHub

  - Go to the `Settings` page in LobeHub
  - Under `AI Providers`, find the configuration section for `Moonshot AI`

  <Image alt={'Enter API Key'} inStep src={'/blog/assets17870709/e1b5f84f-015e-437c-98cc-a3431fa3b077.webp'} />

  <Callout type={'warning'}>
    If you're using mistral.ai, your account must have an active subscription for the API key to work properly. Newly created API keys may take 2–3 minutes to become active. If clicking the "Test" button fails, please try again after a few minutes.
  </Callout>

  - Paste your API key into the input field
  - Choose a Moonshot AI model for your assistant to start chatting

  <Image alt={'Select a Moonshot AI model and start chatting'} inStep src={'/blog/assets17870709/eb7273f8-f0ed-4b9b-884e-96d29c406cb7.webp'} />

  <Callout type={'warning'}>
    You may be required to pay for API usage. Please refer to Moonshot AI’s pricing policy for more details.
  </Callout>
</Steps>

That's it! You're now ready to start chatting with models powered by Moonshot AI in LobeHub.
