---
title: "ChatGPT / OpenAI API 中转：Base URL 与实时价格"
canonical: https://relayswitch.io/zh/chatgpt-api
generated: 2026-11-02T10:50:32.681Z
source: https://api.relayswitch.io/v1/catalog
base_url: https://api.relayswitch.io/v1
---

OpenAI 格式

# ChatGPT / OpenAI API 中转

OpenAI SDK 原样可用：base\_url 改成 https://api.relayswitch.io/v1，密钥换成本站的。35 个 OpenAI 模型 id，价格读取自实时目录，每天公开检测。

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

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

鉴权头`Authorization: Bearer <key>`

模型 id`"model": "gpt-5.5"`

01

## GPT 系列实时价格

美元 / 百万 tokens，渲染时读取自目录；人民币为参考价（ECB 2026-10-30 汇率），计费以美元为准。

| 模型 | 输入 / 百万 | 输出 / 百万 | 官方输入 | 官方输出 |
| --- | --- | --- | --- | --- |
| [GPT-5.5](https://relayswitch.io/models/gpt-5.5)gpt-5.5 | $1.80≈ ¥12.21 | $9.00≈ ¥61.07 | $5.00 | $30.00 |
| [GPT 5 Mini](https://relayswitch.io/models/gpt-5-mini)gpt-5-mini | $0.50≈ ¥3.39 | $4.00≈ ¥27.14 | — | — |
| [GPT 5 Nano](https://relayswitch.io/models/gpt-5-nano)gpt-5-nano | $0.2376≈ ¥1.61 | $1.9008≈ ¥12.90 | — | — |
| [GPT 4.1](https://relayswitch.io/models/gpt-4.1)gpt-4.1 | $4.00≈ ¥27.14 | $16.00≈ ¥108.58 | — | — |
| [GPT-4o](https://relayswitch.io/models/gpt-4o)gpt-4o | $2.50≈ ¥16.96 | $10.00≈ ¥67.86 | $2.50 | $10.00 |
| [Codex Auto Review](https://relayswitch.io/models/codex-auto-review)codex-auto-review | $0.2235≈ ¥1.52 | $0.80≈ ¥5.43 | — | — |
| [GPT 4.1 Mini](https://relayswitch.io/models/gpt-4.1-mini)gpt-4.1-mini | $0.80≈ ¥5.43 | $3.20≈ ¥21.72 | — | — |
| [GPT 4.1 Nano](https://relayswitch.io/models/gpt-4.1-nano)gpt-4.1-nano | $0.32≈ ¥2.17 | $1.28≈ ¥8.69 | — | — |
| [GPT 4O 2024 08 06](https://relayswitch.io/models/gpt-4o-2024-08-06)gpt-4o-2024-08-06 | $5.00≈ ¥33.93 | $20.00≈ ¥135.72 | — | — |
| [GPT 4O 2024 11 20](https://relayswitch.io/models/gpt-4o-2024-11-20)gpt-4o-2024-11-20 | $5.00≈ ¥33.93 | $20.00≈ ¥135.72 | — | — |
| [GPT-4o mini](https://relayswitch.io/models/gpt-4o-mini)gpt-4o-mini | $0.15≈ ¥1.02 | $0.60≈ ¥4.07 | $0.15 | $0.60 |
| [GPT 5](https://relayswitch.io/models/gpt-5)gpt-5 | $2.50≈ ¥16.96 | $20.00≈ ¥135.72 | — | — |
| [GPT 5 PRO](https://relayswitch.io/models/gpt-5-pro)gpt-5-pro | $9.375≈ ¥63.62 | $75.00≈ ¥508.95 | — | — |
| [GPT 5.1](https://relayswitch.io/models/gpt-5.1)gpt-5.1 | $2.50≈ ¥16.96 | $20.00≈ ¥135.72 | — | — |
| [GPT 5.2](https://relayswitch.io/models/gpt-5.2)gpt-5.2 | $1.0938≈ ¥7.42 | $8.75≈ ¥59.38 | $1.75 | $14.00 |
| [GPT 5.2 PRO](https://relayswitch.io/models/gpt-5.2-pro)gpt-5.2-pro | $13.125≈ ¥89.07 | $105.00≈ ¥712.53 | — | — |
| [GPT-5.3-Codex](https://relayswitch.io/models/gpt-5.3-codex)gpt-5.3-codex | $1.75≈ ¥11.88 | $14.00≈ ¥95.00 | $1.75 | $14.00 |
| [GPT-5.4 Mini](https://relayswitch.io/models/gpt-5.4-mini)gpt-5.4-mini | $0.75≈ ¥5.09 | $4.50≈ ¥30.54 | $0.75 | $4.50 |
| [GPT 5.4 Nano](https://relayswitch.io/models/gpt-5.4-nano)gpt-5.4-nano | $0.1335≈ ¥0.906 | $0.8346≈ ¥5.66 | — | — |
| [GPT 5.5 PRO](https://relayswitch.io/models/gpt-5.5-pro)gpt-5.5-pro | $0.8235≈ ¥5.59 | $4.9412≈ ¥33.53 | — | — |
| [GPT 5.6](https://relayswitch.io/models/gpt-5.6)gpt-5.6 | $0.9412≈ ¥6.39 | $4.7059≈ ¥31.93 | — | — |
| [GPT-5.6 Luna](https://relayswitch.io/models/gpt-5.6-luna)gpt-5.6-luna | $0.12≈ ¥0.814 | $0.72≈ ¥4.89 | $0.20 | $1.20 |
| [GPT-5.6 Sol](https://relayswitch.io/models/gpt-5.6-sol)gpt-5.6-sol | $1.20≈ ¥8.14 | $3.00≈ ¥20.36 | $4.00 | $20.00 |
| [GPT-5.6 Terra](https://relayswitch.io/models/gpt-5.6-terra)gpt-5.6-terra | $1.20≈ ¥8.14 | $3.60≈ ¥24.43 | $2.00 | $12.00 |
| [GPT-6 Astra](https://relayswitch.io/models/gpt-6-astra)gpt-6-astra | $3.00≈ ¥20.36 | $15.00≈ ¥101.79 | $10.00 | $50.00 |
| [GPT-6 Luna](https://relayswitch.io/models/gpt-6-luna)gpt-6-luna | $0.0625≈ ¥0.424 | $0.20≈ ¥1.36 | $0.10 | $0.50 |
| [GPT-6 Sol](https://relayswitch.io/models/gpt-6-sol)gpt-6-sol | $0.60≈ ¥4.07 | $3.00≈ ¥20.36 | $2.00 | $10.00 |
| [GPT-6.1 Sol](https://relayswitch.io/models/gpt-6.1-sol)gpt-6.1-sol | $0.60≈ ¥4.07 | $3.00≈ ¥20.36 | $2.00 | $10.00 |
| [GPT 6.1 Terra](https://relayswitch.io/models/gpt-6.1-terra)gpt-6.1-terra | $0.2941≈ ¥2.00 | $1.4706≈ ¥9.98 | — | — |
| [gpt-oss-120b](https://relayswitch.io/models/gpt-oss-120b)gpt-oss-120b | $0.20≈ ¥1.36 | $1.80≈ ¥12.21 | — | — |
| [gpt-oss-20b](https://relayswitch.io/models/gpt-oss-20b)gpt-oss-20b | $0.16≈ ¥1.09 | $0.72≈ ¥4.89 | — | — |
| [O3](https://relayswitch.io/models/o3)o3 | $4.00≈ ¥27.14 | $16.00≈ ¥108.58 | — | — |
| [Text Embedding 3 Large](https://relayswitch.io/models/text-embedding-3-large)text-embedding-3-large | $0.13≈ ¥0.882 | $0.0946≈ ¥0.642 | $0.13 | $0.00 |
| [Text Embedding 3 Small](https://relayswitch.io/models/text-embedding-3-small)text-embedding-3-small | $0.024≈ ¥0.163 | $0.00≈ | $0.02 | $0.00 |
| [Text Embedding Ada 002](https://relayswitch.io/models/text-embedding-ada-002)text-embedding-ada-002 | $0.12≈ ¥0.814 | $0.00≈ | $0.10 | $0.00 |

无倍率：表中价格即扣减价格。

02

## 一次对话多少钱

按一次对话输入 2,000 tokens（系统提示加一条消息）、输出 500 tokens 计。

| 模型 | 每次对话 | $10 够多少次 |
| --- | --- | --- |
| gpt-5.5 | $0.00810≈ ¥0.055 | 1,234 |
| gpt-5-mini | $0.00300≈ ¥0.0204 | 3,333 |
| gpt-5-nano | $0.00143≈ ¥0.00967 | 7,014 |
| gpt-4.1 | $0.01600≈ ¥0.109 | 625 |
| gpt-4o | $0.01000≈ ¥0.0679 | 1,000 |

03

## Python 示例

只改 base\_url 和密钥；usage 里的 tokens 数与签名回执一致。

python

1`from openai import OpenAI`

2

3`client = OpenAI(`

4 `base_url="https://api.relayswitch.io/v1",`

5 `api_key="YOUR_RELAYSWITCH_KEY",`

6`)`

7`reply = client.chat.completions.create(`

8 `model="gpt-5.5",`

9 `messages=[{"role": "user", "content": "用一句话介绍你自己"}],`

10`)`

11`print(reply.choices[0].message.content)`

12`print(reply.usage) # prompt_tokens / completion_tokens，与回执一致`

相关页面

-   [文档：Node、流式、Anthropic 格式](https://relayswitch.io/zh/docs)
-   [全部模型与价格](https://relayswitch.io/zh/models)
-   [每日真实模型检测](https://relayswitch.io/zh/proof)
-   [USDT 充值](https://relayswitch.io/zh/pay)

常见问题

## 常见问题

/v1、429、流式与真实模型。

打开控制台

一分钟内拿到密钥

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

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

### 

### 

### 

### 

### 

### 

## 改一行 base\_url

Base URL https://api.relayswitch.io/v1，GPT 系列按实时标价计费，每天公开检测。

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

