How it works
A customer balance is filled in one of two ways. The customer can buy credits by card through Locus, or you can move credits from your workspace pool after you bill them yourself. Either way, their calls pay your configured price.Let customers buy credits
The billing widget shows a customer their balance and opens Locus-hosted Stripe Checkout. It runs in your app with a publishable key and a short-lived end-user token that your server issues. Your server can also create a checkout link for a specific customer. The credits they buy belong to that customer.Allocate credits after your own billing
Allocation moves credits you already hold from your pool to a customer. It doesn’t charge a card.- In the dashboard: use Fund a user under Billing → Credits.
- From your server: allocate credits through the API after your own billing confirms payment.
- To take credits back: deallocate to return unused credits to your pool.
Next steps
Billing widget
Put balance display and top-ups in your app.
Credits and pricing
Set the markup your customers pay.