---
title: What is Denial of Wallet
source_page: https://www.sardine.ai/learn/denial-of-wallet
canonical: https://www.sardine.ai/learn/denial-of-wallet
format: text/markdown
---

**Quick links:** [Human page](https://www.sardine.ai/learn/denial-of-wallet) · [Home](https://www.sardine.ai) · [Customers](https://www.sardine.ai/customers) · [Blog](https://www.sardine.ai/blog) · [Demo](https://www.sardine.ai/demo)

---

# What is Denial of Wallet

**Read time:** 4

Denial of wallet is an attack that aims to drain a victim's budget by forcing their pay-per-use services, such as AI model calls, to run up costs. Instead of knocking a service offline, the attacker makes it so expensive to operate that the owner loses money or has to shut it down.
What is denial of wallet?
Many modern products, especially AI features, charge per use. Each chat, image, or document analysis triggers a model call that costs real money. A denial of wallet attack takes advantage of that by sending large volumes of expensive requests through a public or weakly protected feature.
It differs from a classic denial of service, where the goal is to take the service down. Here the service can keep running perfectly while the bill grows. The attacker may be a competitor, a hacktivist, a bored prankster, or someone who simply wants free access and does not care about the cost.
The risk is highest for features that are open to the public: free chatbots, sign-up-free demos, search boxes with AI summaries, and any endpoint that calls a model without strong limits per user.
How a denial of wallet attack works
The pattern is simple and scales easily:
Find — Spot a costly open feature. The attacker finds a public feature that triggers an expensive model call and has weak or no usage limits.
Craft — Make each request expensive. They design inputs that cause long outputs, large context, or repeated calls, so each request costs far more than a normal one.
Scale — Automate it. Scripts and many sessions send requests in parallel, often rotating addresses to avoid simple blocks.
Drain — Hit the budget. Costs climb until the budget is gone or the owner disables the feature, which is the attacker's goal.
Who is involved?
What it looks like in practice
A company launches a free AI assistant on its marketing site with no login. Someone writes a script that asks for very long, detailed answers on repeat, from rotating addresses.
Within a day the model bill has passed the monthly budget. The team has no per-user caps, so they pull the feature offline, and real prospects are left with a broken page.
Why it is dangerous for operators
Denial of wallet hits two things at once: cost and availability. Even if you survive the bill, shutting down the feature to stop the bleeding harms the product and the brand. And because the traffic is technically valid, firewalls and uptime tools often see nothing wrong.
It is also cheap for the attacker. A few scripts can cause costs far larger than what the attacker spends, which is the opposite of a fair fight. The best defense is built into the product design: limits per user, per session, and per day, set before launch.
What to watch in the data
Cost per request creeping up. Average tokens per request rising, with longer outputs and bigger inputs than normal.
Anonymous traffic surges. Large volumes from users with no account, no history, or throwaway sessions.
Rotating sources. Many addresses or devices behaving identically, a sign of automation designed to dodge simple blocks.
Repeated heavy prompts. The same long or looping request pattern across sessions.
Budget alarms firing early. Daily spend crossing thresholds that normally take a month to reach.
Quick questions
### How is it different from denial of service?
Denial of service tries to take a system down. Denial of wallet leaves it running and aims at the owner's budget. The service may look perfectly healthy while money drains away.
### Do I need to be a big company to be a target?
No. Any public pay-per-use feature is a candidate. Small teams are often more exposed because a modest bill can be a big problem for them.
### What is the best first control?
Hard limits: caps on tokens per request, requests per user, and spend per day, plus alerts that fire well before the budget is gone.
### Does requiring login help?
It helps, because it ties usage to an identity and enables per-user limits. But attackers can create accounts, so combine login with device and velocity checks.
### Can a bot challenge stop it?
It raises the cost for attackers and can help, but determined attackers may solve or bypass challenges. Treat it as one layer, not the whole answer.
### Should we shut the feature off?
Only as a last resort. Throttling, tighter limits, and requiring verification for heavy use usually protect the budget without removing the feature for everyone.
