SUZENT / 文档
SUZENT 使用手册

Baidu Qianfan

Use Baidu Qianfan's Token Plan or pay-as-you-go models.

此页面目前提供英文内容,中文翻译尚未完成。

Use the models on Baidu Qianfan, through a personal or enterprise Token Plan or pay as you go.

Set up

  1. Get an API key from console.bce.baidu.com/qianfan/resource/token-plan.
  2. Open Settings → Providers. Under Add a provider, find Baidu Qianfan (or type its name in the search box) and click it to open its card.
  3. On the API keys tab, pick your Plan (see plan choices), then paste the key and click Save.
  4. Click Test connection, then tick the models you want on the Models tab.

Changes save on their own, and Baidu Qianfan then moves up to the providers you have set up.

Plan choices

Pick the plan your key was created for. It decides where Suzent sends requests.

PlanBase URL
Token Plan Personalhttps://qianfan.baidubce.com/v2/tokenplan/personal
Token Plan Enterprisehttps://qianfan.baidubce.com/v2/tokenplan/team
Pay as you gohttps://qianfan.baidubce.com/v2

Custom URL lets you type any other address, such as a proxy.

Settings

FieldEnvironment variableNotes
API KeyQIANFAN_API_KEY
Base URLQIANFAN_BASE_URLFilled in by your Plan choice; shown only for Custom URL.

You can set these environment variables before starting Suzent instead of typing the values in. Settings then marks the value Environment. A value you save in the app takes priority over it.

Good to know

Token Plan keys come from the Token Plan page; pay-as-you-go keys come from Baidu Cloud's API key list. Get a Baidu Qianfan API key links to the right one for the plan you pick.

在 GitHub 上编辑此页 ↗

本页内容