站长自营 API 中转

正在比较模型套餐?可以把多个 AI API 接到一个网关里

ZZSwitch 是我自己运营的统一 API 网关,适合需要国内支付、兑换码充值、多模型切换和 OpenAI 兼容接口的开发者。不是 OpenCode 官方服务。

这页帮你确认 OpenAI Codex 各套餐的价格、功能范围和用量限制,适合在选套餐、查额度或排查“为什么突然用不了”时快速对照。重点看每 5 小时窗口、本地消息/云端任务/Code Review 的限制,以及 Credits、Fast 模式和 API Key 计费规则。

OpenAI Codex 价格与套餐

套餐概览

个人套餐

套餐 价格 定位
Free $0/月 体验 Codex 的快速编程任务
Go $8/月 轻量 coding 任务
Plus $20/月 每周几次专注的编程会话
Pro 从 $100/月起 比 Plus 更高的速率限制
API Key 按 token 计费 适合 CI 等共享环境自动化

Plus 套餐包含

  • 可在 Web、CLI、IDE 扩展和 iOS 上使用 Codex
  • 云端集成功能,例如自动代码审查和 Slack 集成
  • 最新模型,包括 GPT-5.5、GPT-5.4 和 GPT-5.3-Codex
  • GPT-5.4-mini,适合更高本地消息用量
  • 可通过 ChatGPT credits 弹性扩充用量
  • 还包含 ChatGPT 其他功能

Pro 套餐包含 Plus 所有功能,并额外提供

  • 5x 或 20x 更高的速率限制,具体取决于套餐档位
  • GPT-5.3-Codex-Spark(research preview),用于日常 coding 任务的快速模型
  • ChatGPT 其他功能

提示:$100/月的 Pro 套餐在 2026 年 5 月 31 日前享受 2x Codex 用量,因此等效于标准 5x 的 10x;$200/月的 Pro 套餐在 2026 年 5 月 31 日前,5 小时 Codex 上限维持在 25x Plus,等效为 20x Plus,并按当前活动继续提供更高档位权益。

Business / Enterprise & Edu

套餐 适合 额外功能
Business 初创公司或成长型企业 更大的虚拟机、更灵活的座席分配、SAML SSO、MFA
Enterprise & Edu 全组织部署 优先处理、SCIM、EKM、用户分析、域名验证、RBAC、审计日志、使用监控、数据留存和数据驻留控制

API Key

  • 可在 CLI、SDK 或 IDE 扩展中使用
  • 不提供云端功能,例如 GitHub code review、Slack 集成
  • 新模型(如 GPT-5.3-Codex 和 GPT-5.3-Codex-Spark)会延后开放
  • 只按 Codex 实际使用的 token 计费,依据 API pricing

用量限制

Codex 的用量限制按 5 小时窗口 计算,本地消息和云端任务共享同一个窗口。实际可用次数会随模型、任务复杂度、上下文长度以及是在本地还是云端运行而变化。

GPT-5.5 比 GPT-5.4 更省 token,通常能在更少消耗下得到接近的结果,因此更适合长会话和高效率使用。

Plus

模型 本地消息 / 5h 云端任务 / 5h Code Review / 5h
GPT-5.5 15-80 Not available Not available
GPT-5.4 20-100 Not available Not available
GPT-5.4-mini 60-350 Not available Not available
GPT-5.3-Codex 30-150 10-60 20-50

本地消息和云端任务共享同一个 五小时窗口。另外还可能有每周限制。Enterprise/Edu 用户没有固定速率限制,用量按 credits 伸缩;没有灵活定价的 Enterprise/Edu 计划,在大多数功能上与 Plus 拥有相同的单席位用量限制。

Pro 5x

模型 本地消息 / 5h 云端任务 / 5h Code Review / 5h
GPT-5.5 80-400 Not available Not available
GPT-5.4 100-500 Not available Not available
GPT-5.4-mini 300-1750 Not available Not available
GPT-5.3-Codex 150-750 50-300 100-250

本地消息和云端任务共享同一个 五小时窗口。$100 的 Pro 套餐在 2026 年 5 月 31 日前享受 2x 用量提升。Enterprise/Edu 用户没有固定速率限制,用量按 credits 伸缩;没有灵活定价的 Enterprise/Edu 计划,在大多数功能上与 Plus 拥有相同的单席位用量限制。

Pro 20x

模型 本地消息 / 5h 云端任务 / 5h Code Review / 5h
GPT-5.5 300-1600 Not available Not available
GPT-5.4 400-2000 Not available Not available
GPT-5.4-mini 1200-7000 Not available Not available
GPT-5.3-Codex 600-3000 200-1200 400-1000

本地消息和云端任务共享同一个 五小时窗口。$200 的 Pro 套餐在 2026 年 5 月 31 日前会继续提供更高的用量提升。Enterprise/Edu 用户没有固定速率限制,用量按 credits 伸缩;没有灵活定价的 Enterprise/Edu 计划,在大多数功能上与 Plus 拥有相同的单席位用量限制。

Business

模型 本地消息 / 5h 云端任务 / 5h Code Review / 5h
GPT-5.5 15-80 Not available Not available
GPT-5.4 20-100 Not available Not available
GPT-5.4-mini 60-350 Not available Not available
GPT-5.3-Codex 30-150 10-60 20-50

本地消息和云端任务共享同一个 五小时窗口。另外还可能有每周限制。Enterprise/Edu 用户没有固定速率限制,用量按 credits 伸缩;没有灵活定价的 Enterprise/Edu 计划,在大多数功能上与 Plus 拥有相同的单席位用量限制。

API Key

模型 本地消息 / 5h 云端任务 / 5h Code Review / 5h
GPT-5.5 Not available Not available Not available
GPT-5.4 Usage-based Not available Not available
GPT-5.4-mini Usage-based Not available Not available
GPT-5.3-Codex Usage-based Not available Not available

本地消息和云端任务共享同一个 五小时窗口。另外还可能有每周限制。Enterprise/Edu 用户没有固定速率限制,用量按 credits 伸缩;没有灵活定价的 Enterprise/Edu 计划,在大多数功能上与 Plus 拥有相同的单席位用量限制。

Codex 的用量限制会和其他 agentic 功能共享;一旦这些功能开始计费,就会一起消耗额度。当前包括 ChatGPT for Excel 的 Plus 和 Pro 用量。

Speed 配置会提高所有适用模型的 credit 消耗,因此会更快用完包含额度。Fast mode 对支持的模型也会以更高比率消耗 credits。支持模型和费率见 Speed

图像生成也会占用同一套 Codex 总额度,平均比不生成图像的同类轮次快 3-5 倍消耗限额,具体取决于图像质量和尺寸。Free 计划不支持图像生成。使用 API Key 时,图像生成按 API pricing 计费,而不是 ChatGPT 包含额度。

触发用量限制后会怎样

Plus 和 Pro 用户达到用量限制后,可以直接购买额外 credits 继续使用,不必升级当前套餐。

Business、Edu 和 Enterprise 计划如果启用了 flexible pricing,可以购买额外 workspace credits 继续使用 Codex。

如果快到上限,也可以切换到更小的模型,让额度用得更久。

所有用户还可以用 API key 执行额外的本地任务,费用按 standard API rates 计算。

怎么查看当前用量

可以在 Codex usage dashboard 查看当前限制;在活跃的 Codex CLI 会话中,可以用 /status 查看剩余额度。

credits 计费规则

Credits 用来在达到包含用量后继续使用 Codex。实际扣减多少,取决于你使用的模型和功能。

从 4 月 2 日起,计费迁移到基于 API token 的费率。Credits 仍然是客户购买和消耗的核心计费单位,但使用量会按 token 消耗来计算,包含每百万 input tokens、cached input tokens 和 output tokens。Token 的说明见 这里

这种方式把原本按消息估算的方式,改成了 token 与 credits 的直接映射。它最适合你想更清楚地看出 input、cached input 和 output 如何影响 credit 消耗时使用。

实际 credit 消耗取决于每个任务里 input、cached input 和 output token 的组合。下面的费率表适用于 新和现有 Business 客户,以及新的 Enterprise 客户

其他所有套餐类型的新老客户 仍继续使用之前的按消息费率表,直到后续几周内迁移到新费率。

Business 和新 Enterprise 客户

模型 每 1M tokens 的 credits Input Tokens Cached input tokens Output Tokens
GPT-5.5 125 credits 125 credits 12.50 credits 750 credits
GPT-5.4 62.50 credits 62.50 credits 6.250 credits 375 credits
GPT-5.4-mini 18.75 credits 18.75 credits 1.875 credits 113 credits
GPT-5.3-Codex 43.75 credits 43.75 credits 4.375 credits 350 credits
GPT-5.2 43.75 credits 43.75 credits 4.375 credits 350 credits
GPT-5.3-Codex-Spark research preview research preview research preview research preview
GPT-Image-2 (image) 200 credits 50 credits 750 credits -
GPT-Image-2 (text) 125 credits 31.25 credits 250 credits -

Fast mode 对支持的模型会以更高比率消耗 credits,费率见 Speed。Cloud tasks 和 code review 运行在 GPT-5.3-Codex 上。

Plus、Pro、现有 Enterprise/Edu 和新的 Edu 客户

任务类型 单位 GPT-5.5 GPT-5.4 GPT-5.3-Codex GPT-5.4-mini
Local Tasks 1 message ~14 credits ~7 credits ~5 credits ~2 credits
Cloud Tasks 1 message Not available Not available ~25 credits Not available
Code Review 1 pull request Not available Not available ~25 credits Not available
Image generation 1 image (1024px × 1024px) ~5-6 credits ~5-6 credits ~5-6 credits ~5-6 credits
Image generation 1 image (1024px × 1536px) ~7-8 credits ~7-8 credits ~7-8 credits ~7-8 credits

Fast mode 对支持的模型会以更高比率消耗 credits,费率见 Speed。这些平均值也适用于 GPT-5.2。

Speed 配置会增加所有适用模型的 credit 消耗。Fast mode 对支持模型会以更高比率消耗 credits,费率见 Speed

常见问题

OpenAI Codex 的用量限制是多少

Codex 的限制按模型、任务复杂度、上下文大小,以及本地还是云端运行来计算。小脚本和常规函数消耗更少,大型代码库、长任务或需要保持更多上下文的会话会消耗更多。

Codex 的 Code Review 用量怎么算

只有通过 GitHub 触发的 Code Review 才计入 Code Review 用量,例如在 pull request 里 @Codex 发起审查,或为仓库开启自动审查。在本地或 GitHub 之外运行的 review,会算到通用用量里。

OpenAI Codex 超过额度后怎么办

Plus 和 Pro 用户可以购买额外 credits 继续使用。Business、Edu 和 Enterprise 用户如果启用了 flexible pricing,也可以购买额外 workspace credits。你也可以切换到更小的模型,或者用 API key 跑额外的本地任务,按标准 API rates 计费。

站长自营 API 中转

ZZSwitch API 中转

统一接入多家模型,支持兑换码充值。

打开 ZZSwitch