VYPR
advisoryPublished Aug 3, 2026· 1 source

Cloudflare Launches Billable Usage API for Programmatic Cost Visibility

Cloudflare introduces a new Billable Usage API for self-serve accounts, enabling programmatic access to detailed cost and usage data across its services.

Cloudflare has announced the launch of its new Billable Usage API, designed to provide self-serve account holders with programmatic visibility into their cloud spending. This new API endpoint aims to address the growing need for automated cost management, particularly as "agents" increasingly write code, deploy services, and provision infrastructure on behalf of users. The dashboard, while useful for human oversight, is not suited for automated systems, prompting Cloudflare to offer a machine-readable solution.

The Billable Usage API consolidates usage and cost data from across Cloudflare's extensive product suite into a single endpoint. This includes services such as Workers, R2, D1, Workers AI, Vectorize, Images, and Stream. The data is broken down by product and service period, offering a granular view of consumption. Each row in the API response represents a distinct charge period for a specific product on the account, detailing metrics like service name, charge period start and end times, pricing quantity, consumed units, contracted cost, and cumulative totals. For users already engaged in FinOps practices, the API's column names and semantics are designed to align closely with the FinOps Open Cost and Usage Specification (FOCUS), facilitating integration with existing cost management tools.

While Cloudflare is not yet claiming full conformance with the FOCUS specification, this release marks a significant step towards that goal. The company acknowledges that some required columns are not yet present in the payload but states that achieving full conformance is on their roadmap. The immediate benefit for users is the ability to ingest Cloudflare cost data into their existing financial operations toolchains, alongside data from other major cloud providers like AWS, Azure, and Google Cloud, which also publish data in the FOCUS format.

To further enhance cost management capabilities, Cloudflare has partnered with Vantage, an infrastructure cost management platform. This integration allows Vantage to ingest Cloudflare's Billable Usage data daily, providing a unified view of costs across multiple providers. Users can leverage this integration for cross-provider allocation, anomaly detection through cost alerts, and querying cost data via natural language prompts through Vantage's AI-powered FinOps agent. This partnership aims to simplify the process of attributing Cloudflare spend to specific teams, services, or projects.

The motivation behind building the Billable Usage API stems from the evolving nature of cloud operations. As programmatic access to Cloudflare accounts becomes more common for tasks like deploying Workers or managing databases, the need for real-time, programmatic cost insights becomes critical. Finance teams can now pull spend data directly into their systems for accurate internal cost allocation, while developers can integrate cost monitoring into their scripts via simple HTTP calls. This eliminates the previous reliance on manual exports or screenshots.

Looking ahead, Cloudflare plans to enhance the API with finer-grained time windows for more real-time data breakdowns where applicable. The company also intends to introduce forecasting capabilities to help users predict future spending at both the account and product levels. Currently, the API is available only for self-serve accounts, but an equivalent experience for Enterprise contracts is under development.

The Billable Usage API is live today for all self-serve accounts. Users can obtain an API token with Billing Read permissions to access their current billing period's data. This release empowers organizations to better understand and manage their Cloudflare expenditures through automated processes and integrated financial tools.

This new API is a significant development for Cloudflare users focused on cost optimization and financial transparency within their cloud infrastructure. By providing structured, machine-readable cost data, Cloudflare is enabling more sophisticated FinOps practices and better integration with existing enterprise financial management systems.

Synthesized by Vypr AI