Free: $1 of model usage a month. **Pro:** $20 a month with $20 of model usage at cost, then usage at cost up to your spend limit. **Business:** $40 a seat a month, $40 of usage per member, then usage at cost up to each member's spend cap. **Annual:** Pro $200 a year, Business $400 a seat a year, with the month’s usage included every month, then usage at cost billed monthly.Ledger runs the full tier ladder of an AI coding tool: included usage at cost, spend limits customers set themselves, per-seat teams with an allowance and cap for each member, and annual plans that include usage every month. Model usage is a dollar balance: a credits feature at 1 credit = $0.0001, with
creditCost: 1, so each call sends its real cost in credits as quantity. Pro bills usage past its balance as overage, and the customer’s spend limit is their overage cap. Business adds a seat price and an entity per member, which holds that member’s included usage and their spend cap.
The catalog
Each of the five members spends their own $40 of usage, and usage past it bills at cost on the renewal invoice.
The annual plans carry the same usage at cost, with the same monthly caps. Each month’s usage past the included amount bills on its own invoice as soon as the month ends (Annual plans).
The calls
Every model call: reserve, run, settle. On Business, pass the member’sentityId so the call spends their allowance and counts against their cap. On Free and Pro, leave it out.
0 stops usage past the included $20.
allowanceCredits is their $40 of included usage each month, and `capCredits` their spend cap past it, here $60. An admin changing a member’s cap calls upsertEntity again with the new capCredits.
quantity: -1 and delete their entity, as in Seats with credits. Once a member’s allowance and cap are spent, that member stops at their cap while the rest of the team keeps working:
Response
free at signup. Free to Pro or Business is an attach; the team’s seats, counted on Free, are billed on Business’s first invoice. Pro to Business, and monthly to annual, are upgrades.
Rules
- Entities need a
billing:writekey, because an allowance is credits on top of the plan. Entities has how members spend. - Every member gets the full allowance. A member added late in the month gets the full $40; their seat is prorated by Stripe (Seats with credits).
- Annual plans include usage each month. The year’s invoice grants the first month, and each later month arrives with the first call in it. Usage past it bills on a monthly invoice (Annual plans).
- Spend limits and the team ceiling are overage caps. Overage has which one applies.
- Units. Prepaid dollar balance has the credit scale and its limits.
Related
- Prepaid dollar balance: usage at cost on one plan, or prepaid.
- Seats with credits: per-member allowances in full.
- Overrides: a customer’s own cap or rate.