Back to Lobehub

Using Moonshot AI API Key in LobeHub

docs/usage/providers/moonshot.mdx

2.1.561.6 KB
Original Source

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 in LobeHub:

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

<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.