OmniAgent 文档

Newapi

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

获取 API Key

  1. 登录您的 Newapi 面板,进入 令牌 页面。

  2. 点击 添加令牌 按钮。

  3. newapi_image1

  4. 输入令牌名称并根据需要配置过期时间及额度,然后点击 提交

    newapi_image2

  5. 复制生成的 令牌 (API Key)

在 OmniAgent 中配置

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

  2. 点击 + 添加,选择提供商 其他 (或选择 OpenAI 以获得最佳兼容性)。

  3. 配置信息:

    • Base URL: 填写您的 NewAPI 面板根地址。
    • 模型: 填写您要调用的模型名称。
    • API Key: 填入您刚刚获取的 API Key (令牌)。

    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

注意事项

  • 兼容性: Newapi 深度兼容 OpenAI 接口协议,因此在提供商选项中选择 OpenAI 即可无缝对接。
  • SSL 状态: 请务必确认您的 Newapi 站点是否支持 HTTPS,并在 Base URL 中正确匹配,否则可能导致连接失败。

聚合平台通常支持一键检测额度,您可以在 OmniAgent 的 Key 详情中尝试同步余额信息。

On this page