AI Gateway - AI Gateway custom costs support cache tokens
Cloudflare AI Gateway changelog published AI Gateway - AI Gateway custom costs support cache tokens. AI Gateway custom costs now support cache-read and cache-write token rates. This lets custom cost metrics reflect negotiated cache pricing across providers. Add per cache read token or per cache write token to the cf-aig-custom-cost header: { "per token in"…
Why this signal matters
Cloudflare AI Gateway changelog published AI Gateway - AI Gateway custom costs support cache tokens. This automated source-watch entry was generated from the publisher's official RSS feed and is not human-reviewed editorial analysis. Source excerpt: AI Gateway custom costs now support cache-read and cache-write token rates. This lets custom cost metrics reflect negotiated cache pricing across providers. Add per cache read token or per cache write token to the cf-aig-custom-cost header: { "per token in" : 0.000001 , "per token out" : 0.000002 , "per cache read token" : 0.0000001 , "per cache write token" : 0.0000005 } Cache-token pricing activates when either cache rate is present. An omitted cache rate defaults to per token in . If both cache rates are omitted, AI Gateway preserves the existing input and output calculation. Providers can include cache tokens within input tokens or report them separately. AI Gateway automatically accounts for these differences and prevents double-counting. For more information, refer to Custom costs .
Actionable summary
Treat AI Gateway - AI Gateway custom costs support cache tokens as an official publication signal. Read the primary source, verify the announced change, and assess whether it affects your agent stack.
- Agent usefulness
- 75/100
- Confidence
- 90%
- Canonical data
- JSON + Markdown
What builders should check
- Read the original Cloudflare AI Gateway changelog article before relying on this summary.
- Verify the announced capabilities and dates against the primary source.
- Assess whether the change affects your agent stack or evaluation plan.