> For the complete documentation index, see [llms.txt](https://docs.chatboxai.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chatboxai.app/guides/providers.md).

# 模型配置

快速配置自定义 AI 提供方

1. 打开Chatbox，点击侧边栏设置按钮，进入设置页面
2. 点击模型提供方选项

<figure><img src="/files/WQ4mdcektPfnN9JxicyJ" alt="" width="375"><figcaption></figcaption></figure>

3. 如果没有需要的 AI 提供商，可以点击底部的“添加”按钮来添加提供商。
4. 填写API提供方名称，根据提供方的API类型选择合适的选项，如GPT模型选择OpenAI API兼容，Gemini模型选择Google Gemini兼容

<figure><img src="/files/SskPAqCGyCIABA0Zmk1g" alt="" width="375"><figcaption></figcaption></figure>

5. 按照提供方的信息，填写好API密钥和API主机，API路径一般可以不用填写，默认为`/v1/chat/completions`，具体参考提供方的信息

   <figure><img src="/files/QhPeYEuZzolKLJF0i2qw" alt="" width="375"><figcaption></figcaption></figure>
6. 添加至少一个模型，勾选模型对应的能力配置（可选，不配置视为纯文本模型）

<figure><img src="/files/2IgFtcZVjkc8e92zqvHH" alt="" width="375"><figcaption></figcaption></figure>

7. 保存后，点击“检查”按钮，提示连接成功

<figure><img src="/files/spGT7ufMARPHHZ5oYf4a" alt="" width="375"><figcaption></figcaption></figure>

8. 回到首页，创建新对话，可以发起聊天

   <figure><img src="/files/KXFphZTrT0eFLuyz3FNa" alt="" width="375"><figcaption></figcaption></figure>
