
TL;DR
Cloudflare launched a single endpoint that returns account usage and cost per product in a FOCUS-aligned shape. For teams whose agents provision infrastructure, the dashboard is no longer the only way to see what a month costs.
Cloudflare shipped its Billable Usage API on August 3 as part of Agents Week, and the framing matters: "the dashboard is the right answer for humans. It's not the right answer for automation." The endpoint, live for all self-serve accounts, returns usage and cost for every usage-based product on the account in one call, in a schema that maps to the FinOps Open Cost and Usage Specification (FOCUS).
One endpoint, no pagination juggling, no per-product endpoints:
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/billable-usage \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"
It accepts an optional date range (?from=2026-02-01&to=2026-02-15) and requires an API token with the Billing Read permission. It covers Workers, R2, D1, Workers AI, Vectorize, Images, and Stream in a single response. Each row is one charge period for one product: ServiceName and ServiceFamilyName identify the product (for example "Workers Standard" under "Workers"), PricingQuantity and ConsumedUnit give usage in the billed unit of measure (GB-months, GB-seconds, requests), and ContractedCost gives what the period cost. CumulatedPricingQuantity and CumulatedContractedCost carry running totals for the billing period, and ZoneId/ZoneName appear when usage attributes to a zone.
Cloudflare's own table shows most fields mapping exactly to FOCUS columns: BillingCurrency, BillingPeriodStart, ChargePeriodStart/ChargePeriodEnd, ServiceName, ConsumedQuantity, PricingQuantity, and ContractedCost all match by name and semantics. ServiceFamilyName maps approximately to FOCUS ServiceCategory, and the zone fields sit near ResourceId/ResourceName.
That is a deliberate bet. FOCUS is the FinOps Foundation's attempt to standardize cloud billing data across providers, and it is young enough that most vendors still ship proprietary schemas. By adopting its column semantics from day one, Cloudflare makes the data drop straight into existing FinOps pipelines: the blog post explicitly demonstrates wiring it into Vantage, and any tool that already ingests FOCUS from AWS or GCP can treat Cloudflare rows as just another provider. For a developer, that removes the "export, transform, load into our own table" step entirely.
The API also closes the loop on the Agents Week premise. This is the same week Cloudflare previewed @cloudflare/computer, an agent runtime that provisions infrastructure on your behalf. An agent that can create Workers, databases, and Vectorize indexes can also create spend without a human noticing. A programmatic usage endpoint is the missing control surface: guardrails and budgets only work when they can read the meter. Vercel's AI Gateway spend budgets solve the same problem one layer up, at model-call granularity; this one sits at the account level.
From the archive
Aug 4, 2026 • 7 min read
Aug 4, 2026 • 7 min read
Aug 3, 2026 • 7 min read
Aug 3, 2026 • 6 min read
Three caveats matter for planning around it. First, data is updated daily for now, with realtime "in the works" - fine for monthly reconciliation, not for alerting on a runaway agent within the hour. Second, it is self-serve accounts only; Enterprise contract billing is explicitly still to come, which is where most large spend actually lives. Third, CumulatedContractedCost gives you a snapshot of where the billing cycle stands, but forecasting is listed as future work, not a current feature.
The pattern here is bigger than Cloudflare: usage data as a first-class, machine-readable API is becoming table stakes for agent infrastructure. When a program spends money on your behalf, a human-shaped dashboard is no longer an acceptable accounting system. Teams building agents on Cloudflare now have a one-line curl that drops spend into their FinOps toolchain; teams building elsewhere should be asking their providers the same question. If the answer is "export the CSV from the dashboard," the platform is behind on the problem its own agents create.
For teams with existing cost discipline, this is worth wiring up early: the cost-per-task thinking that separates viable agent products from expensive demos depends on exactly this kind of per-product signal, and token-price comparisons miss most of the bill if storage and compute usage are invisible.
Read next
AI Gateway spend budgets now scope to teams and projects, with hard dollar limits that reject requests, email alerts at 50/75/100%, and CLI-managed defaults. Here is how the three scopes compose and where it fits your cost stack.
5 min readAI coding agents have crossed from demo to daily workflow. The next bottleneck is not demand. It is cost attribution, budget gates, and workflow design that keeps agent fleets from turning useful work into surprise spend.
8 min readCloudflare's Agents Week opens with @cloudflare/computer, an open-source agent runtime where an SQLite-backed workspace gives every agent a shared filesystem and lets the model pick between fast isolates and full Linux containers per task. The bet: containers for under 10% of agent work.
7 min readTechnical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
CDN, DNS, DDoS protection, and edge computing. Free tier handles most needs. This site uses Cloudflare for DNS and analy...
View ToolOpen-source terminal coding agent from Moonshot AI. Powered by Kimi K2.5 (1T params, 32B active). 256K context window. A...
View ToolConfigure Claude Code for maximum productivity -- CLAUDE.md, sub-agents, MCP servers, and autonomous workflows.
AI AgentsWhat MCP servers are, how they work, and how to build your own in 5 minutes.
AI AgentsA complete, citation-backed Claude Code course with setup, prompting systems, MCP, CI, security, cost controls, and capstone workflows.
ai-development
AI Gateway spend budgets now scope to teams and projects, with hard dollar limits that reject requests, email alerts at...

AI coding agents have crossed from demo to daily workflow. The next bottleneck is not demand. It is cost attribution, bu...

Cloudflare's Agents Week opens with @cloudflare/computer, an open-source agent runtime where an SQLite-backed workspace...

The "Building abundant intelligence" essay carries real engineering numbers: GPT-5.6 Sol cut serving costs 20%, speculat...

Comparing LLMs by token pricing alone can lead you to choose worse, more expensive models. Cost per task tells the real...

Cloudflare published the serving playbook behind Workers AI running Moonshot Kimi K2.6 and Zhipu GLM 5.2: FP8 KV caches...

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.