<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Russel</title>
    <description>The latest articles on DEV Community by Russel (@russel_to).</description>
    <link>https://dev.to/russel_to</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4007354%2F3dda30bd-95af-477e-9e9e-887729dbe066.png</url>
      <title>DEV Community: Russel</title>
      <link>https://dev.to/russel_to</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/russel_to"/>
    <language>en</language>
    <item>
      <title>OpenAI's usage limit won't stop your spending — here's what actually does (2026)</title>
      <dc:creator>Russel</dc:creator>
      <pubDate>Tue, 30 Jun 2026 11:00:00 +0000</pubDate>
      <link>https://dev.to/russel_to/openais-usage-limit-wont-stop-your-spending-heres-what-actually-does-2026-5e7m</link>
      <guid>https://dev.to/russel_to/openais-usage-limit-wont-stop-your-spending-heres-what-actually-does-2026-5e7m</guid>
      <description>&lt;p&gt;You set an OpenAI usage limit. You felt responsible. Then the invoice landed higher than the number you typed, and you sat there wondering what the limit was even for.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The short version, up front: OpenAI's "usage limit" does not stop your spending. It sends an email when you cross a threshold while your requests keep going.&lt;/strong&gt; It's a smoke alarm, not a circuit breaker. The only things that actually cap an OpenAI bill are running out of prepaid credit and your auto-recharge settings. Below is how that works in 2026, what changed this year, and what to bolt on so the bad number reaches you before your card does.&lt;/p&gt;

&lt;p&gt;One disclosure first: I build a tool in this space — BillGuard — so read the last section as biased and judge it on the merits. Everything before it is just how the billing works.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does the OpenAI usage limit actually stop spending? No.
&lt;/h2&gt;

&lt;p&gt;Open Settings → Limits and you'll find a "monthly budget" or usage limit. It looks like a cap. It reads like a cap. It is not a cap.&lt;/p&gt;

&lt;p&gt;Cross that number and OpenAI emails you. Your requests keep going. There used to be a real hard limit that suspended API access at the ceiling, and &lt;a href="https://community.openai.com/t/monthly-budget-limit-silently-removed/1193635" rel="noopener noreferrer"&gt;OpenAI removed it&lt;/a&gt; — quietly, with the old setting relabeled from a cut-off to an alert. There's a &lt;a href="https://news.ycombinator.com/item?id=45589628" rel="noopener noreferrer"&gt;whole "OpenAI removed budget limits, you can only get warnings" thread on Hacker News&lt;/a&gt;, and the developer forum still has &lt;a href="https://community.openai.com/t/i-d-like-openai-to-allow-setting-a-hard-limit-as-well-since-the-openai-api-uses-prepaid-billing/1370125" rel="noopener noreferrer"&gt;standing requests to bring the hard cap back&lt;/a&gt;, because prepaid billing leaves no upper bound if a key leaks or a loop runs wild.&lt;/p&gt;

&lt;p&gt;So the mental model most of us carry — "I set a limit, so I'm safe" — is wrong. You set an alert. The meter keeps running while you're asleep, in a meeting, or just not refreshing the dashboard.&lt;/p&gt;

&lt;h2&gt;
  
  
  So what actually stops an OpenAI runaway bill?
&lt;/h2&gt;

&lt;p&gt;Mostly one thing: running out of prepaid credit.&lt;/p&gt;

&lt;p&gt;New API accounts are on prepaid billing. You buy credits, usage burns them down, and per &lt;a href="https://help.openai.com/en/articles/8264778-what-is-prepaid-billing" rel="noopener noreferrer"&gt;OpenAI's own docs&lt;/a&gt;, "your API usage will be halted once your account balance reaches $0." That's the real hard stop. Not the usage limit. The empty wallet.&lt;/p&gt;

&lt;p&gt;Now the trap: auto-recharge. It's offered when you set up prepaid billing, and it tops your balance back up the moment it dips below a threshold. So the one mechanism that &lt;em&gt;would&lt;/em&gt; halt a runaway loop — hitting zero — never fires. The balance refills itself, the loop keeps calling, and you meet the damage on the receipt.&lt;/p&gt;

&lt;p&gt;That's the surprise-bill machine in two parts: a soft "limit" that only notifies, plus an auto-recharge that quietly removes the only real brake.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wait — didn't per-project limits used to work?
&lt;/h2&gt;

&lt;p&gt;They did, loosely, and this is the part most 2026 guides haven't caught up to. Until recently the standard advice was: put production behind a project-scoped key, set a per-project hard limit, and OpenAI would stop that project a few dollars over the cap. Imperfect, but real.&lt;/p&gt;

&lt;p&gt;Around May 2026, developers started reporting that this stopped working too. In one &lt;a href="https://community.openai.com/t/per-project-and-per-organization-spending-limits-buttons-missing/1380321" rel="noopener noreferrer"&gt;forum thread, an org owner watched a project run to $1,800 on a $1,000 cap while still showing green&lt;/a&gt;, and the "set a budget" buttons disappeared for both projects and the organization — replaced with alert-only language. Other owners in the same thread confirmed the per-project enforcement they'd relied on was gone, leaving a "x used of y limit" progress bar that no longer does anything.&lt;/p&gt;

&lt;p&gt;I'm flagging this as reported behavior, not a documented OpenAI change — your account may differ, so check yours. But if your safety plan is "production runs on a project key with a hard limit," it's worth re-testing, because for a lot of people that net quietly disappeared this year.&lt;/p&gt;

&lt;h2&gt;
  
  
  The OpenAI controls that still help, ranked
&lt;/h2&gt;

&lt;p&gt;OpenAI does give you real knobs. They're just not the ones the name implies, and after this year the useful list is shorter.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Auto-recharge settings — your closest thing to a real ceiling.&lt;/strong&gt; Turn auto-recharge off and you hard-stop at $0 when credits run out. Leave it on but set a low monthly recharge cap and it can't top up past that amount in a given month. Pair that with a modest balance and your trust-tier limit caps how much can be in the account at once. This is now the main lever people actually have.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Project-scoped API keys — for blast radius, not budgets.&lt;/strong&gt; Create a project, generate a key tied to it, and that key only touches that project's resources. If it leaks, the damage is one project, not your whole org. Still the most underused safety feature OpenAI ships — &lt;a href="https://help.openai.com/en/articles/9186755-managing-your-work-in-the-api-platform-with-projects" rel="noopener noreferrer"&gt;docs here&lt;/a&gt;. Just don't count on the per-project &lt;em&gt;spend&lt;/em&gt; limit to stop anything in 2026 (see above).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Usage and Cost APIs.&lt;/strong&gt; OpenAI exposes spend programmatically, including a &lt;code&gt;/v1/organization/costs&lt;/code&gt; endpoint broken down by minute, hour, and day and filterable by key, project, or model. You can't watch a dashboard you've closed — but you can poll an API. This is the hook everything external hangs off.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Is Anthropic any better at capping spend?
&lt;/h2&gt;

&lt;p&gt;Cleaner story, fewer feet-guns. Anthropic's API has an actual spend cap that behaves like one. Per the &lt;a href="https://platform.claude.com/docs/en/api/rate-limits" rel="noopener noreferrer"&gt;Claude rate-limits docs&lt;/a&gt;, each usage tier carries a monthly spend cap — $500 on Start, $1,000 on Build, $200,000 on Scale — and "once you reach your tier's spend cap, API usage pauses until the next month." You can also set your own lower spend limit beneath the tier cap, and apply custom per-workspace spend and rate limits.&lt;/p&gt;

&lt;p&gt;So if you assumed Anthropic was the loose one, flip it: hit the ceiling and it stops. The by-the-hour visibility is thinner than I'd like, and there's one caveat — on AWS Marketplace those spend limits aren't available — but the headline control actually works.&lt;/p&gt;

&lt;h2&gt;
  
  
  Soft vs hard, native vs external — the whole thing in one table
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Mechanism&lt;/th&gt;
&lt;th&gt;Stops spend, or just warns?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;OpenAI "usage limit" / monthly budget&lt;/td&gt;
&lt;td&gt;Warns. Requests keep going.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenAI per-project budget (historically)&lt;/td&gt;
&lt;td&gt;Used to stop loosely; reported broken/removed in 2026.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenAI prepaid balance hits $0, auto-recharge OFF&lt;/td&gt;
&lt;td&gt;Real stop.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenAI prepaid + auto-recharge ON, no monthly cap&lt;/td&gt;
&lt;td&gt;No stop. Balance silently refills.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenAI auto-recharge with a low monthly cap&lt;/td&gt;
&lt;td&gt;Soft ceiling — closest native control.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Anthropic spend limit / tier cap&lt;/td&gt;
&lt;td&gt;Real stop. Pauses until next month.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;External real-time alert (poll Usage/Cost API)&lt;/td&gt;
&lt;td&gt;Early warning, by your actual spend.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  How do I actually get warned before the invoice?
&lt;/h2&gt;

&lt;p&gt;Every native control above shares one flaw. None of them reach you in real time, by your actual spend, somewhere you'll see it. A dashboard you check on Tuesday won't save you from a loop that starts Friday night. What "good" looks like is dumb and specific: the moment your real spend crosses a line you care about, a message lands on your phone that night, not on the 1st of next month. Three ways to get there:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Roll your own.&lt;/strong&gt; Cron job, hit &lt;code&gt;/v1/organization/costs&lt;/code&gt; hourly, compare to a number, ping a webhook. A weekend's work, and now you own a tiny billing service forever. Plenty of people do exactly this, and it's a perfectly good answer if you don't mind babysitting a cron job.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use a FinOps platform.&lt;/strong&gt; CloudZero, Vantage, Finout, Amnic — anomaly detection, team allocation, the lot. Built for finance orgs spreading real money across teams. For a solo dev shipping a side project, it's a freight train to fetch groceries.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use a lightweight alerting tool.&lt;/strong&gt; This is the indie-sized slot, and it's filling up. &lt;a href="https://getcapped.app" rel="noopener noreferrer"&gt;Capped&lt;/a&gt; does this — an hourly check against the cost API, pings at 80/100/150% of a cap you set. Worth a look. Helicone used to be the default recommendation, but it was &lt;a href="https://www.mintlify.com/blog/mintlify-acquires-helicone" rel="noopener noreferrer"&gt;acquired by Mintlify in March 2026&lt;/a&gt; and is &lt;a href="https://www.helicone.ai/blog/joining-mintlify" rel="noopener noreferrer"&gt;now in maintenance mode&lt;/a&gt; — security fixes only, no roadmap — and it typically sits in your request path as a proxy, which not everyone wants in front of production traffic.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where BillGuard fits (the biased part)
&lt;/h2&gt;

&lt;p&gt;Disclosure again: my product, weigh it accordingly.&lt;/p&gt;

&lt;p&gt;BillGuard is the "roll your own" option without the weekend, and read-only by design. You hand it a read-only admin key for OpenAI or Anthropic — no proxy, no SDK, nothing in your request path — and it polls your real spend, forecasts where the month lands, and pings you on email, Telegram, or Slack the second you cross a line you set. Setup is about thirty seconds. Founding plan is $7/month.&lt;/p&gt;

&lt;p&gt;The forecast is the part I actually care about: not just "you hit 80%," but "at this rate you'll land at $X by the 30th," while there's still time to do something. And because it never touches your traffic, it can't add latency or become a thing that goes down and takes you with it.&lt;/p&gt;

&lt;p&gt;It does not stop your spend — nothing external can, short of pulling your key — but it makes the bad number reach your phone hours before it reaches your card.&lt;/p&gt;

&lt;p&gt;If you've ever set a usage limit and assumed you were covered, that assumption is the whole reason this exists. And if you'd rather wire up the cron job — genuinely, go do it. The point of this post isn't the tool. It's that the native limit was never the safety net you thought it was, and in 2026 even the project-level one quietly went away. What you bolt on next is your call.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Does setting a usage limit in OpenAI actually cap my spending?&lt;/strong&gt;&lt;br&gt;
No. The usage limit is a notification threshold, not an enforced cap. OpenAI emails you when you cross it and keeps processing your requests. The only native hard stop is your prepaid balance reaching $0 with auto-recharge off.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What actually stops an OpenAI API runaway bill?&lt;/strong&gt;&lt;br&gt;
Running out of prepaid credit. If auto-recharge is on with no monthly cap, the balance refills and nothing stops. Turning auto-recharge off, or setting a low monthly recharge cap, is the closest thing OpenAI gives you to a real ceiling.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do per-project spending limits work in 2026?&lt;/strong&gt;&lt;br&gt;
They used to stop a project loosely a few dollars over its cap, but as of around May 2026 developers report that enforcement was removed and the UI now offers alerts only. Project-scoped keys are still worth using to limit blast radius if a key leaks — just don't rely on the per-project budget to halt spend.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does Anthropic's Claude API have a real spending cap?&lt;/strong&gt;&lt;br&gt;
Yes. Each usage tier has a monthly spend cap (Start $500, Build $1,000, Scale $200,000) and usage pauses until the next month once you hit it. You can also set a lower spend limit yourself. The exception is AWS Marketplace, where spend limits aren't available.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do I get a real-time alert before the bill arrives?&lt;/strong&gt;&lt;br&gt;
Poll OpenAI's &lt;code&gt;/v1/organization/costs&lt;/code&gt; endpoint (or Anthropic's Usage &amp;amp; Cost API) on a schedule and alert when spend crosses a threshold. You can build this yourself with a cron job, or use a lightweight tool like Capped or BillGuard that does the polling and notifies you on email, Telegram, or Slack.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Written by Russell, who builds BillGuard. Originally published on the BillGuard blog.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>openai</category>
      <category>ai</category>
      <category>programming</category>
      <category>saas</category>
    </item>
  </channel>
</rss>
