Spend limits for AI products

Govern AI usage with limits your product enforces. Cap what each company, user and agent can spend, and stop the overage before the work runs. Works with Stripe.

MacabacusHummingbirdsAutomoxWobbyPlotlyBikebookPickleheadsCloudRakerPagosHannon HillTightknitOneCrewZepSema4.aiSyrtoUniqodeMakeswift
acmeAgentsRunsTeamUsage and limitsBillingJL
AI credits left
1,800of 10,000
Auto top-up on · resets Dec 1
Buy creditsEdit top-up
Balance this monthAlert rules
Nov 1TodayDec 1
  • 5,000 · Heads-up · sent
  • 2,000 · Warning · sent
  • 500 · Last call

Usage policies · what each person and agent can spend

Add policy
Limit40 credits
EveryHourDayWeekMonth

Was 25. The next check passes as soon as you save.

Entitlement checksLive
support-agentRefused · user limit of 25 credits per day14:02:11
ana.kimAllowed · 16 credits left today14:02:08
research-agentAllowed · 11 credits left today14:02:03
dev.patelAllowed · 19 credits left today14:01:57
The check your app runs
const result = await client.check(  { company: { id: "acme" },    user: { user_id: "support-agent" } },  "ai-credits",)
result.allowed → falseresult.reason → "A draw of 2.5 credits exceeds the user limit of 25 credits per day"
After the admin saves 40 a dayresult.allowed → true

No deploy. The next check reads the new policy, and support-agent picks its work back up.

Alerts tell you what was spent. Limits decide what can be.

A billing alert fires after the usage. Real-time usage governance answers in the request path, before the agent runs.

Alert · after the fact

Budget · 10,000Alert sent · Nov 26Budget crossed on Nov 23Nov 1Nov 30

3,400credits past the budget, found on the invoice.

Limit · at runtime

Limit · 10,000Checks return false from Nov 23Nov 1Nov 30

0credits past the limit. The check refused the work before it ran.

Without a ceiling, AI usage ends in a bill nobody planned

Buyers can't predict what they'll pay

Procurement asks what stops a runaway bill. Without a cap you can show them, the deal waits while someone builds one.

One agent drains the whole account

A shared balance has a total but no rate. One power user or one agent can spend a month of credits in an afternoon.

The alert shows up after the money is spent

Limits hard-coded in the app drift from the pricing, and billing alerts fire from the invoice after the spend already happened.

Set a limit once. Every check enforces it.

Limits live in Schematic, so changing one takes no deploy. Your app asks before the work runs and gets a yes or a no.

Set the limit

Put a hard limit on a metered feature, add a credit grant to the plan or set a spend cap on a company or one user.

Spend and usage controls

Warn before the limit

Add a usage warning on a feature or up to five thresholds on a credit grant. Webhooks fire as usage approaches each one.

Warn before a limit

Choose what happens at the limit

You can block, top up automatically, let the customer top up or bill the overage with an overdraft limit.

Empty balances and overage

Enforce it on every check

Your app checks before the work runs. Once a customer is past a limit, the check returns false with a reason that names the policy.

Usage controls
const result = await client.check(
{ company: { id: "acme" },
user: { user_id: userId } },
"ai-credits",
);
if (!result.allowed)
return showLimit(result.reason);

One check before the work runs. The answer already covers the company's cap, the user's cap and the balance.

What one check returns

Three answers come back before the work runs.

  1. 1AllowedYes or no.
  2. 2ReasonNames the limit.
  3. 3ResetsWhen the period ends.

What support-agent gets back at its daily cap:

allowed
false
reason
user limit of 25 credits per day
resets
Nov 12, 00:00 UTC

Every cap, warning and top-up runs through one check.

Agent runs · Acme · this month16,400 of 25,000
IncludedSoft limit · 10,000Billed usage startsTier limit · 15,000The rate changesHard limit · 25,000Access stops
  • Soft limit · 10,000Billed usage starts
  • Tier limit · 15,000The rate changes
  • Hard limit · 25,000Access stops
Fired Nov 12soft_limit.reached
Fired Nov 19tier_limit.reached
Fires at 20,000limit.warning

Hard, soft and tier limits on any metered feature

A hard limit is where access stops. A soft limit marks where included usage ends and billed usage begins, and customers see it. A tier limit fires as usage crosses into the next pricing tier.

Usage control · AcmeAdd policy
Whole company10,000 per month
One user · support-agent25 per day
Whole company500 per request

Preview: 10,000 credits per month across all users

Caps for a company or one user

Limit credit spend by hour, day, week or month, or per request. A per-user cap applies inside each company the user belongs to.

Credit grant · 10,000 a month3 of 5 set
5,000 left2,000 left500
credit.usage_warning_reachedSent
In-app banner20% of your credits left

Warnings with webhooks

Set up to five thresholds on a credit grant. Hard, soft and tier limits each send a warning event and a reached event, so your team and your customer hear about it first.

AI conversations · Enterprise118
Sold · 100Cut off · 150
The customer sees100 of 100
The check returnstrue

Fair-use limits

Advertise the number you sold and cut off at the number in the contract. The warning value shows as the limit in components, and access stops at the real one.

Auto top-up · customer portal
When my balance falls below500
Add this many credits5,000

Charged to the card on file through Stripe

Top-ups the customer controls

Top up automatically or let customers turn auto top-up on and pick their own threshold and amount in checkout and the customer portal.

Credit balance · Acme1,900 past zero
Granted · 10,0000Overdraft limit · 5,000
At zeroBill in arrears
Invoice chargesMonthly

Overage with a ceiling

Let usage run past zero and bill it in arrears, with an overdraft limit on how far it can go. Billing thresholds invoice early on metered features.

AI credits · resets Dec 18,200 / 10,000
Usage by user · 30 days1,800 left
support-agent3,100 · 38%
research-agent2,460 · 30%

Limits customers can see

Components and SDK hooks show usage against each limit, when it resets and who on the team used it, from the same data your checks use.

Spend limits that work with Stripe

Schematic decides what a customer can use in your product. When a limit leads to a charge, Stripe collects it.

SchematicSchematicdecides at the limitStripecollects

Block usage

Checks return false until credits are added.

Nothing to collect

Top up

Automatically at a threshold, or when the customer buys a bundle.

Charges the card on file

The payment method the customer already has.

Bill overage

Usage runs past zero, up to an overdraft limit.

Sends the overage invoice

At the end of the period or every month.

Invoice early

A metered feature reaches a billing threshold.

Invoices before the period ends

As soon as usage reaches the units you set.

What Stripe leaves to your app

Stripe handles the billing. A limit is enforced inside your product, and this is what that takes.

  • Enforcement at request time

    Stripe meters usage, and its alerts and threshold invoices act after that usage, outside the request path. Schematic answers the check before the work runs.

  • Caps inside one account

    Stripe bills the customer account, with no cap for each user or agent inside it. Schematic limits a company, a user or an agent by hour, day, week or month.

  • The policy at the limit

    Whether to block, top up automatically or allow overage with a ceiling is logic your app has to own. In Schematic it is a setting, and Stripe collects the charge.

  • The balance customers see

    The balance and limits a customer sees in your product come from your app, not from a Stripe invoice. Schematic's components and SDK hooks show them from the same data the checks use.

Where AI teams put a ceiling on spend

Fair use on enterprise contracts

You can sell 100, warn at 100 and keep access through 150. Overage on invoice terms bills in arrears up to an overdraft limit.

Budgets per seat and per user

Grant credits per seat and cap the heaviest users, so one person can't use up the whole team's allowance.

Agents and oversized jobs

Cap a single request, check the size of a job before it runs and hold credits so parallel agents can't spend the same balance twice.

Macabacus

Why Macabacus gave its customers usage caps

“You want to look at things like usage caps, bundles to buy more, top-ups. You need to be able to give the customer some sort of predictability around cost. That's really what they're looking for.”
Rahul GillLeads customer experience, Macabacus

Macabacus sells to banks and financial institutions and needed usage caps, bundles and top-ups so buyers could predict the cost of its first AI product.

Read how Macabacus monetized its first AI productWatch the Macabacus interview

Give your customers limits they can see.

Schematic’s ready-made credit wallet shows each customer the balance, usage against every limit and when it resets, with a way to top up before work stops.

Alerts and homegrown counters warn you. Schematic enforces the limit.

Many billing platforms tell you a threshold was crossed and leave the next step to your app. Homegrown counters stop one feature at a time. Schematic checks the limit before the work runs and decides what happens next.

Spend limits with Schematic, other usage-based billing platforms, or homegrown counters
SchematicSchematic
Other usage-based billing platforms
Homegrown counters
Enforced in the product
The check returns false and names the limit
Often a webhook your app acts on
Your code, feature by feature
Company and per-user caps
By hour, day, week, month or request
Varies; often per customer or subscription
Custom counters and reset windows
Warnings before the limit
Usage warnings and up to five credit thresholds
Threshold notifications
Alert rules you write
What happens at the limit
Block, auto top-up, customer top-up or overage with a ceiling
Often a hard stop or a webhook you act on
A hard stop
Fair use
Advertised limit and a higher cutoff
Often one threshold; a separate cutoff may need custom work
Custom logic
Customer visibility
Components and hooks from the same data
Dashboards or your own UI
Your own UI
Parallel agents
Reservations hold credits for work in flight
Often no hold on credits for work in flight
Locks you build
Best for
SaaS and AI products that sell usage and need limits customers can see
Teams that already rate invoices elsewhere and mainly need notifications
One or two limits with spare engineering time

You could build this. Here is what building it means.

A homegrown counter starts as one if-statement. A limit customers can plan around needs all of this.

  1. A counter for every feature, per company and per user
  2. Reset windows by hour, day, week and month
  3. A check in the request path that answers before the work runs
  4. Holds, so parallel agents can't spend the same credits twice
  5. Warning thresholds, and webhooks that fire once each
  6. Top-ups and overage invoices wired to Stripe, with a ceiling
  7. A screen where customers see their limits and what is left
  8. A way for sales to change one customer's cap without a deploy

Then pricing changes, and someone owns all eight for good.

Or it's one check with Schematic.

The limits live in Schematic. Your app asks before the work runs, and the answer already covers every cap, warning and balance.

const { allowed, reason } =
  await client.check(ctx, "ai-credits")

Built for teams that need it to hold up

Built to stay up, stay secure and stay observable.

SOC 2 · AICPAGDPR compliantGDPRCOMPLIANTStripe Verified Partner

Availability

  • 99.99% uptime SLA
  • 24/7 support
  • Public status page
Availability docs

Security

  • SOC 2 Type 2 compliant
  • PCI Level 1 via Stripe
  • GDPR compliant, SSO and 2FA
Security docs

Observability

  • Audit logs and real-time events
  • Client-side rule evaluation
  • Replicator: reads stay in your network
Observability docs

Questions teams ask about spend limits

Short answers, each one backed by the docs.

A spend limit caps how much a customer can use or be charged. In Schematic that includes hard limits on metered features, caps on credit spend for a company or one user and a ceiling on overage. Your app enforces them when it checks access, so usage stops at the limit instead of showing up on the next invoice.

Give customers a ceiling they can plan around

Cap AI usage per company, user and agent, and stop it in your product before it reaches the invoice.