Skip to main content
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

Business’s price is its first seat: $40 for the plan with one seat included, then $40 for each seat after it, so it sits above Pro and moving from Pro is an upgrade. A 5-seat team’s first Business invoice is $200: 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’s entityId so the call spends their allowance and counts against their cap. On Free and Pro, leave it out.
Pro: the customer sets their spend limit. Save it as their own overage cap. 0 stops usage past the included $20.
Business: a member joins. Add a seat, then give the member an entity: 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.
When a member leaves, track the seat with 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
Moving between tiers. Attach 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:write key, 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.