---
title: "Cursor 中转配置：自定义 API Key 与 Base URL"
canonical: https://relayswitch.io/zh/guides/cursor
generated: 2026-11-02T11:22:40.436Z
source: https://api.relayswitch.io/v1/catalog
base_url: https://api.relayswitch.io/v1
---

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

# Cursor 中转配置

把密钥填进 Cursor 的 OpenAI API Key，覆盖 Base URL，密钥上的每个对话模型都能进选择器。Agent 和 Ask 模式都可用。

## 配置步骤

1.  打开 Cursor Settings（`Cmd/Ctrl + ,`）→ **Models**，密钥和 Base URL 字段在模型列表下方。
2.  打开 **OpenAI API Key**，粘贴完整密钥。
3.  打开 **Override OpenAI Base URL**，填 `https://api.relayswitch.io/v1`，末尾带 `/v1`。
4.  点 **Save**（旧版叫 **Verify**）。
5.  在 **Models** 下逐个添加想用的 id，和模型页打印的完全一致，Claude 的 id 也可以。然后在对话面板里选一个。

text

1`OpenAI API Key: sk-relay-你的密钥`

2`Override OpenAI Base URL: https://api.relayswitch.io/v1`

3`Models (逐个添加):`

4`claude-sonnet-5-5`

5`claude-opus-5-5`

6`gpt-5.5`

7`deepseek-v4-pro`

8`kimi-k3`

资料来源：本站英文教程 [/guides/cursor](https://relayswitch.io/guides/cursor)（核对于 2026-10-26）。Agent 模式下 Cursor 给 `gpt-` 开头的模型发 Responses 格式的请求体，网关按 Chat Completions 解析并应答，价格不变。

## 推荐模型

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 |
| [Claude Opus 5.5](https://relayswitch.io/zh/models/claude-opus-5-5)claude-opus-5-5 | Anthropic | $2.80≈ ¥19.00 | $10.00≈ ¥67.86 |
| [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 Pro 0423](https://relayswitch.io/zh/models/deepseek-v4-pro)deepseek-v4-pro | DeepSeek | $0.792≈ ¥5.37 | $2.376≈ ¥16.12 |
| [Kimi K3](https://relayswitch.io/zh/models/kimi-k3)kimi-k3 | Moonshot AI | $0.90≈ ¥6.11 | $4.50≈ ¥30.54 |

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

## 一次会话多少钱

一次 40 轮的 Agent 会话：每轮发送 80,000 tokens 的缓存上下文、2,000 新输入 tokens，返回 1,500 输出 tokens。这个大小是假设；控制台的用量页显示每次请求的真实 tokens 和费用。

| 模型 | 一次会话 |
| --- | --- |
| DeepSeek V4 Pro 0423deepseek-v4-pro | $0.2904≈ ¥1.97 |
| Claude Sonnet 5.5claude-sonnet-5-5 | $0.516≈ ¥3.50 |
| Kimi K3kimi-k3 | $0.726≈ ¥4.93 |
| GPT-5.5gpt-5.5 | $1.20≈ ¥8.12 |
| Claude Opus 5.5claude-opus-5-5 | $1.30≈ ¥8.85 |

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

## 验证是否接通

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

bash

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

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

再按工具发请求的方式发一条：

bash

1`curl -i https://api.relayswitch.io/v1/chat/completions \`

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

3 `-H "content-type: application/json" \`

4 `-d '{"model": "gpt-5.5", "messages": [{"role": "user", "content": "回复 ok"}]}'`

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

常见问题

## 常见问题

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

打开控制台

一分钟内拿到密钥

[获取密钥](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)
-   [English guide](https://relayswitch.io/guides/cursor)

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

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

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

