OpenAI and Anthropic API spending limits: how to set them and what they don't cover

Last updated 19 Oct 2026

Short answer: Both providers let you set a monthly spending limit. On OpenAI, set a monthly spend limit for the organization or a project and switch on Enforce a hard limit; without that switch, requests aren't stopped when the limit is reached [O1]. On Anthropic, set your own limit below your tier's monthly cap on the Billing page in the Claude Console, and give each workspace its own limit [A1]. Both limits are monthly, so a runaway job can still use a large share of the month before it's stopped.

Where CostLatch fits

Provider limits are monthly. For tighter limits per run or per day, you can send requests through a proxy that checks a budget before forwarding each one. That's what CostLatch does (disclosure: CostLatch is my product, and this is its site):

How do I set a spending limit on the OpenAI API?

What happens when an OpenAI limit is reached?

How do I set a spending limit on the Anthropic API?

What happens when an Anthropic limit is reached?

What don't provider spending limits cover?

FAQ

Does OpenAI have a hard spending limit?

Yes. You can set a monthly spend limit for an organization or a project and turn on Enforce a hard limit. Requests then fail with a 429 error once tracked spend reaches it, though OpenAI says enforcement isn't instantaneous [O1].

Do OpenAI spend alerts stop API usage?

No. A spend alert sends a notification and API traffic continues. Only a hard spend limit stops requests [O1].

What happens when I hit my Anthropic spend limit?

If you hit your tier's monthly cap, requests return a 429 error until 00:00 UTC on the first day of the next month, unless you get a higher limit sooner. If you hit a lower limit you set yourself, requests return a 400 error until you raise or remove it or access resumes [A1].

Can I set a daily or per-run spending limit?

The provider pages cited here describe monthly limits. For a daily or per-run dollar limit you need your own code or a proxy that checks a budget before each request, such as CostLatch†. Keep the provider's monthly limit on as well.

Can I limit spending for one project or workspace?

Yes. OpenAI lets you set a spend limit per project [O1]. Anthropic lets you set custom spend limits per workspace, but not on the default workspace [A1].

†CostLatch checks your budget before forwarding each request. Spend can still slightly exceed a cap, for example from requests already in progress or running at the same time, or where our cost estimate differs from the provider's final charge. Keep your provider's own limits on too. See our Terms (cl 3.3).

CostLatch is not affiliated with or endorsed by OpenAI or Anthropic. OpenAI and Anthropic are trademarks of their respective owners.

General information, not security or legal advice. Provider steps were checked against the linked pages on 19 Oct 2026 and can change.