OpenRouter 官方博客·· 5 天前AI 评分58
OpenRouter 实测如何降低 AI Agent 的 token 消耗
How to Reduce Token Usage in AI Agents (Measured)
AI 导读
OpenRouter 用一段 40 步编码会话在六种上下文设置下重放,实测 Agent 的 token 消耗与成本。系统提示词顶部加时间戳会让缓存命中率从 95% 降到 0,同一会话成本从 $0.084 涨到 $0.658;工具结果只在写入历史时截断一次最省钱,为 $0.054,输入 token 减少 36% 且 95% 仍走缓存。
来源:OpenRouter 官方博客 · openrouter.ai