buckette for founders adding AI features

Your product has AI features now: a post writer, an image generator, an “ask AI” button on a report. Each time a customer uses one, you pay for the tokens. You may absorb the cost, include an allowance in your plans, or charge for what goes past it. Whatever you decide to charge, the limit per customer is the same piece of code. Don’t write it: give each customer a bucket in buckette, and have your backend ask it before each call to the model.

The buckette Console's per-period ledger for the tokens dimension, filtered to the buckets under an AI assistant allowance: one row per customer (Tidewater Logistics, Bluefin Analytics, Marlow & Finch, Northwind Legal, Orchard Health, Kestrel Studio) with what was moved in from the allowance, what each consumed, its lowest balance, and 88,732 tokens refused to Kestrel Studio once it reached its share.
The per-period ledger in the Console, one row per customer under the assistant's allowance: what each was given and used, and what was refused to the one that reached its share.

Absorb the cost, with guardrails

You do not have to pick a price on day one.

  • Watch before you limit. A dimension in reporting mode counts every use and never refuses one. Run your features that way for a few weeks: the per-period ledger says what each customer used in each period.
  • Usage by feature or model. Put the feature, the model or the plan in a consumption’s metadata, and buckette breaks the usage down by it. A CSV export takes it to a spreadsheet.
  • Several costs in one call. Tokens, dollars and a paid lookup are dimensions of the same bucket, recorded together, all of it or none of it.
  • Alerts without refusals. A webhook fires when a customer goes past a level you set, while nothing is stopped yet.

Cap the runaways

One customer’s script stuck in a loop should stop at a limit, not at your model provider’s invoice.

  • A hard limit per customer. Switch a dimension to locking, and a call that does not fit is refused whole: nothing is taken, and your feature does not run.
  • A bounded budget per run. Split a child bucket for a long agent run, so one run cannot spend more than its share. Reclaiming it when the run ends returns what it did not use.
  • Stop a customer at once. Freeze their bucket from the Console or the API, and every new use is refused until you unfreeze it.

So many a day, one a week

A new feature can start small.

  • Limits that refill. Give a customer’s bucket a number of uses (or tokens) and refill it daily, weekly or monthly, in your time zone. An unused balance can be thrown away at the reset or carried over, up to a cap.
  • One bucket per cadence. A refill schedule covers a whole bucket, so a feature limited by the day and another limited by the week are two buckets under the customer’s.
  • When there will be room. A refused call can say when the next refill will make room, so your product can tell the customer when to come back.

A monthly allowance, then overage

For a plan that includes some use and charges for the rest:

  • Included, then measured. A dimension in metered overage spends the allowance first, then goes below zero, down to a line you set (or with no line at all), and is refused past it.
  • Overage you can invoice from. The overage is measured per use, and the per-period ledger and the CSV export give it per customer and per period. A webhook says when a customer goes into overage.
  • Credit after a payment. Top up a customer’s bucket from your own billing, with an id that makes a repeated top-up count once.

Size the limit from what customers use

Once your features have run in reporting mode for a while:

  • A limit most customers never reach. With each customer’s bucket under one parent, buckette ranks the customers by their busiest day, week or month and suggests the limit that the share of customers you pick stays under. It lists the customers who would be above it.
  • Replay a policy. For one bucket, a dry run replays its record under a refill policy and says how much would have been served and refused.
  • Nothing changes until you say so. A suggestion is only a suggestion: you set the limit yourself.

At the limit

A refused call is the moment your product decides what happens next: an upgrade offer, a wait until the refill, or a hand-off to something else. buckette gives you that moment and the facts (what is left, when there will be room). What you show the customer is yours.

What buckette does not do

buckette meters and limits what your backend reports to it. It does not set your prices, bill your customers, or see your model provider’s own counter. You choose what a use costs and send it; your billing reads the overage from the ledger or the export.

Try it

Create a tenant in the Console and follow Getting started. The consuming and replenishment help topics on your tenant’s address describe each part.