# Rate limit

> Canonical: https://skillalmanac.com/glossary/rate-limit | Last verified: 2026-11-25 | Index status: index-eligible

A rate limit caps request or resource throughput over time. Its metric, scope and window are service-defined, and excess traffic may receive HTTP 429 or other throttling behavior.

Also called: rate limits.

## In plain language

A rate limit controls how quickly a client can use a service. A provider might count requests, input or output tokens, images, queued work or another resource over a defined window. The scope may be an organization, project, workspace, model, endpoint or another service-defined unit. HTTP 429 is a common response when a limit is exceeded, but it is not mandatory and does not by itself identify the precise cause. Subscription usage allowances are related limits but belong to a separate plan-level concept.

## Technical definition

RFC 6585 defines HTTP 429 as “Too Many Requests,” permits a Retry-After header and leaves identification and counting policy to the server. Anthropic documents organization-level Messages API limits using requests, input tokens and output tokens, with token-bucket replenishment and model-class scopes. OpenAI documents organization- and project-level limits across several metrics and says the first exhausted applicable limit can govern. For temporary limit errors, clients should honor a valid Retry-After value and otherwise use bounded exponential backoff with jitter. Billing, quota and spend errors may require user action instead of retries.

## How it shows up when you use agents

An agent can make several model requests while handling one user task: it asks the model what to do, runs a tool, returns the result and asks the model again. Each model request may consume request- and token-based capacity. Local file operations do not necessarily contact the model, so the number of agent steps is not automatically the number of API requests.

An illustrative scenario: an agent makes a model request, receives a tool call, returns the tool result and then receives HTTP 429 on the next model request. The client should inspect the provider’s error details rather than assuming every 429 has the same cause. If a valid Retry-After header is present for a temporary limit, it should wait at least that long. If no valid hint is available, a bounded exponential-backoff policy with jitter can reduce synchronized retries. Attempts and total waiting time still need caps.

The metric and scope are provider-defined. Anthropic documents organization-level request, input-token and output-token limits for model classes. OpenAI documents organization and project scopes and several request or resource metrics. These are vendor examples, not a universal rule that every API uses per-minute request and token limits.

A useful next action is to log the HTTP status, provider error code, relevant limit headers and request identifier while excluding secrets. Then check the provider console or documentation for the exact model and scope that handled the request.

## Common confusions

- **Rate limit versus usage allowance.** A rate limit controls throughput over time. A subscription’s plan allowance is a separate product policy; see [Usage limits](/glossary/usage-limits).
- **Rate limit versus spend limit.** One constrains traffic or resources; the other constrains money. Both can sometimes surface as 429, so inspect the error body.
- **429 versus proof of one cause.** HTTP 429 commonly represents too many requests, but vendor-specific quota or spend conditions may reuse it.
- **Ceiling versus warranty.** A documented maximum does not promise that every request below it will succeed; other capacity and access conditions can apply.

## Worked examples in this catalogue

### [How to Build an AI Agent: A Minimal Tool Loop](https://skillalmanac.com/learn/build-an-ai-agent)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Maps the model-and-tool loop that can create several model requests while an agent works through one user task.

Why it exercises the concept: The guide helps identify where requests occur and where a step cap belongs. It is not a production rate limiter, quota checker or provider-specific retry implementation.

## Related terms

- [Token](https://skillalmanac.com/glossary/token.md)
- [Context window](https://skillalmanac.com/glossary/context-window.md)
- [Inference](https://skillalmanac.com/glossary/inference.md)
- [AI agent](https://skillalmanac.com/glossary/ai-agent.md)
- [Tool calling (function calling)](https://skillalmanac.com/glossary/tool-calling.md)

## Sources

- [RFC 6585, Section 4: 429 Too Many Requests](https://www.rfc-editor.org/rfc/rfc6585.html#section-4), Internet Engineering Task Force (accessed 2026-11-25)
- [Rate limits](https://platform.claude.com/docs/en/api/rate-limits), Anthropic (Claude API Docs) (accessed 2026-11-25)
- [Rate limits](https://developers.openai.com/api/docs/guides/rate-limits), OpenAI (API Docs) (accessed 2026-11-25)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-25. [Glossary index](https://skillalmanac.com/glossary.md).
