Cloudflare billing guides
Browse billing risks, cost limits, and troubleshooting experience by product.
308 guides
FlareCost: Cloudflare Workers memory limit
FlareCost’s workers-memory page (reviewed 2026-11-02) is checked against the official Cloudflare pricing pages listed under Sources. Free plan: 128 MB. Paid plan: 128 MB. Exceeding memory returns error 1102. Buffering a response that will not fit can also raise `Memory limit would be exceeded before EOF`. Memory is not a separate line on the Workers bill. Durable Object duration is the meter that prices an allocation, and that allocation is also described as 128 MB.
FlareCost: How many Workers an account can have on Cloudflare
FlareCost’s workers-script-count page (reviewed 2026-11-02) is checked against the official Cloudflare pricing pages listed under Sources. Free plan: 100 scripts. Paid plan: 500 scripts. The Paid number is the account script limit cited from the Workers limits table. The $5 plan is not charged per script.
FlareCost: Cloudflare Worker script size
FlareCost’s workers-script-size page (reviewed 2026-11-02) is checked against the official Cloudflare pricing pages listed under Sources. Free plan: 64 MiB uncompressed. There is no compressed-size limit. Paid plan: 64 MiB uncompressed. Wrangler's `Total Upload` figure is the uncompressed size that counts. Large bundles also push against the 1 second startup limit. Script size is not billed. Move assets to KV, R2, D1, or static assets instead of bundling them.
FlareCost: Cloudflare Worker startup time
FlareCost’s workers-startup-time page (reviewed 2026-11-02) is checked against the official Cloudflare pricing pages listed under Sources. Free plan: 1 second. Paid plan: 1 second. A failed deploy can report `Script startup exceeded CPU time limit` (error 10021). Wrangler writes a CPU profile when that happens. Startup is a limit, not a monthly CPU charge.
antig3n/llm-gateway-cost-guard: a Worker that enforces a per-licence monthly LLM cost cap under concurrency
The MIT-licensed repository antig3n/llm-gateway-cost-guard is a Cloudflare Worker that sits between a paid product and an LLM provider and is described as guaranteeing that no customer licence can spend more than its monthly cap, even under heavy concurrency. The README says a naive “read balance, call model, write cost” loop overspends as soon as two requests interleave, and that 29 tests include a concurrency check: 25 parallel requests against a cap that fits only 4, with 4 admitted and 21 refused. This tool caps the author’s own LLM provider spend, not Cloudflare’s product invoice. Reviewed from the public README on 2026-11-19.
sean1093/purse-strings: in-process LLM spend budgets, with optional Durable Objects or KV stores
The MIT-licensed TypeScript library purse-strings (sean1093/purse-strings) is described as a denial-of-wallet guard for apps that call LLM APIs: per-user, per-session and global token, cost and request budgets, plus step, tool-call and time limits for agent loops. It has zero runtime dependencies and can keep counters in memory, Firestore, or Cloudflare Durable Objects or Workers KV. The README warns that with multiple process replicas, each replica enforces the limit, so the effective limit is N times the configured value unless a shared store is used, and that a Durable Objects or KV store is what a hard limit needs. Reviewed from the public README on 2026-11-19. Example figures in the docs include a user-daily cap of costUsd: 1 and a fleet-daily cap of costUsd: 200.
DavidJKTofan/cf-billing-usage-analytics: GraphQL usage alerts, with an explicit “not billing data” warning
The public repository DavidJKTofan/cf-billing-usage-analytics is an educational/demo Workers and Workflows project that monitors Cloudflare usage against contract limits and can send Discord webhook alerts. The README’s main warning, quoted from Cloudflare docs, is that the GraphQL Analytics API’s sampled datasets should NOT be used as a measure for usage that Cloudflare uses for billing purposes. The project is marked “not affiliated with Cloudflare” and “use at your own risk.” A licence file was not confirmed in the README text reviewed on 2026-11-19, so this guide only summarises the public README and does not archive it.
Cloudflare Images pricing: Free includes 5,000 unique transformations a month, then error 9422 with no charge
The Cloudflare Images pricing page (last updated 19 October 2026; read back on 2026-11-22) states that every account starts on Images Free, which includes transformations for images stored outside of Images, such as in R2. On Free, you can request up to 5,000 unique transformations each month at no charge. After that, cached transformations continue to be served, new ones return error 9422, and exceeding the Free limit is not billed. To go beyond 5,000 unique transformations a month, purchase Images Paid. Images Stored and Images Delivered apply only on the Paid plan. This official page does not discuss payment methods, or whether foreground segmentation and AI upscaling are included in the free 5,000.
Independent. Unofficial. Source-first.