🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
📝 docs: add BFL provider documentation (#8933)
YuTengjing45f05a01697b
diff --git a/.env.example b/.env.exampleindex 4b9c1fb37b4..735a996251a 100644--- a/.env.example+++ b/.env.example@@ -153,6 +153,14 @@ OPENAI_API_KEY=sk-xxxxxxxxx# AIHUBMIX_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+### BFL ###++# BFL_API_KEY=bfl-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx++### FAL ###++# FAL_API_KEY=fal-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+#################################################### Market Service ############diff --git a/Dockerfile b/Dockerfileindex 3e285f918ad..8dbcbc5aa0e 100644--- a/Dockerfile+++ b/Dockerfile@@ -249,7 +249,11 @@ ENV \# Infini-AIINFINIAI_API_KEY="" INFINIAI_MODEL_LIST="" \# 302.AI- AI302_API_KEY="" AI302_MODEL_LIST=""+ AI302_API_KEY="" AI302_MODEL_LIST="" \+ # FAL+ FAL_API_KEY="" FAL_MODEL_LIST="" \+ # BFL+ BFL_API_KEY="" BFL_MODEL_LIST=""USER nextjsdiff --git a/Dockerfile.database b/Dockerfile.databaseindex 523c01ef602..ce39459d6da 100644--- a/Dockerfile.database+++ b/Dockerfile.database@@ -291,7 +291,11 @@ ENV \# Infini-AIINFINIAI_API_KEY="" INFINIAI_MODEL_LIST="" \# 302.AI- AI302_API_KEY="" AI302_MODEL_LIST=""+ AI302_API_KEY="" AI302_MODEL_LIST="" \+ # FAL+ FAL_API_KEY="" FAL_MODEL_LIST="" \+ # BFL+ BFL_API_KEY="" BFL_MODEL_LIST=""USER nextjsdiff --git a/Dockerfile.pglite b/Dockerfile.pgliteindex 2bee1996a4d..1c3f4e43456 100644--- a/Dockerfile.pglite+++ b/Dockerfile.pglite@@ -247,7 +247,11 @@ ENV \# Infini-AIINFINIAI_API_KEY="" INFINIAI_MODEL_LIST="" \# 302.AI- AI302_API_KEY="" AI302_MODEL_LIST=""+ AI302_API_KEY="" AI302_MODEL_LIST="" \+ # FAL+ FAL_API_KEY="" FAL_MODEL_LIST="" \+ # BFL+ BFL_API_KEY="" BFL_MODEL_LIST=""USER nextjsdiff --git a/docs/self-hosting/environment-variables/model-provider.mdx b/docs/self-hosting/environment-variables/model-provider.mdxindex 5d5592f19e6..b419c0869cc 100644--- a/docs/self-hosting/environment-variables/model-provider.mdx+++ b/docs/self-hosting/environment-variables/model-provider.mdx@@ -646,8 +646,33 @@ If you need to use Azure OpenAI to provide model services, you can refer to the- Type: Optional- Description: Used to control the FAL model list. Use `+` to add a model, `-` to hide a model, and `model_name=display_name` to customize the display name of a model. Separate multiple entries with commas. The definition syntax follows the same rules as other providers' model lists.- Default: `-`-- Example: `-all,+fal-model-1,+fal-model-2=fal-special`+- Example: `-all,+flux/schnell,+flux-pro/kontext=FLUX.1 Kontext [pro]`-The above example disables all models first, then enables `fal-model-1` and `fal-model-2` (displayed as `fal-special`).+The above example disables all models first, then enables `flux/schnell` and `flux-pro/kontext` (displayed as `FLUX.1 Kontext [pro]`).++## BFL++### `ENABLED_BFL`++- Type: Optional+- Description: Enables BFL as a model provider by default. Set to `0` to disable the BFL service.+- Default: `1`+- Example: `0`++### `BFL_API_KEY`++- Type: Required+- Description: This is the API key you applied for in the BFL service.+- Default: -+- Example: `12345678-1234-1234-1234-123456789abc`++### `BFL_MODEL_LIST`++- Type: Optional+- Description: Used to control the BFL model list. Use `+` to add a model, `-` to hide a model, and `model_name=display_name` to customize the display name of a model. Separate multiple entries with commas. The definition syntax follows the same rules as other providers' model lists.+- Default: `-`+- Example: `-all,+flux-pro-1.1,+flux-kontext-pro=FLUX.1 Kontext [pro]`++The above example disables all models first, then enables `flux-pro-1.1` and `flux-kontext-pro` (displayed as `FLUX.1 Kontext [pro]`).[model-list]: /docs/self-hosting/advanced/model-listdiff --git a/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx b/docs/self-hosting/environment-variables/model-provider.zh-CN.mdxindex 4d5d4f9d049..ddbdd6b6384 100644--- a/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx+++ b/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx@@ -645,8 +645,33 @@ LobeChat 在部署时提供了丰富的模型服务商相关的环境变量,- 类型:可选- 描述:用来控制 FAL 模型列表,使用 `+` 增加一个模型,使用 `-` 来隐藏一个模型,使用 `模型名=展示名` 来自定义模型的展示名,用英文逗号隔开。模型定义语法规则与其他 provider 保持一致。- 默认值:`-`-- 示例:`-all,+fal-model-1,+fal-model-2=fal-special`+- 示例:`-all,+flux/schnell,+flux-pro/kontext=FLUX.1 Kontext [pro]`-上述示例表示先禁用所有模型,再启用 `fal-model-1` 和 `fal-model-2`(显示名为 `fal-special`)。+上述示例表示先禁用所有模型,再启用 `flux/schnell` 和 `flux-pro/kontext`(显示名为 `FLUX.1 Kontext [pro]`)。++## BFL++### `ENABLED_BFL`++- 类型:可选+- 描述:默认启用 BFL 作为模型供应商,当设为 0 时关闭 BFL 服务+- 默认值:`1`+- 示例:`0`++### `BFL_API_KEY`++- 类型:必选+- 描述:这是你在 BFL 服务中申请的 API 密钥+- 默认值:-+- 示例:`12345678-1234-1234-1234-123456789abc`++### `BFL_MODEL_LIST`++- 类型:可选+- 描述:用来控制 BFL 模型列表,使用 `+` 增加一个模型,使用 `-` 来隐藏一个模型,使用 `模型名=展示名` 来自定义模型的展示名,用英文逗号隔开。模型定义语法规则与其他 provider 保持一致。+- 默认值:`-`+- 示例:`-all,+flux-pro-1.1,+flux-kontext-pro=FLUX.1 Kontext [pro]`++上述示例表示先禁用所有模型,再启用 `flux-pro-1.1` 和 `flux-kontext-pro`(显示名为 `FLUX.1 Kontext [pro]`)。[model-list]: /zh/docs/self-hosting/advanced/model-listdiff --git a/docs/usage/providers/bfl.mdx b/docs/usage/providers/bfl.mdxnew file mode 100644index 00000000000..57f2ff28663--- /dev/null+++ b/docs/usage/providers/bfl.mdx@@ -0,0 +1,68 @@+---+title: Using Black Forest Labs API Key in LobeChat+description: >-+ Learn how to integrate Black Forest Labs API Key in LobeChat for AI image generation using advanced models and high-quality output.++tags:+ - Black Forest Labs+ - Image Generation+ - API Key+ - Web UI+---++# Using Black Forest Labs in LobeChat++<Image alt={'Using Black Forest Labs in LobeChat'} cover src={'https://hub-apac-1.lobeobjects.space/docs/bfl-cover-image.png'} />++[Black Forest Labs](https://bfl.ai/) is currently the world's top-tier AI image generation research lab, having developed the FLUX series of high-quality image generation models and the FLUX Kontext series of image editing models. This document will guide you on how to use Black Forest Labs in LobeChat:++<Steps>+ ### Step 1: Obtain Black Forest Labs API Key++ - Register for a [Black Forest Labs account](https://auth.bfl.ai/).+ - Navigate to the [API Keys dashboard](https://dashboard.bfl.ai/api/keys) and click **Add Key** to generate a new API key.+ - Copy the generated API key and keep it secure; it will only be shown once.++ <Image+ alt={'Open the API dashboard'}+ inStep+ src={+'https://hub-apac-1.lobeobjects.space/docs/36331f581e36a72ba91fb6c1dacbedd4.png'+}+ />++ <Image+ alt={'Create API Key'}+ inStep+ src={+'https://hub-apac-1.lobeobjects.space/docs/3049ad79746bf913d1b2736cfe1d38fa.png'+}+ />++ <Image+ alt={'Retrieve API Key'}+ inStep+ src={+'https://hub-apac-1.lobeobjects.space/docs/33143deb04f2a0cdb2fd543ff8161633.png'+}+ />++ ### Step 2: Configure Black Forest Labs in LobeChat++ - Visit the `Settings` page in LobeChat.+ - Under **AI Service Provider**, locate the **Black Forest Labs** configuration section.++ <Image alt={'Enter API Key'} inStep src={'https://hub-apac-1.lobeobjects.space/docs/4fe1993d94fad72829612d22527a2ecd.png'} />++ - Paste the API key you obtained.+ - Choose a Black Forest Labs model for image generation.++ <Image alt={'Select Black Forest Labs model for image generation'} inStep src={'https://hub-apac-1.lobeobjects.space/docs/7a6dfdb1a1bdd5443104a6d2cb3a8bf4.png'} />++ <Callout type={'warning'}>+ During usage, you may incur charges according to Black Forest Labs's pricing policy. Please review Black Forest Labs's+ official pricing before heavy usage.+ </Callout>+</Steps>++You can now use Black Forest Labs's advanced image generation models directly within LobeChat to create stunning visual content.diff --git a/docs/usage/providers/bfl.zh-CN.mdx b/docs/usage/providers/bfl.zh-CN.mdxnew file mode 100644index 00000000000..65436fea2e4--- /dev/null+++ b/docs/usage/providers/bfl.zh-CN.mdx@@ -0,0 +1,67 @@+---+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/bfl-cover-image.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 提供的先进图像生成模型来创作精美的视觉内容了。