> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mixroute.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# LobeHub

> 在 LobeHub 中使用 MixRoute API Key

## 在 LobeHub 中使用 MixRoute API

本文档将指导你如何在 LobeHub 中使用 **MixRoute API**（兼容 OpenAI 接口），替代官方 OpenAI Key。

## 步骤一：获取 MixRoute API 密钥

1. 注册一个 [MixRoute 账户](https://api.mixroute.ai/)，并完成邮箱验证与基础设置。
2. 登录控制台，进入「API 密钥」页面，点击 `创建新密钥`。

<Frame>
  <img src="https://mintcdn.com/personal-a5418d9f/Mh_xn4X3OgwBSOnq/images/integrations/lobehub-openai-step1.png?fit=max&auto=format&n=Mh_xn4X3OgwBSOnq&q=85&s=398bfbf0a703a4a1430edb0e89a13ac4" alt="在控制台创建 API Key" width="3354" height="778" data-path="images/integrations/lobehub-openai-step1.png" />
</Frame>

3. 在弹出的窗口中填写密钥名称并创建密钥：

<Frame>
  <img src="https://mintcdn.com/personal-a5418d9f/Mh_xn4X3OgwBSOnq/images/integrations/lobehub-openai-step2.png?fit=max&auto=format&n=Mh_xn4X3OgwBSOnq&q=85&s=43b9b62d902e2d5b7e1eef312363bd01" alt="输入名称并创建密钥" width="1198" height="2058" data-path="images/integrations/lobehub-openai-step2.png" />
</Frame>

4. 复制生成的 API Key，并妥善保存：

<Frame>
  <img src="https://mintcdn.com/personal-a5418d9f/Mh_xn4X3OgwBSOnq/images/integrations/lobehub-openai-step3.png?fit=max&auto=format&n=Mh_xn4X3OgwBSOnq&q=85&s=08bd4d05d77ed80861205760d29dd4ec" alt="复制生成的 API Key" width="3210" height="554" data-path="images/integrations/lobehub-openai-step3.png" />
</Frame>

<Warning>
  出于安全原因，密钥通常只会完整显示一次。如果遗失，需要重新生成新的 API Key。
</Warning>

## 步骤二：在 LobeHub 中配置 MixRoute

1. 打开 LobeHub，进入 **设置** 页面。
2. 在「AI 服务商」列表中找到 **OpenAI / 自定义 OpenAI 兼容服务** 配置项。
3. 在提供商配置中填入：

<Frame>
  <img src="https://mintcdn.com/personal-a5418d9f/Mh_xn4X3OgwBSOnq/images/integrations/lobehub-config-fill-key.png?fit=max&auto=format&n=Mh_xn4X3OgwBSOnq&q=85&s=38580b42b7ab3fdbae1886e92f2ec299" alt="在 LobeHub 中填入 API 密钥" width="1578" height="1036" data-path="images/integrations/lobehub-config-fill-key.png" />
</Frame>

在提供商配置中填入：

| 配置项                | 填写内容                          |
| ------------------ | ----------------------------- |
| API Key            | 粘贴刚才从 MixRoute 控制台复制的 API Key |
| Base URL / 自定义接口地址 | `https://api.mixroute.ai/v1`  |

4. 保存配置后，在模型选择列表中选择 MixRoute 提供的模型即可开始对话。

<Frame>
  <img src="https://mintcdn.com/personal-a5418d9f/Mh_xn4X3OgwBSOnq/images/integrations/lobehub-config-select-model.png?fit=max&auto=format&n=Mh_xn4X3OgwBSOnq&q=85&s=2eb593d050bfa20f60cc8295ab2c6139" alt="在 LobeHub 中选择模型" width="1568" height="692" data-path="images/integrations/lobehub-config-select-model.png" />
</Frame>

<Warning>
  使用过程中会根据模型调用产生计费，请参考 MixRoute 控制台的价格说明与用量统计。
</Warning>

更多可用模型与价格请参考：[模型列表](https://console.mixroute.ai/models)。
