理解价格和用量
Codex 的价格和用量限制取决于你的入口:ChatGPT 个人订阅、Business / Enterprise 工作区,或者 API key。新手最容易混淆的
Codex 的价格和用量限制取决于你的入口:ChatGPT 个人订阅、Business / Enterprise 工作区,或者 API key。新手最容易混淆的点是:ChatGPT 订阅里有 included usage limits(内含用量限制),超出后可以使用 credits(额度);API key 则按 API token pricing(按 token 计费)走平台价格。
官方当前说明:团队现在可以在没有固定月费的情况下开始使用 Codex。限时活动期间,符合条件的 ChatGPT Business workspaces(Business 工作区)在团队成员开始使用 Codex 后,最多可获得 $500 credits。
- 活动条款:https://help.openai.com/en/articles/20001150-codex-for-business-promotion-earn-up-to-500-in-credits
- 开始使用 Business Codex:https://chatgpt.com/codex/team/start
个人计划
| 计划 | 价格 | 适合场景 | 入口 |
|---|---|---|---|
| Free | $0/month | 用 quick coding tasks(快速编程任务)体验 Codex 能力 | https://chatgpt.com/plans/free/ |
| Go | $8/month | 用 Codex 处理 lightweight coding tasks(轻量编程任务) | https://chatgpt.com/plans/go |
| Plus | $20/month | 每周进行几次 focused coding sessions(聚焦编程会话) | https://chatgpt.com/explore/plus?utm_internal_source=openai_developers_codex |
| Pro | From $100/month | 比 Plus 更高的 rate limits(速率限制),可选 5x 或 20x | https://chatgpt.com/explore/pro?utm_internal_source=openai_developers_codex |
| API Key | 按 API 使用量计费 | CI 等 shared environments(共享环境)里的 automation(自动化) | https://developers.openai.com/codex/auth |
Plus 套餐包含什么
Plus 计划包含:
- Codex on the web(网页版)、CLI、IDE extension 和 iOS。
- cloud-based integrations(云端集成),例如 automatic code review(自动代码审查)和 Slack integration(Slack 集成)。
- 最新模型,包括 GPT-5.5、GPT-5.4 和 GPT-5.3-Codex。
- GPT-5.4-mini,用于 routine local messages(常规本地消息)并获得更高用量限制。
- 可以用 ChatGPT credits 灵活扩展用量。
- Plus 计划内的其他 ChatGPT 功能:https://chatgpt.com/pricing
Pro 套餐包含什么
Pro 包含 Plus 的内容,并增加更高 Codex 用量。
官方特别说明:$100/month 的 Pro tier 在 2026-05-31 前 Codex 用量翻倍。
Pro 额外包含:
- GPT-5.3-Codex-Spark research preview(研究预览)访问权限,这是面向日常 coding tasks 的快速 Codex 模型。
- 比 Plus 多
10x或20x的 Codex 用量。原来的5x在$100/monthtier 上通过限时活动提升到10x。 - Pro 计划内的其他 ChatGPT 功能:https://chatgpt.com/pricing
- Pro 限制和活动说明:https://help.openai.com/en/articles/9793128-about-chatgpt-pro-plans
API Key 方式
API Key 方式适合把 Codex 放进 CI 或共享执行环境。它包含:
- 在 CLI、SDK 或 IDE extension 中使用 Codex。
- 不包含 cloud-based features,例如 GitHub code review、Slack 等。
- 新模型访问可能延迟,例如 GPT-5.3-Codex 和 GPT-5.3-Codex-Spark。
- 只按 Codex 实际使用的 tokens 付费,价格基于 API pricing: https://platform.openai.com/docs/pricing
认证方式见:
https://developers.openai.com/codex/auth
企业套餐:Business / Enterprise
| 计划 | 价格 | 适合场景 | 入口 |
|---|---|---|---|
| Business | Pay as you go(按使用付费) | 把 Codex 带进 startup(创业公司)或 growing business(成长型企业) | https://chatgpt.com/codex/team/start |
| Enterprise & Edu | 联系销售 | 为整个组织开启 enterprise-grade functionality(企业级能力) | https://chatgpt.com/contact-sales?utm_internal_source=openai_developers_codex |
| API Key | 按 API 使用量计费 | CI 等 shared environments 里的 automation | https://developers.openai.com/codex/auth |
Business 套餐包含什么
Business 包含 Plus 的内容,并增加:
- 根据团队需要分配 standard seats(标准席位)或 usage-based Codex seats(按使用量计费席位)。 https://help.openai.com/en/articles/8792828-what-is-chatgpt-business
- 更大的 virtual machines(虚拟机),用于更快运行 cloud tasks。
- 可以用 ChatGPT credits 灵活扩展用量。
- secure dedicated workspace(安全的专属工作区),包含基础 admin controls(管理员控制)、SAML SSO 和 MFA。
- 默认不会用你的 business data(业务数据)训练模型。 https://openai.com/business-data/
- Business 计划内的其他 ChatGPT 功能: https://chatgpt.com/pricing
Enterprise 和 Edu 套餐包含什么
Enterprise & Edu 包含 Business 的内容,并增加:
- Priority request processing(优先请求处理)。
- enterprise-level security and controls(企业级安全与控制),包括 SCIM、EKM、user analytics(用户分析)、domain verification(域名验证)和 role-based access control(RBAC,基于角色的访问控制): https://help.openai.com/en/articles/11750701-rbac
- 通过 Compliance API 查看 audit logs(审计日志)和 usage monitoring(用量监控): https://chatgpt.com/admin/api-reference#tag/Codex-Tasks
- data retention(数据保留)和 data residency(数据驻留)控制。
- Enterprise 计划内的其他 ChatGPT 功能: https://chatgpt.com/pricing
常见问题
我的计划有多少使用额度?
你能发送多少 Codex messages(Codex 消息),取决于:
- 使用哪个模型。
- coding tasks 的大小和复杂度。
- 是 local(本地)运行,还是 cloud(云端)运行。
小脚本或常规函数可能只消耗一小部分额度;大型代码库、长时间任务,或者需要 Codex 持有更多上下文的 extended sessions(长会话),每条消息会消耗更多。
GPT-5.5 为了达到和 GPT-5.4 类似的结果,通常使用显著更少的 tokens。它的 Codex setup 更快,对大多数用户给出的结果质量也更高。因为效率更高,即使 GPT-5.5 是能力更强的模型,官方仍能给出较宽的用量范围。
用量限制
Plus 套餐
| Model | Local Messages / 5h | Cloud Tasks / 5h | Code Reviews / 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 |
说明:
- local messages 和 cloud tasks 共享同一个 five-hour window(5 小时窗口)。
- 可能还有额外 weekly limits(每周限制)。
- 对 Enterprise / Edu 用户,如果启用了 flexible pricing,就没有固定 rate limits,用量会随 credits 扩展。
- 没有 flexible pricing 的 Enterprise / Edu 计划,大多数功能的 per-seat usage limits(每席位用量限制)与 Plus 相同。
Pro 5x 套餐
| Model | Local Messages / 5h | Cloud Tasks / 5h | Code Reviews / 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 |
说明:
- local messages 和 cloud tasks 共享同一个 five-hour window。
- 可能还有额外 weekly limits。
- Pro
$100在 2026-05-31 前获得上表所示用量的2x。 - 对 Enterprise / Edu 用户,如果启用了 flexible pricing,就没有固定 rate limits,用量会随 credits 扩展。
- 没有 flexible pricing 的 Enterprise / Edu 计划,大多数功能的 per-seat usage limits 与 Plus 相同。
Pro 20x 套餐
| Model | Local Messages / 5h | Cloud Tasks / 5h | Code Reviews / 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 |
说明:
- local messages 和 cloud tasks 共享同一个 five-hour window。
- 可能还有额外 weekly limits。
- Pro
$200在 2026-05-31 前获得上表所示用量的 boost(提升)。 https://help.openai.com/en/articles/9793128-about-chatgpt-pro-plans - 对 Enterprise / Edu 用户,如果启用了 flexible pricing,就没有固定 rate limits,用量会随 credits 扩展。
- 没有 flexible pricing 的 Enterprise / Edu 计划,大多数功能的 per-seat usage limits 与 Plus 相同。
Business 套餐
| Model | Local Messages / 5h | Cloud Tasks / 5h | Code Reviews / 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 |
说明:
- local messages 和 cloud tasks 共享同一个 five-hour window。
- 可能还有额外 weekly limits。
- 对 Enterprise / Edu 用户,如果启用了 flexible pricing,就没有固定 rate limits,用量会随 credits 扩展。
- 没有 flexible pricing 的 Enterprise / Edu 计划,大多数功能的 per-seat usage limits 与 Plus 相同。
API Key 方式
| Model | Local Messages / 5h | Cloud Tasks / 5h | Code Reviews / 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 |
说明:
- local messages 和 cloud tasks 共享同一个 five-hour window。
- 可能还有额外 weekly limits。
- 对 Enterprise / Edu 用户,如果启用了 flexible pricing,就没有固定 rate limits,用量会随 credits 扩展。
- 没有 flexible pricing 的 Enterprise / Edu 计划,大多数功能的 per-seat usage limits 与 Plus 相同。
Speed configurations(速度配置)会让适用模型消耗更多 credits,因此 included limits(内含限制)也会更快用完。Fast mode 对支持的模型按更高倍率消耗 credits。支持模型和倍率见:
https://developers.openai.com/codex/speed
Image generations(图片生成)也会消耗 included limits,平均比没有图片生成的类似轮次快约 3-5x,具体取决于 image quality(图片质量)和 size(尺寸)。
GPT-5.3-Codex-Spark 目前是 ChatGPT Pro 用户的 research preview,不在 API launch(API 首发)中提供。由于它运行在 specialized low-latency hardware(专用低延迟硬件)上,用量由独立 usage limit 管理,并可能随需求调整。
触发用量限制后会发生什么?
ChatGPT Plus 和 Pro 用户达到 usage limit 后,可以购买 additional credits(额外额度),继续工作,不必升级现有计划。
启用 flexible pricing 的 Business、Edu 和 Enterprise 计划,可以购买 additional workspace credits(额外工作区额度)继续使用 Codex:
如果你快接近使用限制,也可以切到 smaller model(更小模型),让额度使用时间更长。
所有用户也可以用 API key 运行额外 local tasks,费用按 standard API rates(标准 API 费率)收取:
https://platform.openai.com/docs/pricing
图片生成如何计入用量限制?
Image generation 会计入和 local messages、cloud tasks 相同的 general Codex usage limits(通用 Codex 用量限制)。
图片生成平均会比不生成图片的类似轮次更快消耗 included limits,约 3-5x,具体取决于 image quality 和 size。达到 included limits 后,图片生成也会从 credits 中扣除。
Free plan 不支持 image generation。如果你用 API key 使用 Codex,图片生成按 API pricing 计费,而不是使用 ChatGPT 的 included usage limits。
当前 Pro 的 Codex 用量活动是什么?
官方当前为两个 Pro tiers 都提供额外 Codex 用量。
对于 Pro $100,为庆祝发布,官方提供 2x Codex usage through 2026-05-31。也就是说,$100/month tier 在活动期间是 10x,不是标准 5x。
对于 Pro $200,官方延续早期 2x 活动的权益,因此 Pro $200 现在持续包含 20x Plus。此外,官方继续在限时期间保留更高的 5-hour Codex limits,所以到 2026-05-31 前保持在 25x Plus,而不是标准 20x Plus。
在哪里查看当前用量限制?
你可以在 Codex usage dashboard 查看当前限制:
https://chatgpt.com/codex/settings/usage
如果你正在 Codex CLI session 中,可以用:
/status查看剩余额度。
额度如何工作?
Credits 让你在达到 included usage limits 后继续使用 Codex。Codex 会根据你使用的模型和功能,从 available credits(可用额度)中扣减,避免工作被中断。
截至 2026-04-02,官方正在把 pricing 迁移到 API token-based rates(基于 API token 的费率)。Credits 仍然是客户购买和消耗的核心 pricing unit(计价单位),但用量会基于 tokens consumed(消耗的 token)计算,也就是按每百万 input tokens(输入 token)、cached input tokens(缓存输入 token)和 output tokens(输出 token)消耗多少 credits 来计算。
Tokens 说明:
https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them
这种格式会用 token 与 credits 的直接映射,替代你所在计划里的 average per-message estimates(平均每条消息估算)。当你需要看清 input、cached input 和 output 如何影响 credit consumption(额度消耗)时,它更有用。
在这个模型下,每个任务的实际 credit usage 取决于 input、cached input 和 output tokens 的比例。官方下面的新版 rate card(费率表)目前适用于:
- new and existing Business customers(新老 Business 客户)。
- new Enterprise customers(新 Enterprise 客户)。
所有其他 plan types(计划类型)的新老客户,在官方迁移到新费率前,继续使用 previous message-based rate card(旧的按消息计费费率表)。
额度费率
Business 和新 Enterprise 用户
| Credits per 1M tokens | Input Tokens | Cached input tokens | Output Tokens |
|---|---|---|---|
| GPT-5.5 | 125 credits | 12.50 credits | 750 credits |
| GPT-5.4 | 62.50 credits | 6.250 credits | 375 credits |
| GPT-5.4-mini | 18.75 credits | 1.875 credits | 113 credits |
| GPT-5.3-Codex | 43.75 credits | 4.375 credits | 350 credits |
| GPT-5.2 | 43.75 credits | 4.375 credits | 350 credits |
| GPT-5.3-Codex-Spark | 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: https://developers.openai.com/codex/speed
- Cloud tasks 和 code review 运行在 GPT-5.3-Codex 上。
Plus、Pro、现有 Enterprise/Edu 和新 Edu 用户
| Use | Unit | 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 x 1024px) | ~5-6 credits | ~5-6 credits | ~5-6 credits | ~5-6 credits |
| Image generation | 1 image (1024px x 1536px) | ~7-8 credits | ~7-8 credits | ~7-8 credits | ~7-8 credits |
说明:
- Fast mode 对支持模型按更高倍率消耗 credits。倍率见 Speed: https://developers.openai.com/codex/speed
- 这些平均值也适用于 GPT-5.2。
Speed configurations 会增加所有适用模型的 credit consumption。Fast mode 对支持模型按更高倍率消耗 credits。支持模型和倍率见:
https://developers.openai.com/codex/speed
更多 credits 说明:
- ChatGPT Plus 和 Pro credits: https://help.openai.com/en/articles/12642688-using-credits-for-flexible-usage-in-chatgpt-freegopluspro-sora
- ChatGPT Business、Enterprise 和 Edu credits: https://help.openai.com/en/articles/11487671-flexible-pricing-for-the-enterprise-edu-and-business-plans
什么算 Code Review 用量?
Code Review usage 只在 Codex 通过 GitHub 运行 review 时计入。例如:
- 在 pull request 中 tag
@Codex请求 review。 - 在 repository 上启用 automatic reviews。
本地运行的 review,或者不通过 GitHub 运行的 review,会计入 general usage limits(通用用量限制)。
如何让使用额度更耐用?
上面的 usage limits 和 credits 是 average rates(平均费率)。你可以用这些方式延长额度:
- 控制 prompt 大小。 指令要精确,但删除不必要的上下文。
- 减少
AGENTS.md的大小。 在大型项目中,可以通过嵌套AGENTS.md控制注入多少上下文。 https://developers.openai.com/codex/guides/agents-md#layer-project-instructions - 限制 MCP servers 数量。 每添加一个 MCP,都会向 Codex messages 里加入更多 context,并消耗更多 limit。不需要时禁用 MCP servers。 https://developers.openai.com/codex/mcp
- 把常规任务切到更小模型。 根据你从哪个模型切换而来,使用 GPT-5.4 或 GPT-5.4-mini 可以延长 local-message usage limits。