📚AI 编程官方教程中文版
官方教程中文版模型、价格与效率

理解价格和用量

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。

个人计划

计划价格适合场景入口
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
ProFrom $100/month比 Plus 更高的 rate limits(速率限制),可选 5x 或 20xhttps://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 额外包含:

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

计划价格适合场景入口
BusinessPay 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 里的 automationhttps://developers.openai.com/codex/auth

Business 套餐包含什么

Business 包含 Plus 的内容,并增加:

Enterprise 和 Edu 套餐包含什么

Enterprise & Edu 包含 Business 的内容,并增加:

常见问题

我的计划有多少使用额度?

你能发送多少 Codex messages(Codex 消息),取决于:

  • 使用哪个模型。
  • coding tasks 的大小和复杂度。
  • 是 local(本地)运行,还是 cloud(云端)运行。

小脚本或常规函数可能只消耗一小部分额度;大型代码库、长时间任务,或者需要 Codex 持有更多上下文的 extended sessions(长会话),每条消息会消耗更多。

GPT-5.5 为了达到和 GPT-5.4 类似的结果,通常使用显著更少的 tokens。它的 Codex setup 更快,对大多数用户给出的结果质量也更高。因为效率更高,即使 GPT-5.5 是能力更强的模型,官方仍能给出较宽的用量范围。

用量限制

Plus 套餐

ModelLocal Messages / 5hCloud Tasks / 5hCode Reviews / 5h
GPT-5.515-80Not availableNot available
GPT-5.420-100Not availableNot available
GPT-5.4-mini60-350Not availableNot available
GPT-5.3-Codex30-15010-6020-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 套餐

ModelLocal Messages / 5hCloud Tasks / 5hCode Reviews / 5h
GPT-5.580-400Not availableNot available
GPT-5.4100-500Not availableNot available
GPT-5.4-mini300-1750Not availableNot available
GPT-5.3-Codex150-75050-300100-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 套餐

ModelLocal Messages / 5hCloud Tasks / 5hCode Reviews / 5h
GPT-5.5300-1600Not availableNot available
GPT-5.4400-2000Not availableNot available
GPT-5.4-mini1200-7000Not availableNot available
GPT-5.3-Codex600-3000200-1200400-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 套餐

ModelLocal Messages / 5hCloud Tasks / 5hCode Reviews / 5h
GPT-5.515-80Not availableNot available
GPT-5.420-100Not availableNot available
GPT-5.4-mini60-350Not availableNot available
GPT-5.3-Codex30-15010-6020-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 方式

ModelLocal Messages / 5hCloud Tasks / 5hCode Reviews / 5h
GPT-5.5Not availableNot availableNot available
GPT-5.4Usage-basedNot availableNot available
GPT-5.4-miniUsage-basedNot availableNot available
GPT-5.3-CodexUsage-basedNot availableNot 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:

https://help.openai.com/en/articles/11487671-flexible-pricing-for-the-enterprise-edu-and-business-plans

如果你快接近使用限制,也可以切到 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 tokensInput TokensCached input tokensOutput Tokens
GPT-5.5125 credits12.50 credits750 credits
GPT-5.462.50 credits6.250 credits375 credits
GPT-5.4-mini18.75 credits1.875 credits113 credits
GPT-5.3-Codex43.75 credits4.375 credits350 credits
GPT-5.243.75 credits4.375 credits350 credits
GPT-5.3-Codex-Sparkresearch previewresearch previewresearch preview
GPT-Image-2 (image)200 credits50 credits750 credits
GPT-Image-2 (text)125 credits31.25 credits250 credits

说明:

Plus、Pro、现有 Enterprise/Edu 和新 Edu 用户

UseUnitGPT-5.5GPT-5.4GPT-5.3-CodexGPT-5.4-mini
Local Tasks1 message~14 credits~7 credits~5 credits~2 credits
Cloud Tasks1 messageNot availableNot available~25 creditsNot available
Code Review1 pull requestNot availableNot available~25 creditsNot available
Image generation1 image (1024px x 1024px)~5-6 credits~5-6 credits~5-6 credits~5-6 credits
Image generation1 image (1024px x 1536px)~7-8 credits~7-8 credits~7-8 credits~7-8 credits

说明:

Speed configurations 会增加所有适用模型的 credit consumption。Fast mode 对支持模型按更高倍率消耗 credits。支持模型和倍率见:

https://developers.openai.com/codex/speed

更多 credits 说明:

什么算 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。

On this page