---
title: "New API / One API 渠道配置：把本站设为上游"
canonical: https://relayswitch.ai/zh/guides/new-api
generated: 2026-11-12T04:32:50.908Z
source: https://api.relayswitch.io/v1/catalog
base_url: https://api.relayswitch.io/v1
---

配置教程 · 核对于 2026-10-31

# New API / One API 渠道配置

在 New API 或 One API 里加一个 OpenAI 类型的渠道，把本站设为上游：一个 Base URL，一个密钥，模型 id 照模型页填。

## 配置步骤

1.  在控制台单独创建一个密钥给这个渠道用，并给它设消费上限。
2.  在 New API 后台的渠道管理里添加一个渠道，**类型**（Type）选 **OpenAI**。Claude 系列的 id 也按 OpenAI 格式应答，一个渠道带全部模型。One API 和各分支的字段相同。
3.  **Base URL** 填 `https://api.relayswitch.io/v1`。带不带 `/v1` 都能通：本站同时应答 `/v1/chat/completions` 和重复拼接后的 `/v1/v1/chat/completions`。
4.  **密钥** 粘贴完整密钥。
5.  **模型** 填要转发的 id，和模型页完全一致，例如 `claude-sonnet-5-5`。
6.  **模型重定向** 可选：下游还在用旧名字时，把旧名字映射到目录里的 id。
7.  保存后点渠道的 **测试**，返回成功即接通。

text

1`类型 (Type): OpenAI`

2`名称 (Name): RelaySwitch`

3`Base URL: https://api.relayswitch.io/v1`

4`密钥 (Key): sk-relay-你的密钥`

5`模型 (Models): claude-sonnet-5-5,claude-opus-5-5,gpt-5.5`

6`模型重定向 (Model mapping):`

7 `{"claude-sonnet-4-5": "claude-sonnet-5-5"}`

8`分组 (Group): default`

资料来源：New API 的 [渠道管理文档](https://docs.newapi.ai/en/docs/guide/console/channel-management) 与 [项目说明](https://github.com/QuantumNous/new-api)（读取于 2026-10-31）。自己的应用或团队内部使用不算转售；对外转售需要书面授权，见 [二次分销](https://relayswitch.ai/zh/wholesale) 与 [代理加盟](https://relayswitch.ai/zh/resellers)。

## 推荐模型

id 照抄到模型字段。价格渲染时读取自目录；人民币为参考价，计费以美元为准。

| 模型 | 开发商 | 输入 / 百万 | 输出 / 百万 |
| --- | --- | --- | --- |
| [Claude Sonnet 5.5](https://relayswitch.ai/zh/models/claude-sonnet-5-5)claude-sonnet-5-5 | Anthropic | $1.20≈ ¥8.16 | $3.00≈ ¥20.41 |
| [Claude Opus 5.5](https://relayswitch.ai/zh/models/claude-opus-5-5)claude-opus-5-5 | Anthropic | $2.716≈ ¥18.48 | $9.70≈ ¥66.00 |
| [GPT-5.5](https://relayswitch.ai/zh/models/gpt-5.5)gpt-5.5 | OpenAI | $1.80≈ ¥12.25 | $9.00≈ ¥61.24 |
| [Gemini 3.5 Flash](https://relayswitch.ai/zh/models/gemini-3.5-flash)gemini-3.5-flash | Google | $1.50≈ ¥10.21 | $9.00≈ ¥61.24 |
| [DeepSeek V4 Pro 0423](https://relayswitch.ai/zh/models/deepseek-v4-pro)deepseek-v4-pro | DeepSeek | $0.792≈ ¥5.39 | $2.376≈ ¥16.17 |
| [GLM 5.3](https://relayswitch.ai/zh/models/glm-5.3)glm-5.3 | Z.ai | $0.3178≈ ¥2.16 | $0.9987≈ ¥6.80 |

美元 / 百万 tokens，人民币参考价按 ECB 2026-11-11 汇率

## 一次会话多少钱

1,000 次转发请求：每次 2,000 输入 tokens、500 输出 tokens。这个大小是假设；控制台的用量页显示每次请求的真实 tokens 和费用。

| 模型 | 一次会话 |
| --- | --- |
| GLM 5.3glm-5.3 | $1.13≈ ¥7.72 |
| DeepSeek V4 Pro 0423deepseek-v4-pro | $2.77≈ ¥18.86 |
| Claude Sonnet 5.5claude-sonnet-5-5 | $3.90≈ ¥26.54 |
| Gemini 3.5 Flashgemini-3.5-flash | $7.50≈ ¥51.03 |
| GPT-5.5gpt-5.5 | $8.10≈ ¥55.11 |
| Claude Opus 5.5claude-opus-5-5 | $10.28≈ ¥69.96 |

按目录实时价计算；人民币参考价按 ECB 2026-11-11 汇率。

## 验证是否接通

先用 curl 列出密钥能调用的模型 id，再在工具里发第一条消息。

bash

1`curl https://api.relayswitch.io/v1/models \`

2 `-H "Authorization: Bearer sk-relay-你的密钥"`

两条都通，剩下的问题就在工具的字段里。请求几秒内出现在控制台的用量页。

常见问题

## 常见问题

New API / One API 接入时最常见的五个问题。

打开控制台

一分钟内拿到密钥

[获取密钥](https://app.relayswitch.io/console?lang=zh)

或发邮件至 [hello@relayswitch.io](mailto:hello@relayswitch.io)

### 

### 

### 

### 

### 

相关页面

-   [全部配置教程](https://relayswitch.ai/zh/guides)
-   [文档](https://relayswitch.ai/zh/docs)
-   [充值](https://relayswitch.ai/zh/pay)
-   [每日真实模型检测](https://relayswitch.ai/zh/proof)
-   [模型与价格](https://relayswitch.ai/zh/models)
-   [English guide](https://relayswitch.io/guides/new-api-upstream)

## 在 New API / One API 里用一个密钥调用全部模型

USDT 充值，按 token 预付，无订阅。Base URL https://api.relayswitch.io/v1。

[模型与价格](https://relayswitch.ai/zh/models)[获取密钥](https://app.relayswitch.io/console?lang=zh)

