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
Published
Billable Usage API
Open original sourceCloudflare introduces an API that returns a self-serve account’s usage and cost by product and service period, currently updated daily.
More to read
Feng Yi: AI cost weekly|11/20; watching the model unit price is not enough—first split costs across requests, CPU, tokens, writes, and retries
On 2026-11-20, X user @Michael_liyang (Feng Yi) published "AI cost weekly|11/20". The conclusion is that watching the model unit price is not enough—first split costs across requests, CPU, tokens, writes, and retries. Figures the author checked this week: creating a D1 table is rows_written=2, and inserting 1 row is rows_written=1; the Workers free tier is 100,000 requests/day; the D1 free tier is 5,000,000 row reads/100,000 row writes per day; R2 egress is 0 美元. Suggested ledger fields: requests / rows_written / cpu_ms / input_tokens / output_tokens / retry_rate / cost_per_success. The author cautions: a free quota is not 0 cost.
Duncan (@ephraimduncan): card charged $1,264 while $7,032 in Cloudflare startup credits remained.
Duncan (@ephraimduncan) asks who to contact after Cloudflare charged the card $1,264 while $7,032 in startup credits were still available. Cloudflare social media manager Val Vesa replies that it is probably a glitch, asks for a private message with the account email and a billing ticket number so it can be escalated internally and fixed; Cloudflare developer advocate Harshil asks for a DM with details to forward to the team. The author replies that the details are being sent.
转转啊: the Workers spending-limit control is buried under Manage account → Billing → Spend Management
转转啊 (@zhuanzhuana) found that a Workers spending limit can be set under Manage account → Billing → Spend Management, called the path easy to miss, and warned that without a limit a flood of traffic could run up a bill unnoticed.