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.
Usage policies · what each person and agent can spend
Add policyWas 25. The next check passes as soon as you save.Was 25. At this limit the next check is refused.
Was 25. The next check passes as soon as you save.Was 25. At this limit the next check is refused.
Was 25. The next check passes as soon as you save.Was 25. At this limit the next check is refused.
Was 25. The next check passes as soon as you save.Was 25. At this limit the next check is refused.
Was 25. The next check passes as soon as you save.Was 25. At this limit the next check is refused.
const result = await client.check( { company: { id: "acme" }, user: { user_id: "support-agent" } }, "ai-credits",)
No deploy. The next check reads the new policy, and support-agent picks its work back up.
Usage policies · what each person and agent can spend
Add policyResets Dec 1. Once the cap is reached, checks return false until then.Usage has reached this cap. Checks return false until Dec 1.The next check passes as soon as you save.At this limit the next check is refused.
Resets Dec 1. Once the cap is reached, checks return false until then.Usage has reached this cap. Checks return false until Dec 1.The next check passes as soon as you save.At this limit the next check is refused.
Resets Dec 1. Once the cap is reached, checks return false until then.Usage has reached this cap. Checks return false until Dec 1.The next check passes as soon as you save.At this limit the next check is refused.
Resets Dec 1. Once the cap is reached, checks return false until then.Usage has reached this cap. Checks return false until Dec 1.The next check passes as soon as you save.At this limit the next check is refused.
Resets Dec 1. Once the cap is reached, checks return false until then.Usage has reached this cap. Checks return false until Dec 1.The next check passes as soon as you save.At this limit the next check is refused.
Resets Dec 1. Once the cap is reached, checks return false until then.Usage has reached this cap. Checks return false until Dec 1.The next check passes as soon as you save.At this limit the next check is refused.
const result = await client.check( { company: { id: "acme" }, user: { user_id: "support-agent" } }, "ai-credits",)
Checks return false for everyone at Acme until the period resets on Dec 1.
No deploy. The next check reads the new cap, and work picks back up for everyone at Acme.
50% of your credits left 5,000 of 10,000 credits until the reset on Dec 1.
20% of your credits left 2,000 of 10,000 credits until the reset on Dec 1.
5% of your credits left 500 of 10,000 credits until the reset on Dec 1.
Alert rules · 3 of 5 set
Add ruleconst { featureUsage, warningTiers } = useSchematicEntitlement( "ai-conversations", );const warning = warningTiers?.find( (t) => t.key === "default",);if (featureUsage >= warning?.value) showBanner();
The webhook fires once as the balance drops to each threshold. Checks return the thresholds, so your app can show the banner.
Out of credits. Work is paused.
Auto top-up added 2,000 credits. Work continues.
Your top-up added 2,000 credits. Work continues.
Out of credits. New usage is billed in arrears.
5,000 credits added. Work has resumed.
When the balance runs out · set on each credit grant
switch (event.type) { case "credit.limit.warning": return showLowBalanceBanner( event.body.company, ); case "credit.limit.reached": return offerTopUp(event.body.company);}
Checks return false until credits are added, so no work runs past the balance.
Credits are added when the balance drops to the threshold, so the next check passes.
Each customer sets a threshold and an amount, and their top-up runs when the balance drops.
Usage runs past zero up to an overdraft limit of 5,000 credits, and the overage goes out on a monthly invoice.
The purchase lands on the balance, and the next check passes. No deploy.
A billing alert fires after the usage. Real-time usage governance answers in the request path, before the agent runs.
Alert · after the fact
3,400credits past the budget, found on the invoice.
Limit · at runtime
0credits past the limit. The check refused the work before it ran.
Procurement asks what stops a runaway bill. Without a cap you can show them, the deal waits while someone builds one.
A shared balance has a total but no rate. One power user or one agent can spend a month of credits in an afternoon.
Limits hard-coded in the app drift from the pricing, and billing alerts fire from the invoice after the spend already happened.
Limits live in Schematic, so changing one takes no deploy. Your app asks before the work runs and gets a yes or a no.
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 controlsAdd 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 limitYou can block, top up automatically, let the customer top up or bill the overage with an overdraft limit.
Empty balances and overageYour 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 controlsconst result = await client.check({ company: { id: "acme" },user: { user_id: userId } },"ai-credits",);if (!result.allowed)return showLimit(result.reason);
POST /billing/credits/spend-policies{"billing_credit_id": creditTypeId,"user_id": userId,"window_amount": 25,"window_unit": "day","label": "Support agent daily cap"}
const { policies } = useSchematicCreditSpendPolicies();policies.map((p) =>`${p.consumed} of ${p.limit} credits used`,);
One check before the work runs. The answer already covers the company's cap, the user's cap and the balance.
Three answers come back before the work runs.
What support-agent gets back at its daily cap:
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.
Preview: 10,000 credits per month across all users
Limit credit spend by hour, day, week or month, or per request. A per-user cap applies inside each company the user belongs to.
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.
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.
Charged to the card on file through Stripe
Top up automatically or let customers turn auto top-up on and pick their own threshold and amount in checkout and the customer portal.
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.
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.
Schematic decides what a customer can use in your product. When a limit leads to a charge, Stripe collects it.
Checks return false until credits are added.
Nothing to collect
Automatically at a threshold, or when the customer buys a bundle.
Charges the card on file
The payment method the customer already has.
Usage runs past zero, up to an overdraft limit.
Sends the overage invoice
At the end of the period or every month.
A metered feature reaches a billing threshold.
Invoices before the period ends
As soon as usage reaches the units you set.
Stripe handles the billing. A limit is enforced inside your product, and this is what that takes.
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.
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.
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 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.
Send limit events to your team and keep user identity in sync, so per-user caps land on the right person.
You can sell 100, warn at 100 and keep access through 150. Overage on invoice terms bills in arrears up to an overdraft limit.
Grant credits per seat and cap the heaviest users, so one person can't use up the whole team's allowance.
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.
“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.”

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 interviewSchematic’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.
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.
Other usage-based billing platforms | Homegrown counters | ||
|---|---|---|---|
Enforced in the product | Schematic✓The check returns false and names the limit | Other usage-based billing platformsOften a webhook your app acts on | Homegrown countersYour code, feature by feature |
Company and per-user caps | Schematic✓By hour, day, week, month or request | Other usage-based billing platformsVaries; often per customer or subscription | Homegrown countersCustom counters and reset windows |
Warnings before the limit | Schematic✓Usage warnings and up to five credit thresholds | Other usage-based billing platformsThreshold notifications | Homegrown countersAlert rules you write |
What happens at the limit | Schematic✓Block, auto top-up, customer top-up or overage with a ceiling | Other usage-based billing platformsOften a hard stop or a webhook you act on | Homegrown countersA hard stop |
Fair use | Schematic✓Advertised limit and a higher cutoff | Other usage-based billing platformsOften one threshold; a separate cutoff may need custom work | Homegrown countersCustom logic |
Customer visibility | Schematic✓Components and hooks from the same data | Other usage-based billing platformsDashboards or your own UI | Homegrown countersYour own UI |
Parallel agents | Schematic✓Reservations hold credits for work in flight | Other usage-based billing platformsOften no hold on credits for work in flight | Homegrown countersLocks you build |
Best for | SchematicSaaS and AI products that sell usage and need limits customers can see | Other usage-based billing platformsTeams that already rate invoices elsewhere and mainly need notifications | Homegrown countersOne or two limits with spare engineering time |
A homegrown counter starts as one if-statement. A limit customers can plan around needs all of this.
Then pricing changes, and someone owns all eight for good.
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 to stay up, stay secure and stay observable.
Short answers, each one backed by the docs.
Cap AI usage per company, user and agent, and stop it in your product before it reaches the invoice.
Pick a time with the Schematic team. 30 minutes, straight to your questions.