billflare.

AI Spend Control Course: putting AI Gateway spend limits in front of Workers AI

jamesqquick/ai-spend-control-course is a small support-copilot lab: the starter calls Workers AI directly, and the solution routes requests through AI Gateway with server-side team metadata, a Dynamic Route and a spend limit for one team, configured in the Cloudflare dashboard.

Products
Workers AIAI Gateway
Source
Community resourceGitHub
Author
jamesqquick

Key points

  • The course path: send a prompt and inspect the direct Workers AI request; add AI Gateway between the Worker and the model; attach trusted team, user_id and session_id metadata on the server; route requests with a Dynamic Route; add a spend limit for the 'interns' team and compare personas.
  • The README says gateway policies and spend limits are configured in the Cloudflare dashboard, and suggests putting a deployed copy behind Cloudflare Access.
  • Cloudflare's AI Gateway spend limits page (read 2026-11-13, marked Beta) describes cost-based budgets on a gateway, scoping by dimensions and per-user limits.

Original sources

  1. Undated

    AI Spend Control Course: putting AI Gateway spend limits in front of Workers AI

    Open original source

    jamesqquick/ai-spend-control-course is a small support-copilot lab: the starter calls Workers AI directly, and the solution routes requests through AI Gateway with server-side team metadata, a Dynamic Route and a spend limit for one team, configured in the Cloudflare dashboard.

Other

mateuspainhob17: charged $4.88 for a feature no longer in use, for a second month, and opened a ticket.

Cloudflare Community user mateuspainhob17 (toasty.pet) says a failed invoice email arrived for a $4.88 charge. The author says the same charge also occurred the previous month, and that the feature was then deactivated, but the $4.88 charge appeared again even though the feature is not being used. The post does not name the feature. Community MVP sjr asked which feature it was and pointed the author to the billing-ticket guide. The author later said a ticket had been created and asked what to do next; sjr said to wait for a reply on the ticket. There is no Cloudflare staff reply on the public thread, and no ticket outcome is reported.

Community resourceWorkers AI +1

ClaudeBar’s Cloudflare AI provider: Workers AI neurons and overage in the menu bar

The open-source macOS menu bar app ClaudeBar added a Cloudflare AI provider that shows today’s Workers AI neurons against the free daily allocation, an estimated Workers Paid overage, AI Gateway tokens and the last invoice, using a read-only API token.

Author experienceWorkers +3

fantuantalk: apply for Cloudflare for Startups $10,000 credits while bootstrapped

@fantuantalk’s X article walks through applying to Cloudflare for Startups as a self-funded builder: $10,000 / $100,000 / $350,000 credit tiers, one-year non-cash credits usable on Workers/R2/D1/Workers AI (with product-specific caps; AI Gateway not covered), form steps, and a note that a payment method is still required so overages or ineligible charges can bill.