# AI Gateway - Control AI costs with spend limits

Publisher-attributed story with a reviewed brief or permitted publisher paragraph. The original publisher is responsible for the linked reporting.

- Publisher: Cloudflare Developers
- Category: AI
- Original publication time: 2026-06-05T00:00:00Z
- First observed by NexusTechWire: 2026-10-01T15:54:34Z
- Original source: https://developers.cloudflare.com/changelog/post/2026-06-05-spend-limits/
- NexusTechWire record: https://nexustechwire.com/news/news-5361c3a4dcc264479cc5

## From the publisher

AI Gateway now supports spend limits — cost-based budgets that track cumulative dollar spend and block requests when the budget is exceeded. Unlike rate limiting, which caps the number of requests, spend limits track actual cost based on token usage and model pricing. You can scope limits by model, provider, or custom metadata dimensions. For example, give each user a $200/day budget, cap total gateway spend at $10,000/day, or limit a specific model to $50/day per user. Each rule uses a configurable time window with fixed or sliding enforcement. Spend limits work with both Unified Billing and BYOK requests for models with known pricing. For more details, refer to the Spend limits documentation.

Source license: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Publisher excerpt shortened and converted to plain text. Original source license applies.

Read the full original: [Cloudflare Developers](https://developers.cloudflare.com/changelog/post/2026-06-05-spend-limits/)

This record does not reproduce the complete article or represent independent confirmation of every source claim.
