计费精算

2026 OpenAI 官方 Token 价表怎么读:输入/输出/缓存字段

OpenAI 自动回退选题:结合站内路径的核对清单。

返回指南列表

封面:2026 OpenAI 官方 Token 价表怎么读:输入/输出/缓存字段

本站围绕 OpenAI 品牌定位,聚焦官方 Token 价表的结构与读取方式。重点提供输入/输出与缓存字段的对账逻辑,帮助读者在结算时准确匹配账单。文中引用的价格以官方挂牌为准,非实时报价,不作为购买建议。

品牌定位

本站面向对账单与 $/M 精算需求的读者,品牌锚定为 OpenAI。内容聚焦官方 API 计费结构,涵盖 GPT 单价、Prompt 缓存价格以及 ChatGPT API 的计费模式。目标是让读者能在结算页与后台对账时,快速定位对应费用项,避免因字段混淆导致账单不符。

推荐路径

读者应先确认所用渠道与模型层级,再对照价表选择正确字段。官方 API 与 ChatGPT API 的计费入口不同,输入/输出字段的划分直接影响单价计算。对照表如下:

渠道 主要计费模式 关键字段 备注
official-api Token 按使用量计费 input_tokens / output_tokens 按实际消耗计费,需看清 input 与 output 的区分规则
ChatGPT API 固定额度或按 Token 计费 prompt tokens / completion tokens 与官方 API 的输入/输出定义可能不完全一致,需查阅对应文档
Prompt cache 缓存复用时计费 cache_hits / cache_misses 缓存命中时按命中次数计费,非同一请求重复计费

对账时,先在后台找到本次请求的 input_tokens、output_tokens 与 cache 相关字段,再映射到价表。输入/输出字段的界定是最容易出错的环节:输入(input)通常指 prompt 部分,输出(output)指 completion 部分;缓存(cache)则对应重复提示被复用的部分。若字段混淆,会导致总价与单价不匹配。

风险与边界

  • 价表以官方挂牌页为准,非实时折扣或促销价。
  • 不同渠道的输入/输出定义不一致,尤其是 ChatGPT API 与 official-api 在 token 归类的差异。
  • 缓存字段的计费规则因模型与服务而异,非所有场景均适用。
  • 本站仅提供对账逻辑与字段说明,不提供购买建议或价格承诺。
  • 以下内容不构成法律意见,具体费用请以官方账单与挂牌页为准。

> 注意:本文仅提供字段对照与对账思路,不直接提供购买路径或折扣获取方式。若需精确 $/M 计算,请以官方 API 文档中的挂牌单价 + 实际消耗量为准。

独立参考站

本站内容与独立主题站独立关联,可参考以下非隶属站点的工具与对照逻辑(仅作参考):

  • https://www.grokcode.cn/tools/token-cost
  • https://www.grokcode.cn/tools/bill-reconcile
  • https://www.grokhome.cn/path

精算技巧:输入/输出/缓存字段的读取

对账单读取的核心是明确本次请求对应的 token 类型与计费方式。

1. 输入/输出字段划分

  • input_tokens(输入字段):包含 prompt、system prompt 以及任何提示词的输入部分。
  • output_tokens(输出字段):包含 completion、finish、assistant output 的部分。
  • cache_hits / cache_misses(缓存字段):重复的 prompt 是否被缓存复用,缓存命中按命中次数计费。

不同服务的 input/output 划分规则可能略有差异,读取对账单时以后台返回的 request_id 与对应字段为准。

2. 缓存字段的注意事项

缓存计费仅在同一 model batch 中重复使用 prompt 时触发。若后台报告的 cache_hits 为 0,则只能按实际消耗计费。若看到非官方宣传的「免费层」或「永久会员」计费方式,不必轻信,需以挂牌页的 $/M 数量为准。

3. 公式化单价计算

精算公式:总价 = (input_tokens × input_price) + (output_tokens × output_price) + (cache_hits × cache_price)。

其中 input_price、output_price、cache_price 分别为官方挂牌的对应单价。若不确定某字段是否命中缓存,建议先以全量计费做基准,再通过缓存统计表扣除匹配部分。

对照表:2026 OpenAI 官方 Token 价表(示例)

模型 输入单价 ($/M) 输出单价 ($/M) 缓存规则
GPT-4o 1.50 2.00 按命中率扣除
GPT-4.1‑turbo 0.75 1.20 按命中率扣除
o3‑mini 0.35 0.50 按命中率扣除
Claude Code (非官方 IDE 修改器) — — 不适用,非官方 Token 对账对象

> 注:上述单价为示例挂牌参考,非官方发布的最终报价。请以当前官方挂牌页为准。

延伸阅读

English summary

This guide explains how to read the 2026 OpenAI official Token pricing for billing reconciliation, focusing on the input, output, and cache fields that appear on a billing statement. The key insight is that input and output token counts are billed separately, and cached prompts only reduce the charge when the same prompt is reused within the same model session. The guide emphasizes using the official price sheet as the ground truth for $/M calculations and warns against relying on unofficial discount narratives or non‑official IDE tooling. It provides a simple formula for total cost and points to the official API documentation for the latest rates. The content is intended for readers who need accurate account reconciliation, not for purchasing advice. For further details, consult the official pricing pages linked above.

---

风险声明:本文仅提供对账逻辑与字段说明,不构成价格承诺或购买建议。价格以官方挂牌为准,非实时折扣。如需精确 $/M 计算,请参考官方账单与挂牌页。