Back to Lobehub

Using AI21 Labs in LobeHub

docs/usage/providers/ai21.mdx

2.1.561.6 KB
Original Source

Using AI21 Labs in LobeHub

<Image cover src={'/blog/assetsa25c48c9faa225bf6f72658e5bd58d64.webp'} />

AI21 Labs is an AI-focused company that offers advanced language models and API services, designed to help developers and businesses leverage natural language processing technologies. Their flagship "Jamba" model series is capable of handling complex language understanding and generation tasks, widely used in content creation, conversational systems, and more.

This guide will walk you through how to use AI21 Labs within LobeHub.

<Steps> ### Step 1: Obtain an API Key from AI21 Labs
  • Sign up and log in to AI21 Studio
  • Click on your user avatar and select API Key
  • Copy and save the generated API key

<Image alt={'Copy the API Key'} inStep src={'/blog/assets0f847842a5dedf7bef1f534278aec584.webp'} />

Step 2: Configure AI21 Labs in LobeHub

  • Go to the Settings page in LobeHub
  • Under AI Providers, find the configuration section for AI21labs

<Image alt={'Enter the API Key'} inStep src={'/blog/assetsc16177645281b332883403e7f193f6e3.webp'} />

  • Paste the API key you obtained earlier
  • Choose one of AI21 Labs' models for your AI assistant to start chatting

<Image alt={'Select an AI21 Labs model and start chatting'} inStep src={'/blog/assets5f1a6cb003752055b9ed131c1715154c.webp'} />

<Callout type={'warning'}> You may need to pay for API usage depending on your usage level. Please refer to AI21 Labs' pricing policy for more details. </Callout> </Steps>

And that’s it! You’re now ready to use AI21 Labs models for conversations in LobeHub.