@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
68 lines (51 loc) • 2.4 kB
text/mdx
title: 在 LobeChat 中使用 Black Forest Labs API Key
description: >-
学习如何在 LobeChat 中配置和使用 Black Forest Labs API Key,使用先进模型进行高质量 AI 图像生成。
tags:
- Black Forest Labs
- 图像生成
- API Key
- Web UI
# 在 LobeChat 中使用 Black Forest Labs
<Image alt={'在 LobeChat 中使用 Black Forest Labs'} cover src={'https://hub-apac-1.lobeobjects.space/docs/c7274a5b037227f042ad7558f535b5ea.png'} />
[Black Forest Labs](https://bfl.ai/) 是当前世界最顶级的 AI 图像生成实验室团队,研发了 FLUX 系列高质量图像生成模型,FLUX Kontext 系列图像编辑模型。本文将指导你如何在 LobeChat 中使用 Black Forest Labs:
<Steps>
### 步骤一:获取 Black Forest Labs API Key
- 注册 [Black Forest Labs](https://auth.bfl.ai/) 账户;
- 前往 [API Keys 控制台](https://dashboard.bfl.ai/api/keys),点击 **Add Key** 创建新的 API 密钥;
- 复制生成的 API Key 并妥善保存,它只会显示一次。
<Image
alt={'打开 API 控制台'}
inStep
src={
'https://hub-apac-1.lobeobjects.space/docs/36331f581e36a72ba91fb6c1dacbedd4.png'
}
/>
<Image
alt={'创建 API Key'}
inStep
src={
'https://hub-apac-1.lobeobjects.space/docs/3049ad79746bf913d1b2736cfe1d38fa.png'
}
/>
<Image
alt={'获取 API Key'}
inStep
src={
'https://hub-apac-1.lobeobjects.space/docs/33143deb04f2a0cdb2fd543ff8161633.png'
}
/>
### 步骤二:在 LobeChat 中配置 Black Forest Labs
- 访问 LobeChat 的 `设置` 页面;
- 在 `AI服务商` 下找到 `Black Forest Labs` 的设置项;
<Image alt={'填入 API 密钥'} inStep src={'https://hub-apac-1.lobeobjects.space/docs/4fe1993d94fad72829612d22527a2ecd.png'} />
- 粘贴获取到的 API Key;
- 选择一个 Black Forest Labs 模型用于图像生成。
<Image alt={'选择 Black Forest Labs 模型进行图像生成'} inStep src={'https://hub-apac-1.lobeobjects.space/docs/7a6dfdb1a1bdd5443104a6d2cb3a8bf4.png'} />
<Callout type={'warning'}>
在使用过程中,你可能需要向 Black Forest Labs 支付相应费用,请在大量调用前查阅 Black Forest Labs 的官方计费政策。
</Callout>
</Steps>
至此,你已经可以在 LobeChat 中使用 Black Forest Labs 提供的先进图像生成模型来创作精美的视觉内容了。