OmniAgent 文档

OneAPI

本文介绍如何在 OmniAgent 中配置 OneAPI 模型服务。

获取 API Key

  1. 登录您的 OneAPI 管理面板。

  2. 进入 令牌 页面。

    oneapi_image1

  3. 您可以创建新令牌,也可以直接使用默认生成的 default 令牌。

    oneapi_image2

  4. 点击 复制 获取令牌 (API Key)。

    oneapi_image3

在 OmniAgent 中配置

  1. 打开 OmniAgent 的 系统设置 -> API Key 页面。

  2. 点击 + 添加,选择 OpenAI (OneAPI 完美兼容 OpenAI 协议)。

  3. 填入您刚刚获取的 API Key (即 OneAPI 令牌)。

  4. Base URL 处填写您的 OneAPI 服务器地址 (如 https://api.your-domain.com)。

    image-20260228182954882

常用服务商 Base URL 参考

如需填写 Base URL,可参考下表选择对应服务商地址:

服务商Base URL推荐模型
Qwenhttps://dashscope.aliyuncs.com/apps/anthropicqwen3.5-plus
DeepSeekhttps://api.deepseek.com/anthropicdeepseek-chat
Kimihttps://api.moonshot.ai/anthropic kimi-k2.5
GLMhttps://open.bigmodel.cn/api/anthropicGLM-4.7
MiniMaxhttps://api.minimax.com/anthropicMiniMax-M2.5
Anthropichttps://api.anthropic.com/v1claude-sonnet-4-6

注意事项

  • 界面差异: OneAPI 拥有多种社区主题,虽然界面 UI 可能有所不同,但添加令牌的核心流程与上述步骤完全一致。
  • 协议兼容: 鉴于 OneAPI 的聚合属性,在 OmniAgent 中统一作为 OpenAI 服务商接入即可。

OneAPI 通常支持详细的额度统计与渠道管理,您可以在平台后台实时监控各模型的消耗情况。

On this page