
## GPT-4o 系价表怎么读:输入输出缓存三列
作为 OpenAI 官方 API 计费对照站,www.openaicn.cn 直接帮你读懂 GPT-4o 系的定价表。输入输出缓存三列是核心:输入(Input)分为缓存命中(Cached input)和未命中(Input);输出(Output)固定不变;缓存(Cache writes)是额外一列,用于管理 Token 缓存。
谁适用?
如果你是开发者、App 团队或企业用户,用 GPT-4o 做长对话、代码编辑、知识库问答、RAG(检索增强生成),且重复 Prompt 超过 1024 Token,就必须启用 Prompt Caching。Batch API 场景下还能再打 50% 折扣。决策公式:先看你的 Prompt 是否可复用(相同前缀),再查官方挂牌页当天数据。ChatGPT Plus 订阅仅限个人聊天,无 API 缓存;ChatGPT API 才支持官方计费与三列规则。错过缓存或缓存无效,会多花 50% 成本。
核心概念与术语
- Input(输入):你发给模型的 Prompt tokens(缓存前先写入)。
- Cached input(缓存输入):Prompt 已计算过的前缀,系统自动命中后只收一半价格。
- Output(输出):模型生成的 Response tokens,固定价格。
- Cache writes(缓存写入):API 管理缓存的额外开销(新模型已合并入 Input,通常不单独展示)。
- $/M tokens(每百万 Token):标准计费单位。
- Cache Hit:相同前缀命中,成本降低;Cache Miss:首次或前缀不同,全价。
OpenAI 从 2024 年底开始自动为 GPT-4o 系列模型启用 Prompt Caching,无需手动设置,长 Prompt 自动优化。
决策表:GPT-4o 系输入输出缓存三列对照(官方标准价)
| 场景 | Input($/M) | Cached input($/M) | Output($/M) | 适用条件 | 折扣效果 |
|---|---|---|---|---|---|
| 标准 / Cache Miss | 2.50 | - | 10.00 | 首次 Prompt 或短对话 | 无 |
| Cache Hit | 2.50 | 1.25 | 10.00 | 重复 Prompt(如代码库编辑) | 50% 节省 |
| Batch API | 1.25 | - | 5.00 | 高并发批量处理 | 50% 额外折扣 |
| Fine-tuning | 3.75 | 1.875 | 15.00 | 微调任务 | - |
数据来源于 OpenAI 官方定价页(https://openai.com/api/pricing 及 https://developers.openai.com/api/docs/pricing),以当日挂牌为准。GPT-4o 上下文窗口 128K Token,支持多模态(文本+图像+音频)。
小贴士:开发者常用工具如 https://www.grokcode.cn/tools/token-cost 可在线估算你的 Prompt Token 数量,再套用以上公式。
实操清单:分步可核对你的计费
1. 登录 OpenAI Platform:https://platform.openai.com
2. 查看 Billing Dashboard:输入、输出、缓存命中率实时显示。
3. 启用 Caching:API 调用时 Prompt >1024 Token 自动生效,无需改代码。
4. 计算公式(复制到表格验证):
- 缓存命中单条请求成本 = (缓存前缀长度 × 1.25 + 非缓存长度 × 2.50 + 输出长度 × 10.00) / 1000000
- Batch API:再乘以 0.5
5. 验证工具:用 https://www.grokcode.cn/tools/bill-reconcile 上传你的账单 CSV 对账。
6. 监控指标:缓存命中率 >80% = 有效优化;<30% = Prompt 结构需调整。
7. 对比 Plus 与 API:Plus 无限聊天,无缓存规则;API 计费清晰,三列一目了然。
站内路径:详细 GPT 计费对照见 官方 API 定价页;批量 API 折扣规则见 官方 API 文档;对账工具推荐 API 账单对账工具;Token 成本计算器见 Token 成本工具。
常见坑与风险边界
- 误判缓存:以为用了 Prompt Caching 其实没命中(Prompt 前缀不同)。
- ChatGPT Plus 假象:App 内聊天用 Plus,API 调用却按官方价收钱。
- Batch API 陷阱:只适合高流量场景,延迟敏感项目不适用。
- Fine-tuning 溢价:微调任务价格更高,需单独确认。
- 忽略缓存写入:新模型部分场景需额外关注。
非法律意见声明:以上信息基于 OpenAI 官方挂牌数据,仅供参考。实际对账以 OpenAI Platform 账单为准,建议保留所有 API 调用日志。
站内路径:相关工具与页面
- 官方 API 定价与模型详情:官方 API 定价页
- API 文档与高级计费:官方 API 文档
- API 账单对账工具:API 账单对账工具
- Token 成本在线估算:Token 成本工具
- GPT 整体指南:OpenAI API 指南
English summary
OpenAI's GPT-4o model pricing is structured with a three-column breakdown: Input (which splits into cached and non-cached rates), Output, and an optional Cache writes column for prompt management. As of August 2026, standard pricing stands at $2.50 per million input tokens for cache misses, $1.25 for hits, and $10.00 for output. This setup rewards developers who reuse prompt prefixes in applications like code editing or knowledge base queries. Batch API processing offers an additional 50% discount on both input and output. GPT-4o supports a 128K context window and is ideal for multimodal tasks involving text, images, and audio. On the OpenAI Platform dashboard, you can monitor cache hit rates in real time. Always cross-check the latest rates on official pages like openai.com/api/pricing, as they update frequently. This transparent structure helps teams avoid unexpected costs when switching between ChatGPT Plus subscriptions and the official API.
---
(全文约 2450 字符,去除空白后中文为主,符合品牌定位与对账需求)