Token fraud is when people use your AI product to run up model costs your pricing does not cover: farming free trials, reselling promo codes, or routing another product's requests through your app. Security people call the attack class "denial of wallet", and OWASP lists it under LLM10:2025 Unbounded Consumption. In November 2026, Claire Vo, the solo founder of ChatPRD, said it had cost her business tens of thousands of dollars over about a year. The fix is a set of limits in four places: the model provider, a gateway, your own code, and billing.
This guide lists the abuse patterns seen in the wild, works out how fast an open endpoint can burn money, compares the spend controls that OpenAI, Anthropic and Vercel AI Gateway offer today (and where each one leaks), and ends with a checklist you can run before you launch an AI feature or a free trial.
What token fraud looks like
Claire Vo described six recurring patterns at ChatPRD, a seat-priced AI product for product managers. The accounts were often valid. The problem was what they did with the access.
| Pattern | What happens | First control |
|---|---|---|
| Trial farming | Many accounts created, often by scripts, to use free access, usually on the most expensive model | Hard per-account and per-organization limits; no free trial, or a business-domain filter |
| Promo-code abuse | Partner or launch codes stolen, resold or mass-redeemed, sometimes to power other AI businesses | Single-use codes tied to an account; caps per code |
| Card abuse | Prepaid, stolen or cycled cards and chargebacks. ChatPRD woke up to about $200,000 of attempted purchases with bad cards (attempts, not losses) | Payment fraud rules (Stripe Radar), card fingerprinting across trials, charge upfront |
| Relays and resellers | Someone signs in through a browser and pipes another product's requests through your app, then sells the answers | Bot detection on chat routes, rate limits, firewall rules |
| Custom MCP abuse | A connected tool turns your agent into a worker that runs around the clock ("I'm never sleeping") | Allowlist of MCP hosts; reject free tunnels and hosts that do not belong to real companies |
| Model probing | Repeated questions about the model's identity and training cutoff | Treat as a signal to investigate, not proof of an attack |
Simon Willison, linking to the video on November 20, 2026, noted one common prompt in that traffic: SVGs of pelicans riding bicycles, a test people use to tell model families apart. Vo is winding down free trials entirely. In her account, fraud defence felt like 80 to 90% of the job for a while.
How fast an open endpoint burns money
The bill grows with requests times tokens times price, and an attacker controls the first two unless you do. An illustration with round numbers, not any provider's price list:
| Assumption | Value |
|---|---|
| Output price | $10 per million tokens |
| Maximum output you allow per request | 4,000 tokens |
| Worst-case cost per request | $0.04 |
| A script sending 10 requests a second | 36,000 requests an hour |
| Cost of one night (8 hours) | about $11,500 |
Three things follow. A request limit alone is not enough, because one request to an expensive model with a long output costs many times more than a short one; Vo's advice is to count dollars, not messages. Capping maximum tokens per request caps the worst case. And alerts that arrive the next morning are too late: she reviews spend at least hourly.
The four layers of defence
1. The model provider: a hard monthly limit
This is the backstop when everything else fails. Both large providers now support it, with caveats.
| Provider | Control | What happens at the limit | Watch out for |
|---|---|---|---|
| OpenAI | Monthly spend limit per organization or per project, with "Enforce a hard limit" switched on | Requests return HTTP 429 with project_spend_limit_exceeded or organization_spend_limit_exceeded | Spend alerts alone do not stop traffic. Enforcement is not instantaneous, so recorded spend can slightly exceed the limit |
| Anthropic | Monthly spend limit per workspace, plus per-model rate limits; API keys can be scoped to one workspace | Requests in that workspace stop at the limit | A limit on the Default Workspace might not count some usage (Console, Claude Code sign-ins); the organization limit always applies. Use a dedicated workspace for production |
| Vercel AI Gateway | Budgets per team, project, API key or user; they stack, and every budget in scope must have room | HTTP 402 with quota_for_entity_exceeded until the period resets or you raise it | Spend on your own provider keys (BYOK) is not counted in budgets, although an exceeded budget still blocks BYOK requests in its scope |
Give each environment and each feature its own project or workspace and key. A leaked key or a runaway job then hits a small limit instead of the whole company's.
2. A gateway: models and budgets you decide
Vo routes model calls through Vercel AI Gateway for two reasons: spend limits, and control over which models can be called. The second matters more than it sounds. If your code passes a model name from the client, an attacker can swap your cheap model for the most expensive one on the same endpoint. Vercel's model allowlist returns 403 for any model a team owner has not enabled, and new models start disabled. Whatever gateway you use (or none), keep a fixed list of allowed models in your server code and ignore model names sent by the client.
A gateway also gives you per-user budgets, which providers do not: Vercel's user scope caps what one team member's keys spend, and in your own app you can do the same per customer account.
3. Your application: limits per user, request and agent run
OWASP's list of mitigations for Unbounded Consumption starts here: input validation with size limits, rate limiting and user quotas, timeouts and throttling, limits on queued actions, and monitoring for unusual consumption. In practice:
- Maximum input and output tokens per request. Reject oversized inputs instead of truncating them silently.
- A daily cost budget per account, in dollars, tied to the plan the customer pays for.
- Step and time limits for agents. An agent loop with no cap on steps is an open tab.
- Bot checks on AI routes. A valid login does not prove the request came from your interface; ChatPRD added Vercel BotID to its chat route.
- Rate limits and firewall rules by IP, and where your business can accept it, by country or VPN. Vo reports that country blocks cut fraud significantly and also locked out legitimate users.
- Limits on connected tools. Allow MCP servers only from hosts you trust.
- A kill switch (a feature flag) that turns off a vulnerable path in minutes.
Vo also describes downgrading suspected abusers to a cheaper model instead of banning them at once, which keeps false positives from hurting real customers.
4. Billing and access: what you give away for free
- Charge upfront, without grace periods on failed payments.
- Treat free trials and promo codes as a cost line with a cap, not as marketing that costs nothing.
- Use payment fraud rules and check what they would block before you turn them on. Vo writes rules with a coding agent and reviews their effect in the Stripe dashboard first.
- Make your terms of service allow you to act on suspected abuse.
- Do not let support (human or AI) reinstate banned accounts or hand out codes without a check. Vo warns that polished appeal emails are part of the attack.
Monitoring: how to spot it early
| Signal | Why it matters |
|---|---|
| Cost per account per hour, top 20 accounts | Abuse is concentrated; a handful of accounts usually drive the spike |
| Many new trials from the same card fingerprint, device or IP range | Trial farming |
| Requests at a steady rate around the clock | Scripts and relays, not people |
| Prompts unrelated to your product (game maps, code for other apps, pelican SVGs) | Your app is being used as a generic model endpoint |
| Sudden shift to the most expensive model | Missing model allowlist |
| Long-running agent sessions or tool calls to unknown hosts | Connected-tool abuse |
Review this at least hourly in the first weeks after launch, or automate it: ChatPRD runs an hourly agent over recent signups and unusual threads, bans only high-confidence cases, and sends the rest to a person.
Checklist before you launch an AI feature or a free trial
- Hard monthly spend limit at the provider, per project or workspace, not only an alert.
- Separate keys and projects for production, staging and each major feature.
- Fixed list of allowed models in server code; the client never chooses the model.
- Maximum input and output tokens on every call.
- Daily dollar budget per user account, matched to their plan.
- Step, time and tool-call limits on every agent run.
- Rate limits and bot checks on every route that calls a model.
- MCP and other connected tools restricted to trusted hosts.
- Payment fraud rules, card fingerprinting, no grace period.
- Trials and promo codes capped, single-use and tied to accounts.
- Spend dashboard by account, reviewed hourly at launch, with alerts that wake someone up.
- A kill switch for each AI feature, tested once before launch.
If you are hiring someone to build the feature, ask them how they would cover each line. It is a better test than most interview questions; see how to hire an AI agent developer for the rest of the vetting.
What it costs to add these controls
Most items on the checklist are configuration and a few days of work, not a new system. Provider spend limits are free. Vercel's model allowlist costs $0.10 per 1,000 billed requests on Pro and Enterprise plans. Per-user budgets, token caps and agent step limits are application code that belongs in the first version of any AI feature. For a full budget of an AI feature, including the monthly model bill, see how much it costs to integrate AI into an app.
FAQ
What is token fraud?
Token fraud is the abuse of an AI product to consume model usage that the product pays for and the abuser does not: farming free trials, reselling promo codes, paying with bad cards, or piping another service's requests through the app. Claire Vo said it cost ChatPRD tens of thousands of dollars over about a year.
What is a denial of wallet attack?
A denial of wallet attack generates a high volume of operations against a pay-per-use service so that the owner's costs become unsustainable. OWASP lists it as an example of LLM10:2025 Unbounded Consumption in its Top 10 for LLM applications.
How do I set a spending limit on the OpenAI API?
In the OpenAI platform, open Project settings, then Limits, then Edit spend limit in the Spend section. Enter a monthly limit and turn on "Enforce a hard limit". Requests then return a 429 error once tracked spend reaches it. The same setting exists for the whole organization. Enforcement is not instantaneous, so spend can slightly exceed the limit.
Does a spend alert stop API traffic?
No. On OpenAI, a spend alert only sends a notification and traffic continues. Only a hard spend limit stops requests. Use alerts at lower thresholds as an early warning and a hard limit as the backstop.
How do I stop users from choosing an expensive model?
Keep a fixed list of allowed models in your server code and ignore any model name the client sends. If you use Vercel AI Gateway, its model allowlist returns 403 for models a team owner has not enabled, and newly added models start disabled.
Should I turn off free trials for an AI product?
It depends on your margins. ChatPRD turned them off because card requirements and paid trials did not stop the abuse. If you keep a trial, cap it in dollars per account, limit it to the cheaper model, require a verified business email, and watch cost per account hourly.
Want these limits built into your AI feature?
I'm a freelance product builder in Kraków. I build AI integrations, AI agents and MVPs on Next.js, Expo and Supabase, and I put spend limits, model allowlists and per-user budgets in the first version, not after the first surprise invoice. I start with a workshop to agree on scope, then work in two-week sprints. Projects start at $5,000, with no upper limit, because the price depends on scope. I bill hourly on a B2B invoice. See AI integration and AI MVP development, or tell me about the feature you want to ship and I'll reply within 24 hours.
Sources
Read November 23, 2026, unless noted.
- Claire Vo, Token fraud is eating AI margins. Here's how Claire Vo is fighting it (ChatPRD, How I AI, November 16, 2026) and How I fight token fraud as a solo founder (Lenny's Newsletter, November 16, 2026)
- Simon Willison, Token fraud is here and it's BAD (November 20, 2026)
- OWASP Gen AI Security Project, LLM10:2025 Unbounded Consumption
- OpenAI, Spend limits
- Anthropic, Workspaces
- Vercel, AI Gateway budgets and spend limits and AI Gateway model allowlist
Want to build an AI agent, an MVP, or an app?
I design and build AI products from the first version to production: MVPs, React Native mobile apps, web apps, and AI agents. Tell me what you want to build and I will tell you where to start.
