Kabin

Billing

A monthly plan buys included VM time. A USD wallet pays overage, per second. The wallet never pays the plan.

Launch pricing, excl. VAT, subject to change. Payments run through Stripe. See pricing for the numbers.

Plan

  • A plan includes VM time (in hours of the default size), saved snapshots and start rates. Included time resets each billing period; unused time expires.
  • Other sizes consume included time at their multiplier: small 0.5, default 1, large 2.
  • Upgrade applies at once and starts a new period. You are credited the smaller of the unused part of the old price and the unused included time valued at the plan price; the new price is charged minus that credit. A credit larger than the new price is carried and discounts later plan charges; it never becomes wallet money.
  • Downgrade applies at the end of the paid period. Until then nothing changes and nothing is charged.
  • Cancel ends the plan at the end of the paid period. After the end there is no plan and new starts answer 402 billing_required until you subscribe again.

Wallet

  • One USD balance per account for overage only. Top-ups are whole dollars from $15 to $100,000; payments of $200 or more earn a bonus between 2% and 25%, shown before you pay.
  • The balance may go negative during a grace period of up to 24 hours; running sandboxes keep running. After that, running sandboxes are stopped (the disk is kept) and resume once you pay. Your next payment clears the debt first. On smaller plans the sandboxes are stopped earlier if the debt exceeds the greater of 25% of the plan price or $50.
  • Auto top-up charges a saved card when the balance falls below 10% of the top-up amount (never below $5). It needs a plan and a saved card and turns itself off after three declined charges.
  • Extra starts with an empty wallet are refused with 429 rate_limited.

Invoices, taxes and cards

Stripe sends receipts and invoices. Billing address and VAT ID are collected at checkout. Cards and invoices are managed in the Stripe customer portal, reachable from the dashboard billing page.

Account routes

These routes are used by the dashboard and the CLI. They sit on a separate base, https://api.kabin.dev/api/account, take the same bearer key and are not part of the stable v1 contract; they can change.

Account routes
RoutePurpose
GET /plansThe plan table: monthlyDollars, maxConcurrent, start rates, included hours and snapshots
GET /billingCurrent plan, pendingChange and carried planCreditDollars
POST /plan {"priceDollars": 100}Start or change the plan. When payment is needed the answer contains a checkoutUrl.
POST /plan/cancelSchedule the end of the plan at the period end
GET /walletBalance, grace end, auto top-up state, cards
GET /billing/wallet/quote?dollars=1000Bonus quote: {dollars, bonusPercent, bonusDollars, creditedDollars}
POST /billing/wallet/pay {"dollars": 100}Returns {url, quote}; open url to pay with Stripe Checkout
POST /billing/wallet/auto-top-up{"enabled": true, "amountDollars": 100} or {"enabled": false}
POST /billing/wallet/cardsReturns {url} to add a card

Related errors: 402 subscription_required (paying or auto top-up without a plan), 400 invalid_amount, 409 card_required, 409 requires_active_plan. See errors.