PulseAugur
中
实时 10:13:40

OpenAI, Anthropic token reporting differs, causing cost confusion

OpenAI 和 Anthropic 在报告 token 用量方面存在差异,尤其是在缓存 token 方面。OpenAI 将缓存 token 计入其总 `prompt_tokens` 中,`cached_tokens` 表示缓存命中次数。相比之下,Anthropic 将缓存 token 单独列出,报告为 `cache_read_input_tokens` 和 `cache_creation_input_tokens`,而 `input_tokens` 只反映新的、非缓存的输入。如果处理不当,这种差异可能导致显著的低估或高估费用。文章提出了一种标准化的 `Tokens` 数据结构,以统一两个提供商的使用报告,确保准确的费用计算。 AI

影响 开发者必须调整其成本跟踪脚本,以适应 OpenAI 和 Anthropic 之间不同的 token 用量报告方式,避免账单错误。

排序理由 该条目解释了两个主要 AI 提供商如何报告 token 用量的技术细节,并为开发者提供了标准化此报告以进行成本管理的解决方案。

在 dev.to — LLM tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

OpenAI, Anthropic token reporting differs, causing cost confusion

本文如何被排名

Signal score
30 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
该条目解释了两个主要 AI 提供商如何报告 token 用量的技术细节,并为开发者提供了标准化此报告以进行成本管理的解决方案。
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
infra
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
Breaking (< 6h)
Fresh story with cross-source coverage still developing. Ranking may shift as more sources report.

完整方法见我们的编辑标准。

报道来源 [1]

  1. dev.to — LLM tag TIER_1 English(EN) · uncoil ·

    OpenAI 和 Anthropic 以相反的方式计算缓存的 token

    <p>Send the same 2,048-token prompt to OpenAI and to Anthropic, with most of it served from the prompt cache, and look at the usage objects that come back:<br /> </p> <div class="highlight js-code-highlight"> <pre class="highlight plaintext"><code>OpenAI prompt_tokens = 2048 (pro…