Guide
OpenAI API hard spending limit: set it, and know what it misses
The short answer: an OpenAI spend limit only stops requests when “Enforce a hard limit” is turned on. A spend alert sends a notice and traffic keeps going. Set the hard limit on the organization and on each project, keep an alert below it, and remember the limit is a monthly amount.
Set it in 5 steps
- 1
Open “Organization limits” on the OpenAI platform.
- 2
In “Spend”, select “Edit spend limit”.
- 3
Enter the monthly spend limit.
- 4
Turn on “Enforce a hard limit”.
- 5
Save. Repeat on each project's limits page to cap one project on its own.
What happens at the limit
Requests return a 429 error with the code organization_spend_limit_exceeded or project_spend_limit_exceeded. Retrying does not help: raise or remove the limit, or wait for the next monthly cycle. OpenAI says enforcement is not instant, so recorded spend can go slightly past the limit.
What it does not cover
- Speed. It is a monthly amount, so a loop can use a whole month's limit in one afternoon.
- Keys in a shared project. A project limit covers only traffic billed to that project. Give each app or agent its own project.
- Codex plan credits. The page describes limits for API traffic. The public Codex cases we hold are about plan credits that drained or disappeared (#44679, #19242), a different problem.
124 of the 656 public cases in our library involve OpenAI, ChatGPT or Codex. For a stop per session, set a hard limit at the provider — a cap outside the agent is what stops the next session before the bill lands. The free check first shows what you have already spent, and a Windows app with the same caps is coming. The paid setup on Upwork covers OpenAI and Anthropic together.
FAQ · OpenAI API hard spending limit: set it, and know what it misses
Does OpenAI have a hard spending limit?
Yes, per organization and per project, once “Enforce a hard limit” is on. Requests then fail with a 429 error.
Why did my spend go over the limit?
OpenAI says enforcement is not instantaneous; a small amount of extra usage can be processed while the limit takes effect.
Is a spend alert enough?
No. OpenAI's docs say spend alerts do not enforce a cap. Use an alert as an early warning and a hard limit as the stop.
Sources
- OpenAI API docs: spend limits (official)
- GitHub issue #44679: purchased Codex credits drained
- GitHub issue #19242: Codex credits dropped to 0 without usage records
- Hacker News: a leaked OpenAI key was used up to its spending limit
Case counts on this page come from our research library of 656 verified public AI billing dispute cases (170 curated cases plus 486 collected on 2026-11-24). Counts are keyword counts over the case texts; one case can match more than one pattern.
Fireborn finds and stops surprise charges for free, and the appeal templates are free too. The paid service is a hard spend cap set up for you, sold on Upwork. It does not promise refunds or log in on your behalf. Figures on this page follow the sources cited. Last verified: 2026-11-27. By Fireborn (6hn68).