AI API spend limits cap the provider charges associated with an organization, workspace or project. When you bring your own key (BYOK) to another application, set the cap with the model provider: the application’s own spending limit may govern a different bill.
Start by identifying every party that meters the workflow. A provider may bill the tokens directly while the application charges a platform fee, hosted fallback, compute or storage. Review each ledger and each fallback path before treating any one limit as the total budget.
Which controls actually stop API spending?
A hard spend limit blocks affected traffic; a spend alert only notifies. Provider-assigned monthly usage ceilings and request-rate limits are separate controls.
| Control | What it measures | What to establish |
|---|---|---|
| Spend alert | Spend against a threshold | Who receives the notification; whether traffic continues |
| Configured hard spend limit | Monthly billed usage in its organization, workspace or project | Which requests it stops and how quickly enforcement propagates |
| Provider tier cap | The provider-approved monthly ceiling | Whether a higher tier or approved limit is needed |
| Request or token rate limit | Throughput over a shorter interval | Whether waiting or reducing traffic addresses the error |
| Application spending limit | What the application itself meters | Whether provider invoices, fallback usage and non-AI resources are included |
Do not use a rate-limit response alone to decide what happened. Both throughput and billing controls can return HTTP 429. Read the provider’s error code and the account’s limits before retrying.
For workload-level attribution, dedicate an Anthropic workspace or OpenAI project to the application. Shared keys make it harder to distinguish one workload’s consumption from unrelated traffic. The BYOK versus managed-model decision covers the procurement choice; the limits below govern it after that choice.
How do Anthropic’s limits work?
Anthropic has a monthly cap set by usage tier and lower limits you configure for an organization or workspace. Its rate-limit documentation describes different errors for the two.
| Tier | Monthly spend cap |
|---|---|
| Start | $500 |
| Build | $1,000 |
| Scale | $200,000 |
| Custom | Arranged with the account team; no standard monthly cap |
At the tier cap, API usage pauses until 00:00 UTC on the first day of the next month, unless a higher limit is obtained sooner. The response is HTTP 429, type rate_limit_error, code enforced_spend_limit_reached, with no retry-after header. Retrying does not restore access while the cap holds.
A limit you set returns HTTP 400, type invalid_request_error. The message identifies the specified API or workspace usage limit and states when access resumes. Raising or removing the limit can restore access sooner.
Set organization limits on Settings > Billing. For a workspace, go to Settings > Workspaces, select it and configure spending thresholds and alerts. The Default Workspace cannot have its own spend limit.
Anthropic’s subscriber-credit guidance recommends a dedicated workspace and workspace limit for project spending. Workspace separation makes a workload’s usage easier to attribute.
How do OpenAI’s limits work?
OpenAI supports hard monthly spend limits for organizations and projects, alongside alerts that do not block traffic. Its spend-limits guide distinguishes both from the approved usage limit.
Set an organization cap under Organization limits, or a project cap under that project’s Limits. Configuring the control requires permission to manage the corresponding settings. An organization limit applies across projects; a project limit applies only to traffic billed to that project.
A reached hard limit returns HTTP 429 with organization_spend_limit_exceeded or project_spend_limit_exceeded. Enforcement is not instantaneous, so recorded spend can slightly exceed the configured amount. Leave headroom below the amount you truly cannot exceed.
Raising or removing the reached limit allows traffic to resume after the update propagates; otherwise it resets with the monthly cycle. Keep alerts enabled so a responsible person hears before the blocking threshold.
OpenAI’s changelog records hard spend limits on July 22, 2026 and simplified paid tiers on October 6, 2026. The separate approved usage limits are:
| Paid tier | Approved monthly usage limit |
|---|---|
| Build | $500 |
| Launch | $5,000 |
| Grow | $200,000 |
Tier upgrades follow total credit-purchase thresholds. An organization_usage_limit_exceeded error refers to that approved limit, not necessarily the hard limit you configured.
How should you set up a BYOK budget?
Use a dedicated billing scope, a durable key owner, provider caps and alerts, then review what the application does when the provider refuses a request.
- Create a dedicated workspace or project. At Anthropic, choose a non-default workspace; workspace creation requires an organization admin. At OpenAI, a project can have its own rate and spend limits.
- Use a service-account key where appropriate. Anthropic personal keys are archived when their user leaves the organization; a service-account key continues after its creator leaves. OpenAI administrators can restrict new keys to service accounts.
- Plan key rotation. OpenAI’s production guidance recommends key expiration and regular rotation. Check how the receiving application replaces a key before the current one expires.
- Set a hard limit and earlier alerts. Confirm that the limit applies to the key’s actual billing scope. For OpenAI, include headroom for propagation.
- Decide the failure behavior. Should the workflow stop, try another owned provider or use application-hosted models? Give every permitted route a budget owner.
- Review both invoices. Application usage can show activity on your key without reproducing the provider’s invoice. Reconcile each bill with its own usage source.
A successful fallback can conceal the fact that the original key is capped or invalid. Inspect the model and provider that actually served the request rather than assuming a completed answer used the intended key.
How Insulin handles the two bills
Insulin’s metering documentation says your provider bills tokens on your own key directly, while Fours charges a flat per-unit fee. The platform meters AI input and output tokens, sandbox processor, memory and storage, and object storage. The monthly limit applies to these platform charges, not the provider’s token invoice.
| Platform control | What it does | What it leaves to you |
|---|---|---|
| Monthly spending limit | Settings → Billing, $0 to $100,000 per calendar month; compares spend so far, pauses AI for the remainder and stops automatic top-up; resets next month | Cap the provider invoice separately. There is no warn-only setting, and Billing is not admin-only |
| Reached limit | Raising or removing it restores service in about a minute; adding credit does not clear it | Running sandboxes continue; new sandboxes and uploads still work, so non-AI charges can continue |
| Zero balance | Pauses BYOK AI requests on pay as you go because the per-unit fee is still due | Monthly billing is not stopped for a balance; debt and suspension are separate platform controls |
| Provider refusal | The next connected provider can take over, then hosted models if policy permits; the reply names both models | Retrying a still-capped key does not fix it |
| Hosted fallback policy | The platform-key fallback switch is on by default. Turn it off for BYOK-only, fail-closed operation; a non-empty allowlist must include the hosted DeepInfra row to use that route | Only an org ADMIN changes the organization policy or connects and disconnects organization integrations |
| Connection ownership | Organization agents use organization providers; the built-in assistant and Personal agents use members’ own connections, never organization keys | A personal Anthropic connection is billed to the individual |
Plan key changes around the integration: the documented API-key replacement process deletes the old connection and creates a new one. API-key integrations never show Connection expired, so look for a rejected call or failover note instead. The Usage panel can group by Resource, User, App, Model or Provider, showing quantity, cost and share. BYOK activity is attributed when the provider reports token counts; displayed costs remain the platform’s charges.
The limitation is financial as well as operational: a provider cap can shift work onto another allowed bill, and the platform’s monthly limit does not stop every resource charge or restrict who may change Billing. Set the provider cap, decide allowed fallback and assign responsibility for both. AI model policy and pricing describe those decisions in more detail.
Frequently asked questions
Can Anthropic workspace budgets override the organization limit?
No. Organization-wide limits still apply even when workspace limits add up to more. Every API key and workspace in the organization draws on the same balance, so separate workspaces do not create separate pools of money.
Sources
Primary sources for the platform rules cited above. Last verified October 14, 2026. Providers change their products, prices and terms without notice — check the source before relying on a detail.
- Spend limits | OpenAI API — Spend alerts notify while API traffic continues and do not enforce a cap; organization and project hard limits return a 429 with organization_spend_limit_exceeded or project_spend_limit_exceeded; enforcement is not instantaneous, so recorded spend can slightly exceed the limit; raising or removing a reached limit resumes traffic once the update propagates, otherwise it resets with the next monthly cycle; organization_usage_limit_exceeded for the OpenAI-approved usage limit; configuring a limit needs permission to manage the organization or project settings
- Changelog | OpenAI API — July 22, 2026: hard spend limits added for organizations and projects; October 6, 2026: API usage tiers simplified from five to three, Build, Launch and Grow
- Rate limits | OpenAI API — Usage tiers and their approved monthly usage limits, $500 on Build, $5,000 on Launch and $200,000 on Grow, upgraded automatically as total credit purchases reach each threshold and separate from the spend limits you configure; quota and billing errors not resolved by retrying
- Production best practices | OpenAI API — Custom rate and spend limits per project; API Key Governance letting administrators allow only service-account keys; an expiration date on project API keys and a regular key rotation process
- Rate limits - Claude Platform Docs — Monthly spend caps of $500 on Start, $1,000 on Build and $200,000 on Scale, none on Custom; at the tier cap, usage paused until 00:00 UTC on the first day of the next month, with HTTP 429, rate_limit_error, error code enforced_spend_limit_reached and no retry-after header; a self-set limit returning HTTP 400 invalid_request_error with a message that states when access resumes; no limits on the default Workspace, and organization-wide limits always applying
- Workspaces - Claude Platform Docs — Workspace spend limits and spending alerts set under Settings > Workspaces; only organization admins create workspaces; API keys scoped to a single workspace; personal keys archived when their user is removed from the organization, and a service account key working on after the user who created it is removed
- API credits for Max and Team plans - Claude Platform Docs — Every API key and workspace in an organization drawing on the same balance, and the advice to cap a project's spending by giving it its own workspace with its own spend limit
- Insulin What Is Metered — Fours Doc — The six metered resources: AI input and output tokens, sandbox processor, memory and storage, and object storage; with your own provider key, the provider billing the tokens under your own contract while Fours charges a flat fee per unit; BYOK usage attributed in the usage breakdown to the provider whose key was used; a zero balance still pausing BYOK requests
- Insulin Payment, Limits, and Top-Ups — Fours Doc — Set a monthly spending limit: a ceiling on what the organization may spend in a calendar month, 0 to $100,000, compared against the month's spend so far, pausing AI requests for the rest of the month, stopping automatic top-up, resetting at the start of the next month, and not cleared by adding credit
- Insulin When AI Pauses — Fours Doc — With the monthly limit reached, AI requests paused while running sandboxes keep running and new sandboxes and uploads still work; service back about a minute after the limit is raised or removed; monthly billing never stopped for a balance
- Insulin Billing FAQ — Fours Doc — No limit that warns without blocking; with your own key, the provider billing the tokens directly while Fours charges a flat fee per unit; a zero balance pausing BYOK requests because the per-unit fee is still owed; Settings → Billing not restricted to administrators, with no admin-only view
- Insulin Agents — Fours Doc — Model Selection: a failed model call, from a provider outage, a usage limit or a rejected key, retried on the next connected provider, with the Fours-hosted models as the fallback the turn degrades to; organization agents adding the organization's connected providers, and the built-in assistant and personal agents never reaching the organization's keys; the italic failover note naming both models, reading was unavailable when an outage or a rejected key caused the switch
- Insulin Getting Started — Fours Doc — AI Model Policy: the platform-key fallback switch, on by default, which when off makes the organization bring-your-own-key only and fails closed rather than falling back to Fours; Organization tabs changed only by an org ADMIN; organization integrations connected or disconnected only by an org ADMIN; API-key connections such as Anthropic and OpenAI never showing the Connection expired state
- Integrations Anthropic — Fours Doc — The org-level connection billed to the organization and the user-level one billed to the individual user; editing not supported, so changing the API key means deleting the integration and creating a new one
- Integrations OpenAI — Fours Doc — The org-level API key connection, with usage billed to the organization; editing the API key not supported, so changing it means deleting the integration and creating a new one
- Insulin Reading Your Usage — Fours Doc — The Usage panel on Settings → Billing grouping a period by Resource, User, App, Model or Provider, each row with a quantity, a cost and a share
Keep reading
Stay Updated
New posts, product updates and marketplace strategy are shared on LinkedIn as they publish.
Follow Fours on LinkedIn