这是制药行业公司 ArisGlobal 的实战省钱案例,核心思路很简单:把所有请求共用的那段长提示词缓存起来,输入费用直接砍半,每月推理账单省了 40%。如果你的应用也是固定系统提示词加变化文档的结构,照抄这套做法就能降本。
#prompt caching
如果你在 Bedrock 上跑开源模型,这篇能直接省钱:教你怎么用隐式和显式两种缓存,还给了 OpenCode 编程智能体的实战例子,重复上下文不再重复计费。
The economics of agents are decided on the input side, not the output side, so cache discounts now shape which models are viable for long-running workflows. Builders choosing between Anthropic and Google DeepMind for agent deployments can use the session data to estimate real token spend before committing. The caching walkthrough with live sessions doubles as a practical cost-optimisation reference.
Threads cut upload overhead and latency for long-running agents, but they are not a cost-saving feature: billable tokens are identical and caching still has to be configured separately. Developers building computer-use or document-heavy agents benefit most, since screenshots and files no longer need re-uploading every turn. Teams with strict data retention or HIPAA requirements should hold off, and batch processing is not yet supported.
The non-obvious takeaway is that caching bugs produce no errors at all — teams simply pay more per token while assuming caching works. Platform and backend engineers running agent workloads on OpenAI, Anthropic or other provider APIs can run CACHELINT on their own repos before costs accumulate. As an academic tool study with no pricing or regional availability angle, its closest comparison is other static-analysis approaches like CodeQL-based linting, which CACHELINT extends with provider-aware precondition checks.
Longer cache windows change the economics of always-on agents, since hourly or daily recurring calls can now hit cached-input pricing instead of full-price tokens. Teams building background assistants or scheduled workflows on the OpenAI API should re-check their token spend, as cost drops apply to any workload with repeated shared context.
Cloudflare 把代码审查 AI 的账单砍掉 68%,靠的是 prompt caching 加模型路由,省钱思路可以直接抄。
Claude Code 新增空闲压缩,缓存过期前自动帮你 compact,隔一小时回来继续用能省不少 token 费,不想用可在 settings.json 里关掉。
SambaNova给MiniMax M3加了缓存功能,还分享了SN50的ROI数据,想知道AI基建圈最新动态的可以看看。
OpenAI 给 GPT-6 的 API 上线了更好的提示词缓存,默认命中率更高,缓存输入最高打一折,跑智能体的成本和延迟都能降下来。
OpenAI 出了个提示词缓存的调优教程,教你设 cache breakpoints、调 reasoning effort 还不丢缓存,做应用的开发者可以直接抄作业。
OpenAI 给 GPT-6 的提示词缓存加了诊断工具和手动断点,写长上下文应用的人能直接省 token 费用,还能自己控制缓存边界。
OpenAI 把 GPT-6 Astra 的能力塞进了更便宜更快的 Sol 和 Luna,缓存读取打 1 折,API 价格比 GPT-5.6 还低一半。
装了之后敲一下 /cache-stats,缓存命中率和 token 成本一目了然,调提示词时省事多了。
Fireworks AI 搞了个 Nexus,能自动把简单活儿丢给开源模型省钱,难的留给前沿模型,还能缓存提示省 token,集中管预算权限,团队省心省力。
LangChain 新成员 Alex 手把手教你给 Deep Agents 加缓存,省下一半 API 钱,实用技巧别错过。
Anthropic 坦诚承认这是小幅升级,但诚实性改进和对话中系统消息功能对做长对话应用或智能体开发的团队很实用,建议关注缓存优化带来的成本节省。
Claude API 重度用户终于能看清缓存失效的代价了——直接定位提示变化点并计算 token 浪费,做提示工程优化的团队建议立刻试试。