> ## 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)。
