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

# Open WebUI 配置指南

> 在 Open WebUI 中配置 OpenAI 兼容接口，接入 YeLin AI。

<Info>
  Open WebUI 支持配置 OpenAI 兼容 API。
  你只需要 base URL 和 **API key**。
</Info>

## 你先准备什么

1. 你在 **Console** 创建 **API key**。
2. 你准备好 base URL：`https://api.yelinai.com/v1`

## 配置步骤

1. 打开 Open WebUI 的 **Settings**。
2. 找到 **Connections** 或 **OpenAI API** 配置。
3. 填入以下参数。

| 字段       | 你要填什么                        |
| -------- | ---------------------------- |
| Base URL | `https://api.yelinai.com/v1` |
| API key  | 你在 **Console** 复制的 key       |

## 选择模型

你在模型下拉框里选择模型。
如果你需要手动填模型 id，你可以先查模型列表。

<CardGroup cols={2}>
  <Card title="模型列表" icon="list" href="/api-reference/models">
    获取可用模型 id。
  </Card>

  <Card title="为什么还有余额却调用失败？" icon="wallet" href="/faq/balance-insufficient">
    了解预扣费与输入过长。
  </Card>
</CardGroup>
