What Is a Rate Limit for AI? The First Lock on an AI Box
A rate limit is a setting that fixes how many requests one person or address may send in a given time. On an AI box it is a setting about speed and about money. 🚦
This article explains what the limit is, the two layers where it is built, how the numbers are chosen and what should happen when it is reached. This article covers the defender’s side only; it does not describe how to carry out an attack.
What exactly is a rate limit?
It is the rule that decides how many may pass through a door in a unit of time. In AI, each passage has a price, so the rule matters more.

Its place in security lists
OWASP defines unbounded consumption as a risk of its own in its 2025 list for large language model applications, and counts rate limiting, user quotas and input size limits among the measures against it. A rate limit is therefore a basic precaution, not a refinement. It is a technique websites have used for years, applied to a service that charges per use. 📋
Which two layers is it built in?
BU BÖLÜMÜN ÖZETİ
- The provider’s limit
- Your own limit
- How the two work together
There are two separate limits, and neither replaces the other. Confusing them is the most common mistake.
The provider’s limit
The provider puts a rate limit on your account as a whole. According to Anthropic, these limits are set at the organisation level and depend on the usage tier. Their purpose is to manage the provider’s capacity and misuse. That limit exists to protect the system, not to protect you. For most small businesses it is very high; your bill will have grown long before an attack fills it. 🏢
Your own limit
The second limit is built on your site, between the box and the provider. It counts a single visitor, a single address or a single session. Because the provider’s limit sees all traffic as one pool, it does not stop one person draining the pool; yours does. The real protection is in this layer. Setting it up is a developer’s job and usually takes a few hours. Ask where requests pass through before they reach the provider; that is where the limit lives.
How the two work together
Your limit is narrow and the provider’s is wide. On a normal day neither is approached. On a bad day yours comes into play first and stops individuals. If it is overrun, for instance because the attack arrives from thousands of different addresses, the spending cap is the last line. Three layers stand on top of one another: the per-person limit, the account limit and the cap. The route that bypasses all three, a leaked key, is covered in how to store an AI API key. 🧱
How are the numbers chosen?
BU BÖLÜMÜN ÖZETİ
- Start from real use
- More than one time window
- Input and output length
Too narrow a limit tires the customer; too wide a limit tires the budget. The right number comes from your own traffic.

Start from real use
Look at your logs: how many questions does a typical visitor ask in one session, and how many did the most curious visitor ask? Set the limit a little above the most curious real user. In most support boxes this number is surprisingly small. If you have no logs, start with a reasonable guess and correct it after two weeks by looking at the refused requests. 📊
More than one time window
One window is not enough. A per-minute limit cuts a sudden downpour; hourly and daily limits catch slow but persistent use. Three steps are used together: a few per minute, a few dozen per hour, a set total per day. A patient script passes comfortably under a per-minute limit alone. The daily total is the step that most often gets forgotten.
Input and output length
Beside the count go two length limits: the longest text the box accepts and the longest form of the answer. A support question is a few sentences; the box should not accept several pages. The output limit is a setting of the provider’s own and takes one line. A length limit puts a ceiling on the cost of a single request. ✂️
What should the limit be counted against?
BU BÖLÜMÜN ÖZETİ
- By address
- By session and account
- A total limit
How you recognise a person decides how easily the limit is evaded.
By address
The simplest method is to count by the visitor’s network address. It is easy to build and needs no login. Its weakness is that addresses change easily, and everyone in an office sharing one address counts as one person. It is still far better than no limit at all. For most small sites it is the first step. 🌐
By session and account
For logged-in users the limit is tied to the account. This is the most reliable method, because opening an account takes effort and an abusive account can be closed. Boxes without a login use session and address together. The more firmly you know who is asking, the more comfortably you can set the limit. The other side of that decision is in when an AI box should require login.
A total limit
Alongside the per-person limits goes a total: the most requests the box will answer in an hour or a day. If an attack comes from many different addresses, the per-person limits are not exceeded but the total is. The total limit is the second chain against a distributed downpour. It is set at a few times the busiest hour of a normal day. 🔗
What does it mean for the business?
BU BÖLÜMÜN ÖZETİ
- Customer experience
- Watching the refusals
- Lock list: the rate limit
The limit is not there to restrict customers. It is there so that the box can stay open.

Customer experience
A well-set limit is never seen by a real customer. If it is seen, the message must be clear: why they are waiting and how to reach you. An empty error loses the customer and delays your noticing the problem. The limit message is part of the box and deserves care in the writing. 💬
Watching the refusals
The number of refused requests is a valuable signal. If it is zero, the limit may not be working or may be too wide. If it is very high, either the limit is too narrow or someone is trying. Looking at this number once a week lets you correct the setting and see an attempt early. A limit is not a setting you install and forget. The wider review is in the AI audit guide.
Lock list: the rate limit
This article’s lock list has four lines, in order. One: give the box per-person limits by minute, hour and day. Two: limit input and output length. Three: add an hourly total for the whole box. Four: write the limit message and log the refused requests. The setting that forms the last line is explained in what is a spending cap, and how it differs from an alert. Forecast: ready-made chat box plugins will make a per-person rate limit a required step of installation. Update log. 30 November 2026: first publication. Forecasts on this page are re-read when they fall due; one that proves wrong is corrected here, not deleted.
How does Adapte Digital review the rate limit?
BU BÖLÜMÜN ÖZETİ
- A single delivery package
- What is reviewed
- Where to start
In the Attack File, each box is checked for whether limits exist and whether they actually work.
A single delivery package
Adapte Digital does not charge a monthly management fee. Work starts with a single delivery package whose scope is written down in advance: 36,000 TRY + VAT. If the work grows, the new need is defined as a separate add-on package, priced by what will be delivered rather than by the hours spent. 📦
What is reviewed
Per-person, length and total limits are checked one by one; whatever is missing is written down with a suggested value.
Where to start
Which packages are open, and at what price, is shown on our campaign pages, item by item. 🧭
Quick Summary
- A rate limit sets how many requests one person may send in a given time.
- The provider’s account limit does not protect you; the per-person limit is built on your site.
- The limit should look at both the number of requests and their length.
- Per-minute, hourly and daily windows are used together.
- The number of refused requests is watched weekly.
Short Glossary
- Rate limit
- A rate limit is a setting that restricts how many requests a person or address may send in a given time.
- Quota
- A quota is the total amount of use granted to a user for a given period.
- Time window
- A time window is the interval over which a limit is counted.
Frequently Asked Questions
Next Step
Ask your developer one question: is there a per-person rate limit on our box, and what is it? If the answer is not a number, the first task is clear.
Sources: OWASP Gen AI Security Project — LLM10:2025 Unbounded Consumption · Claude Docs — Rate limits · OpenAI Help Center — Best practices for API key safety
Updated: November 2026
Sık Sorulan Sorular
A limit can count three things: the number of requests, the size of the text sent and the size of the answer produced. Anthropic’s documentation defines the provider-side limits in exactly these three measures: requests per minute, input tokens per minute and output tokens per minute. Limiting the number of requests alone is not enough; one enormous request can stand in for a hundred small ones. A good limit looks at both count and size. 🔢
A request over the limit is refused and never reaches the model, so no charge arises. On the provider side this is reported with an error numbered 429. On your side the visitor sees a plain message: wait a moment, or write to us here. A refused request is an unpaid request. The whole value of the limit lies in that sentence, and it is why the limit must sit in front of the model call, not after it.
Yes. The provider’s limit treats all your traffic as one pool and does not stop one person from draining it.
Not if it is set properly. The number sits above the most curious real user, so normal use never approaches it.
They can. That is why a total limit and a spending cap are also needed; one layer is not enough.
