Home / patterns

AI features anyone can use to run up your bill (unbounded consumption)

A stressed young founder at a kitchen table at night holding his head while looking at a laptop showing a blurred line chart rising steeply, a phone with a blurred notification, a paper bill and a mug of tea beside him, no brand logos
Quick answer: Every message to an AI feature costs you money, and many vibe-coded apps let anyone send as many requests, as long as they like, to the most expensive model, with no spending cap at the provider. OWASP’s Top 10 for LLM applications calls this Unbounded Consumption (LLM10:2025), including “denial of wallet”: someone floods your AI endpoint and the bill lands on you. OWASP’s API Security Top 10 adds the same lesson for paid third-party calls such as SMS and email. The fix is layered limits: who can call it, how often, how big each request can be, how long it can run and how much you can spend.

Last updated November 14, 2026

Steps

  1. List every endpoint that calls a paid AI model or paid service (chat, summarize, image generation, embeddings, SMS or email sends), including ones used by your own frontend.
  2. Require sign-in for AI features where you can, and keep public demos on a cheaper model with tight limits.
  3. Add per-user and per-IP rate limits and daily quotas on each of those endpoints, enforced on the server.
  4. Cap request size: maximum characters or tokens in the input, maximum file size, maximum number of items per batch, and a maximum output length on every model call.
  5. Set timeouts on model calls and stop runaway loops in agents (a maximum number of tool calls or steps per request).
  6. Turn on spending limits and budget alerts in each provider’s billing settings; where a hard limit isn’t available, set alerts at a level you’d want to hear about.
  7. Log usage per user and watch for spikes, so you can block an abusive account quickly.
  8. Retest: as a signed-out user and as a normal user, send repeated and oversized requests to your own app and confirm the limits kick in.

Why it matters

OWASP describes attackers sending high volumes of requests, oversized inputs or deliberately expensive queries to exhaust resources or run up costs on pay-per-use AI services. In OWASP’s API Security Top 10, one scenario is a forgot-password flow that sends a paid SMS on each request; a script calls it tens of thousands of times and the company is billed for every message. OWASP’s fixes include input size limits, rate limiting and user quotas, timeouts and throttling, monitoring, and spending limits or billing alerts for every provider. This page is for checking and fixing your own app.

Sources

OWASP Gen AI Security Project: LLM10:2025 Unbounded Consumption — https://genai.owasp.org/llmrisk/llm102025-unbounded-consumption/

OWASP API Security Top 10: API4:2023 Unrestricted Resource Consumption — https://owasp.org/API-Security/editions/2023/en/0xa4-unrestricted-resource-consumption/

Checked at the source on November 14, 2026.

Related patterns

Found a problem you'd rather not fix yourself?

Tell us what's wrong. A StorenTech engineer reviews your app and replies with a fixed quote, so you know the cost before any work starts.

Get it fixed by StorenTech

Vibe Security Weekly

One email a week with new failure patterns and how to fix them.

By joining you agree we may email you this newsletter. See our privacy policy. Free. Unsubscribe anytime. We'll never sell your email.