---
title: Using Qwen2 API Key in LobeChat
description: >-
Learn how to integrate and utilize Tongyi Qianwen, a powerful language model
by Alibaba Cloud, in LobeChat for various tasks. Follow the steps to activate
the service, obtain the API key, and configure Tongyi Qianwen for seamless
interaction.
tags:
- Tongyi Qianwen
- Alibaba Cloud
- DashScope
- API key
- Web UI
---
# Using Tongyi Qianwen in LobeChat
[Tongyi Qianwen](https://tongyi.aliyun.com/) is a large-scale language model independently developed by Alibaba Cloud, with powerful natural language understanding and generation capabilities. It can answer various questions, create text content, express opinions, write code, and play a role in multiple fields.
This document will guide you on how to use Tongyi Qianwen in LobeChat:
### Step 1: Activate DashScope Model Service
- Visit and log in to Alibaba Cloud's [DashScope](https://dashscope.console.aliyun.com/) platform.
- If it is your first time, you need to activate the DashScope service.
- If you have already activated it, you can skip this step.
### Step 2: Obtain DashScope API Key
- Go to the `API-KEY` interface and create an API key.
- Copy the API key from the pop-up dialog box and save it securely.
Please store the key securely as it will only appear once. If you accidentally lose it, you will
need to create a new key.
### Step 3: Configure Tongyi Qianwen in LobeChat
- Visit the `Settings` interface in LobeChat.
- Find the setting for `Tongyi Qianwen` under `Language Model`.
- Open Tongyi Qianwen and enter the obtained API key.
- Choose a Qwen model for your AI assistant to start the conversation.
During usage, you may need to pay the API service provider. Please refer to Tongyi Qianwen's
relevant pricing policies.
You can now engage in conversations using the models provided by Tongyi Qianwen in LobeChat.