Newapi
本文介绍如何在 OmniAgent 中配置 Newapi 模型服务。
获取 API Key
-
登录您的 Newapi 面板,进入 令牌 页面。
-
点击 添加令牌 按钮。
-

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

-
复制生成的 令牌 (API Key)。
在 OmniAgent 中配置
-
打开 OmniAgent 的 系统设置 -> API Key 页面。
-
点击 + 添加,选择提供商 其他 (或选择 OpenAI 以获得最佳兼容性)。
-
配置信息:
- Base URL: 填写您的 NewAPI 面板根地址。
- 模型: 填写您要调用的模型名称。
- API Key: 填入您刚刚获取的 API Key (令牌)。

常用服务商 Base URL 参考
如需填写 Base URL,可参考下表选择对应服务商地址:
| 服务商 | Base URL | 推荐模型 |
|---|---|---|
| Qwen | https://dashscope.aliyuncs.com/apps/anthropic | qwen3.5-plus |
| DeepSeek | https://api.deepseek.com/anthropic | deepseek-chat |
| Kimi | https://api.moonshot.ai/anthropic | kimi-k2.5 |
| GLM | https://open.bigmodel.cn/api/anthropic | GLM-4.7 |
| MiniMax | https://api.minimax.com/anthropic | MiniMax-M2.5 |
| Anthropic | https://api.anthropic.com/v1 | claude-sonnet-4-6 |
注意事项
- 兼容性: Newapi 深度兼容 OpenAI 接口协议,因此在提供商选项中选择 OpenAI 即可无缝对接。
- SSL 状态: 请务必确认您的 Newapi 站点是否支持 HTTPS,并在 Base URL 中正确匹配,否则可能导致连接失败。
聚合平台通常支持一键检测额度,您可以在 OmniAgent 的 Key 详情中尝试同步余额信息。