billflare.

Billable Usage API

Cloudflare introduces an API that returns a self-serve account’s usage and cost by product and service period, currently updated daily.

Products
Account-wide usage-based products
Source
Official docsCloudflare Blog
Author
Cloudflare

Key points

  • The post says the Billable Usage API is for self-serve accounts: one endpoint returns the account’s usage and cost broken down by product and service period, covering usage-based products including Workers, R2, D1, Workers AI, Vectorize, Images and Stream.
  • Cloudflare says usage and cost data are currently updated daily while it works towards more real-time data.
  • Each row is one charge period for one product and includes running totals for the billing period (CumulatedPricingQuantity and CumulatedContractedCost); most field names map to the FinOps FOCUS specification, without claiming full conformance yet.

Original sources

  1. Original source · Published

    Open original source
Community resourceWorkers +8

Cloudflare Medivh: a self-hosted near-real-time bill estimator

An open-source, self-hosted monitor that adds today’s estimated usage cost to Cloudflare’s daily-updated billable usage, sends summaries, and calls a webhook when the current cycle crosses a budget.

Durable Objects

Steven Menke: an Agents SDK bug and a reported $1,700 Durable Objects invoice.

Steven Menke (@Galorious_) reports that runaway Durable Objects caused by an Agents SDK bug produced a $1,700 invoice in three days, citing one trillion SQLite reads (a later post says writes). He says his support ticket, even after a maintainer escalated it, received no reply for months.

Official docsWorkers +1

Production profiling for Workers and Durable Objects: operation guide

Cloudflare explains how to locate expensive functions and memory allocations in deployed Workers and Durable Objects using on-demand profiles and flamegraphs.