---
title: "NextChat 中转配置：接口地址与一键填入"
canonical: https://relayswitch.io/zh/guides/nextchat
generated: 2026-11-02T11:23:35.657Z
source: https://api.relayswitch.io/v1/catalog
base_url: https://api.relayswitch.io/v1
---

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

# NextChat 中转配置

NextChat 的接口地址不带 /v1：填根地址，粘贴密钥，自定义模型里加 id；一条 #/?settings= 链接可以一键填入。

## 配置步骤

1.  打开 **设置**，打开 **自定义接口**。
2.  **接口地址** 填 `https://api.relayswitch.io`，不带 `/v1`：NextChat 自己在后面拼 `v1/chat/completions`。
3.  **API Key** 粘贴完整密钥。
4.  **自定义模型** 填 `+模型id`，逗号分隔；`-all` 先隐藏内置列表，例如 `-all,+claude-sonnet-5-5`。然后在对话里选这个模型。
5.  一键填入：打开下面的链接，确认弹窗后密钥和接口地址自动写入设置（部署方设置了 `DISABLE_FAST_LINK=1` 时无效）：  
    `https://你的NextChat域名/#/?settings={"key":"sk-relay-你的密钥","url":"https://api.relayswitch.io"}`

bash

1`# 界面：设置 → 自定义接口（打开）`

2`接口地址: https://api.relayswitch.io`

3`API Key: sk-relay-你的密钥`

4`自定义模型: -all,+claude-sonnet-5-5,+gpt-5.5,+deepseek-v4-flash,+kimi-k3,+glm-5.3`

5

6`# 自部署（环境变量）`

7`BASE_URL=https://api.relayswitch.io`

8`OPENAI_API_KEY=sk-relay-你的密钥`

9`CUSTOM_MODELS=-all,+claude-sonnet-5-5,+gpt-5.5,+deepseek-v4-flash,+kimi-k3,+glm-5.3`

资料来源：NextChat 的 [README](https://github.com/ChatGPTNextWeb/NextChat/blob/main/README_CN.md)（BASE\_URL、CUSTOM\_MODELS）、[openai.ts](https://github.com/ChatGPTNextWeb/NextChat/blob/main/app/client/platforms/openai.ts)（地址拼接）与 [chat.tsx](https://github.com/ChatGPTNextWeb/NextChat/blob/main/app/components/chat.tsx)（settings 链接），读取于 2026-10-31。

## 推荐模型

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

| 模型 | 开发商 | 输入 / 百万 | 输出 / 百万 |
| --- | --- | --- | --- |
| [Claude Sonnet 5.5](https://relayswitch.io/zh/models/claude-sonnet-5-5)claude-sonnet-5-5 | Anthropic | $1.20≈ ¥8.14 | $3.00≈ ¥20.36 |
| [GPT-5.5](https://relayswitch.io/zh/models/gpt-5.5)gpt-5.5 | OpenAI | $1.80≈ ¥12.21 | $9.00≈ ¥61.07 |
| [DeepSeek V4 Flash 0423](https://relayswitch.io/zh/models/deepseek-v4-flash)deepseek-v4-flash | DeepSeek | $0.0279≈ ¥0.189 | $0.1116≈ ¥0.757 |
| [Kimi K3](https://relayswitch.io/zh/models/kimi-k3)kimi-k3 | Moonshot AI | $0.90≈ ¥6.11 | $4.50≈ ¥30.54 |
| [GLM 5.3](https://relayswitch.io/zh/models/glm-5.3)glm-5.3 | Z.ai | $0.3276≈ ¥2.22 | $1.0296≈ ¥6.99 |

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

## 一次会话多少钱

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

| 模型 | 一次会话 |
| --- | --- |
| DeepSeek V4 Flash 0423deepseek-v4-flash | $0.0033≈ ¥0.0227 |
| GLM 5.3glm-5.3 | $0.0351≈ ¥0.238 |
| Claude Sonnet 5.5claude-sonnet-5-5 | $0.117≈ ¥0.794 |
| Kimi K3kimi-k3 | $0.1215≈ ¥0.824 |
| GPT-5.5gpt-5.5 | $0.243≈ ¥1.65 |

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

## 验证是否接通

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

bash

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

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

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

常见问题

## 常见问题

NextChat 接入时最常见的五个问题。

打开控制台

一分钟内拿到密钥

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

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

### 

### 

### 

### 

### 

相关页面

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

## 在 NextChat 里用一个密钥调用全部模型

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

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

