Back to Lobehub

Using Tongyi Qianwen API Key in LobeHub

docs/usage/providers/qwen.mdx

2.1.562.4 KB
Original Source

Using Tongyi Qianwen in LobeHub

<Image alt={'Using Tongyi Qianwen in LobeHub'} cover src={'/blog/assets34400653/4e057b43-1e3e-4e96-a948-7cdbff303dcb.webp'} />

Tongyi Qianwen is a large-scale language model developed by Alibaba Cloud, known for its powerful natural language understanding and generation capabilities. It can answer questions, generate content, express opinions, write code, and more—making it useful across a wide range of applications.

This guide will walk you through how to use Tongyi Qianwen in LobeHub:

<Steps> ### Step 1: Enable the DashScope Model Service
  • Visit and log in to the DashScope platform by Alibaba Cloud.
  • If this is your first time, you’ll need to activate the DashScope service.
  • If you’ve already enabled it, you can skip this step.

<Image alt={'Enable DashScope Service'} inStep src={'/blog/assets34400653/4f8d0102-7ca7-4f23-b96f-3fc5cf2cd66e.webp'} />

Step 2: Obtain a DashScope API Key

  • Navigate to the API-KEY section and create a new API key.

<Image alt={'Create Tongyi Qianwen API Key'} inStep src={'/blog/assets34400653/eee046cb-189b-4635-ac94-19d50b17a18a.webp'} />

  • Copy the API key from the pop-up dialog and store it securely.

<Image alt={'Copy Tongyi Qianwen API Key'} inStep src={'/blog/assets34400653/cec2e032-54e1-49b1-a212-4d9736927156.webp'} />

<Callout type={'warning'}> Make sure to store your API key securely, as it will only be shown once. If you lose it, you’ll need to generate a new one. </Callout>

Step 3: Configure Tongyi Qianwen in LobeHub

  • Open the Settings panel in LobeHub.
  • Under AI Providers, locate the configuration section for Tongyi Qianwen.

<Image alt={'Enter API Key'} inStep src={'/blog/assets34400653/c2e6a58b-95eb-4f40-8add-83f4316a719b.webp'} />

  • Enable Tongyi Qianwen and paste in your API key.
  • Choose a Qwen model for your AI assistant to start chatting.

<Image alt={'Select Qwen Model and Start Chatting'} inStep src={'/blog/assets34400653/f4a23c2a-503e-4731-bc4d-922bce0b6039.webp'} />

<Callout type={'warning'}> Please note that usage may incur charges from the API provider. Refer to Tongyi Qianwen’s pricing policy for details. </Callout> </Steps>

You’re all set! You can now start using Tongyi Qianwen’s models in LobeHub for intelligent conversations.