Back to Lobehub

Using Wenxin Qianfan in LobeHub

docs/usage/providers/wenxin.mdx

2.1.562.1 KB
Original Source

Using Wenxin Qianfan in LobeHub

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

Wenxin Qianfan is a large language model platform developed by Baidu. It supports a wide range of applications, including creative writing, business copy generation, and mathematical logic reasoning. The platform features deep semantic understanding and generation across modalities and languages, and is widely used in search Q&A, content creation, and intelligent office scenarios.

This guide will walk you through how to use Wenxin Qianfan in LobeHub.

<Steps> ### Step 1: Obtain a Wenxin Qianfan API Key
  • Register and log in to the Baidu AI Cloud Console
  • Navigate to Baidu AI Cloud Qianfan ModelBuilder
  • In the left-hand menu, select API Key

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

  • Click "Create API Key"
  • Under Service, select Qianfan ModelBuilder
  • Under Resource, choose All Resources
  • Click the Confirm button
  • Copy the generated API Key and store it securely

<Image alt={'Create API Key'} inStep src={'/blog/assets87c281587b15f05b6b4e1afcd5bb47e8.webp'} />

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

Step 2: Configure Wenxin Qianfan in LobeHub

  • Open the Settings page in LobeHub
  • Under AI Providers, locate the configuration section for Wenxin Qianfan

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

  • Paste the API Key you obtained earlier
  • Choose a Wenxin Qianfan model for your AI assistant to start chatting

<Image alt={'Select Wenxin Qianfan model and start chatting'} inStep src={'/blog/assets768ec6fd300785186b202437985857c4.webp'} />

<Callout type={'warning'}> You may incur charges from the API service provider during usage. Please refer to Wenxin Qianfan’s pricing policy for details. </Callout> </Steps>

Now you're all set to start using Wenxin Qianfan models for conversations in LobeHub.