{"type":"root","children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"这篇解决什么问题"}]},{"type":"text","value":"：把你付给上游供应商的价格录进 Tare，让成本归因能算出来。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"进价"}]},{"type":"text","value":"是你付给上游供应商的价格。它不参与向你收费：自有渠道的 token 本来就由你直接付给供应商；它决定的是"},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"成本归因能否算出来"}]},{"type":"text","value":"。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"进价只用于成本归因，跟调用许可无关。不录进价通常不影响调用，但会让成本列为空。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"什么时候需要录进价"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"记账的优先级："}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ol","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"上游回包里报告的真实成本"}]},{"type":"text","value":"（每次调用的真实值）。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"上游不报告成本时，才回落到你在这里录入的进价。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"也就是说："}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"上游每次回包都带真实成本："},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"完全不使用进价表"}]},{"type":"text","value":"，不录任何一行也能拿到准确的归因数字。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"上游只回 token 数，不回费用：需要录进价。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"自建推理服务、部分中转、本地模型：通常需要录进价。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"img","properties":{"src":"diagram:cost-prices-need-cost","alt":"什么时候需要录进价：只有上游不报成本时才轮到它","data-block":"true"},"children":[]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"不录进价会发生什么"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"调用和计费都不受影响，受影响的是成本分析里的成本列。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"在 Analytics、Cost attribution 或 generation 查询里，你会看到某些调用有 token 数，但成本为空。系统只能告诉你："}]},{"type":"text","value":"\n"},{"type":"element","tagName":"pre","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"本月已知成本：¥1,234\n成本覆盖率：62%\n"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"覆盖率与金额一并给出。「本月成本 ¥1,234（覆盖 62%）」表示还有 38% 的调用没有成本数据。\n"},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"这些调用其实有成本，只是平台无从得知"}]},{"type":"text","value":"。用未覆盖全的数字计算毛利会偏乐观。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"img","properties":{"src":"diagram:cost-prices-coverage","alt":"不录进价会发生什么：覆盖率会把那 38% 指出来","data-block":"true"},"children":[]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"渠道页会列出缺进价的模型，同一份列表也是 "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GET /v1/providers/{id}/missing-costs"}]},{"type":"text","value":"。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"录入入口"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"控制台路径："}]},{"type":"text","value":"\n"},{"type":"element","tagName":"pre","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"Console → Tare → Channels → 展开某条渠道 → Cost prices\n"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Cost prices 表在渠道展开区域里，不是单独页面。因为进价一定属于某条上游渠道。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"字段怎么填"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"table","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"thead","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"字段"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"含义"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"注意"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Upstream model"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"上游认识的模型名"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"不是调用 Tare 时的模型名"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Input"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"输入 token 每百万价格"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"prompt/input 价格"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Output"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"输出 token 每百万价格"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"completion/output 价格"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Cache read"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"缓存读取每百万价格"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"不确定不要乱填"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Cache write"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"缓存写入每百万价格"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"不确定不要乱填"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"四个数值都是每百万 token"}]},{"type":"text","value":"，缓存读写价可选。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"例如供应商写："}]},{"type":"text","value":"\n"},{"type":"element","tagName":"pre","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"Input: $0.20 / 1M tokens\nOutput: $0.80 / 1M tokens\n"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"你就填："}]},{"type":"text","value":"\n"},{"type":"element","tagName":"pre","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"Input = 0.2\nOutput = 0.8\n"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"最容易填错的地方：模型名"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"Upstream model"}]},{"type":"text","value":" 必须填"},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"上游侧"}]},{"type":"text","value":"的模型名，不是调用 Tare 时用的名字。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"例子："}]},{"type":"text","value":"\n"},{"type":"element","tagName":"pre","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"调用方请求 model = GLM 5.1\nRouting 指向 openrouter-prod / z-ai/glm-5.1\nCost prices 也必须录 z-ai/glm-5.1\n"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"不要把 "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GLM 5.1"}]},{"type":"text","value":" 填到这条渠道的进价表里，除非这就是上游真实认识的名字。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"模型名填错通常不会报错。它只是永远匹配不上，该模型的成本恒为空。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"优先用 Channels 页的 Browse upstream models"}]},{"type":"text","value":"（"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GET /v1/providers/{id}/upstream-models"}]},{"type":"text","value":"），避免手工输入。拉到的模型列表是建议列表，不是白名单；私有模型、灰度模型、别名拉不到时，仍然可以手动填写。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"上游公布了价格时，浏览列表会按每 1M tokens 显示，币种就是上游报价的币种（OpenRouter 报美元），不做任何换算。如果你谈过别的价格，或者结算币种不同，加进来之后再逐行改。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"note"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"这个接口允许失败得很温和（上游不支持列目录、地址推不出来、key 只对 chat 有权限），都回 "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"200"}]},{"type":"text","value":" 带一句说明，不是错误码。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"阶梯价、按次计价和倍率"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"一口价表达不了的，在进价的 "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Edit"}]},{"type":"text","value":" 里设："}]},{"type":"text","value":"\n"},{"type":"element","tagName":"table","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"thead","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"设置"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"含义"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"条件规则"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"命中时换一套价。可以看输入长度（大于某个值、不超过某个上限）、时段（时区下的星期几和 "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"[起, 止)"}]},{"type":"text","value":"，止时不含；"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"止"}]},{"type":"text","value":" 必须晚于 "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"起"}]},{"type":"text","value":"，唯一例外是 "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"00:00"}]},{"type":"text","value":" 表示当天 24:00，跨午夜要拆成两段）和生效期。多条同时命中取优先级最高的。命中后"},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"整次调用"}]},{"type":"text","value":"按这条规则的价算，不是只算超出的部分。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"图片 / 音频价"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"输入或输出里图片、音频 token 的每百万价。不填就按普通输入、输出价算。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"按次"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"每次调用按固定美元收，不按 token。生图按张数乘。规则也可以切到按次，比如短输入一口价。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"倍率"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"请求头或请求体参数命中时把这次费用乘上一个数，例如 "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"anthropic-beta"}]},{"type":"text","value":" 含 "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"fast-mode"}]},{"type":"text","value":" ×6、"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"service_tier"}]},{"type":"text","value":" 等于 "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"priority"}]},{"type":"text","value":" ×2。也可以只按时段或生效期乘。多条命中连乘，工具费不乘。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"用量记录上会写这次按哪条规则、哪些倍率算的，例如 "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"long_context*fast-mode"}]},{"type":"text","value":"。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"空值和 0 的区别"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"在表单里，留空会按 "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"0"}]},{"type":"text","value":" 保存，并不会记成「未知」。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"这里有个坑："}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"供应商明确说某项免费：填 0 是对的。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"你不知道价格："},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"整条都不要录"}]},{"type":"text","value":"。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"缺一条进价，系统能用「覆盖率」提醒你；错误的 0 很难被发现，会把成本算低。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"保存、编辑、删除"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{},"children":[{"type":"text","value":"新增"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"在 Cost prices 表底部输入模型名和四个价格，点击 "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Save"}]},{"type":"text","value":"。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{},"children":[{"type":"text","value":"编辑"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"点击某一行的 "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Edit"}]},{"type":"text","value":"，修改后保存。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"保存已有模型名时是覆盖写。也就是说，如果你只想改 Input 价格，其他三项也要保持原值，不要清空。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{},"children":[{"type":"text","value":"删除"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"点击 "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Remove"}]},{"type":"text","value":" 删除某个模型的进价。删除后，后续匹配不到这条模型价格的调用会重新变成成本未知。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"批量导入供应商价目表"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Channels 页支持导入进价，读一张价目表：转发商发的按品牌折扣表截图，或你粘贴的价格表文本，不用一个模型一个模型手录。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"适合这些场景："}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"转发商给了按品牌折扣表。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"有一张价格截图。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"有一段价格表文本。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"模型很多，不想一行一行手填。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"工作方式："}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ol","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"选择要导入的供应商分组或全部渠道。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"选择一个你自己渠道上的多模态模型，用来解析图片或文本。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"上传截图或粘贴价格表。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Tare 把图片/文本发给你选择的模型，让它提取结构化价格。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Tare 和已有进价、参考价对比，展示差异。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"你确认后才写入。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"note"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"这一步复用的就是渠道页的 "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Chat"}]},{"type":"text","value":" 诊断接口：会消耗你选来解析的那条渠道的真实上游 token，但这次解析调用本身"},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"不计入 Tare 账单，也不会出现在 Call Traces 里"}]},{"type":"text","value":"，跟手动测试渠道是同一套规矩。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"批量导入不是「自动全信」。导入前必须看差异预览，尤其注意币种、单位、折扣倍率和缓存价格。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"进价没有生效期"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"平台"},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"只保存当前价格"}]},{"type":"text","value":"及其录入时间，不保存历史价格区间。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"改价之后，重新计算历史调用用的是新价格，不是当时的价格。这是"},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"按月对账"}]},{"type":"text","value":"的一个明确偏差来源。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"这意味着："}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"今天改价后，重新计算历史调用时会用新价格。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"之前没有价格的历史调用，被补记时也会使用当前价格。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"如果供应商中途调价，按月对账可能产生偏差。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"在支持生效期之前，建议这样做："}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ol","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"调价当天记录调价时间。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"对账时按调价日切分前后两段，两段分别核对。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"能使用上游回包真实成本的上游，优先使用真实成本，因为那条路径不受影响，每次调用记录的都是当次真实值。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"生效期支持暂无确定时间点。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"recorded_at"}]},{"type":"text","value":" 是什么"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"进价读接口返回 "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"recorded_at"}]},{"type":"text","value":"（ISO 8601，如 "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"2026-08-21T17:30:00"}]},{"type":"text","value":"），"},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"每次改价都会刷新"}]},{"type":"text","value":"。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"它表示「"},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"当前"}]},{"type":"text","value":"这个价是何时录入的」，不是记录的创建时间，也不是价格生效时间，更不是模型第一次出现的时间。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"用途是对账。进价没有生效期，补历史成本一律使用当前价格；有了这个字段，至少能判断某个月份对账时用的是哪一版价格。调价日之后录入的价格用于补调价日之前的调用，那段数字是偏的；没有这个字段时，报表上完全看不出来。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"历史数据该字段为 "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"null"}]}]},{"type":"text","value":"（这一列是后加的）。"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"null"}]},{"type":"text","value":" 表示录入时间未知，"},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"不要在你侧默认填成当天"}]},{"type":"text","value":"，那会让一段未核对的偏差看起来像已核对。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"自动补齐能做什么"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"平台有两类自动行为："}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"录入进价后补记已发生的调用。"}]},{"type":"text","value":" 此前无价的调用会被补上成本，不会因为补录进价而丢失这段历史。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"每小时读取一次上游价目表。"}]},{"type":"text","value":" 补齐你用过但未录价的模型。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"补记历史调用使用的是"},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"当前"}]},{"type":"text","value":"价格，不是调用发生当时的价格（见上文「进价没有生效期」）。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"自动读取的是供应商公布的挂牌价："}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"按供应商公布的币种，"},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"不做汇率换算"}]},{"type":"text","value":"。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"不一定包含你的合同折扣。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"永远不覆盖你手动填写的价格"}]},{"type":"text","value":"。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"所以如果你有合同价、折扣价或渠道特殊价格，应以手动录入为准。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"接口与控制台的关系"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"这些接口都使用控制台登录会话，不是推理 API key："}]},{"type":"text","value":"\n"},{"type":"element","tagName":"table","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"thead","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"操作"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"接口"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"读取进价"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GET /v1/providers/{id}/costs"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"保存进价"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"PUT /v1/providers/{id}/costs"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"删除进价"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"POST /v1/providers/{id}/costs/delete"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"查看缺进价模型"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GET /v1/providers/{id}/missing-costs"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"拉上游模型列表"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GET /v1/providers/{id}/upstream-models"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"SOP：给一条渠道补齐进价"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ol","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"打开 "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Channels"}]},{"type":"text","value":"。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"展开要配置的渠道。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"点击 "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Browse upstream models"}]},{"type":"text","value":"。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"从列表选择要使用的模型；如果拉不到，手动填写上游模型名。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"对照供应商价目表填写 Input、Output、Cache read、Cache write。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"不确定的模型不要录。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"保存后检查是否还存在 missing cost 提示。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"发一次真实请求。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"到 Analytics 或 generation 查询里确认成本不再为空。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"最小验收清单"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{"className":["contains-task-list"]},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{"className":["task-list-item"]},"children":[{"type":"element","tagName":"input","properties":{"type":"checkbox","checked":false,"disabled":true},"children":[]},{"type":"text","value":" "},{"type":"text","value":"已确认哪些上游会回包报告真实成本，哪些需要手动录进价。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{"className":["task-list-item"]},"children":[{"type":"element","tagName":"input","properties":{"type":"checkbox","checked":false,"disabled":true},"children":[]},{"type":"text","value":" "},{"type":"text","value":"每条要走流量的 BYOK 渠道，都录了对应上游模型名。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{"className":["task-list-item"]},"children":[{"type":"element","tagName":"input","properties":{"type":"checkbox","checked":false,"disabled":true},"children":[]},{"type":"text","value":" "},{"type":"text","value":"模型名使用的是上游名称，不是 Tare 对外模型名。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{"className":["task-list-item"]},"children":[{"type":"element","tagName":"input","properties":{"type":"checkbox","checked":false,"disabled":true},"children":[]},{"type":"text","value":" "},{"type":"text","value":"四个价格单位都是每百万 token。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{"className":["task-list-item"]},"children":[{"type":"element","tagName":"input","properties":{"type":"checkbox","checked":false,"disabled":true},"children":[]},{"type":"text","value":" "},{"type":"text","value":"未知价格没有填成 0。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{"className":["task-list-item"]},"children":[{"type":"element","tagName":"input","properties":{"type":"checkbox","checked":false,"disabled":true},"children":[]},{"type":"text","value":" "},{"type":"text","value":"改价时记录了调价日期，知道历史补算会使用当前价。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{"className":["task-list-item"]},"children":[{"type":"element","tagName":"input","properties":{"type":"checkbox","checked":false,"disabled":true},"children":[]},{"type":"text","value":" "},{"type":"text","value":"成本归因页面或 generation 查询中，目标调用成本不为空。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"下一步"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"这三篇是一条链，按顺序读："},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"接渠道 → 录进价 → 配路由"}]},{"type":"text","value":"。你现在做完了第二步。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"上一步：还没有渠道，先读 "},{"type":"element","tagName":"a","properties":{"href":"channels"},"children":[{"type":"text","value":"渠道"}]},{"type":"text","value":"。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"下一步：把对外模型名指向这条渠道，读 "},{"type":"element","tagName":"a","properties":{"href":"routing"},"children":[{"type":"text","value":"路由"}]},{"type":"text","value":"。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"想知道成本都花在哪：读 "},{"type":"element","tagName":"a","properties":{"href":"attribution"},"children":[{"type":"text","value":"成本归因"}]},{"type":"text","value":"。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"遇到不认识的词：翻 "},{"type":"element","tagName":"a","properties":{"href":"glossary"},"children":[{"type":"text","value":"术语表"}]},{"type":"text","value":"。"}]},{"type":"text","value":"\n"}]}]}