Documentation/Core Concepts/Prepaid vs. Postpaid Billing

Prepaid vs. Postpaid Billing

VibezCheck supports both billing paradigms with a single configuration toggle:

Which Model Should You Choose?

ModelBest ForHow It WorksFinancial Risk
PostpaidB2B SaaS, enterprise contracts, internal toolsMonthly metered invoice sent at cycle end.Possible card decline at month end.
PrepaidB2C apps, public signups, self-serve toolsUsers buy a $10 credit pack upfront; deducts in real time; locks at $0.Zero risk. You get cash before they use 1 token.

Setting Up Prepaid Credit Wallets

typescript
model: vibezcheck('openai/gpt--mini', {
customer: 'alex@gmail.com',
billing: {
mode: 'prepaid', // 👈 Real-time deduction; locks cleanly at $0
},
// Gracefully switch to eco-mode when balance is low:
fallbackModelOnBudget: 'openai/gpt-4o-mini',
})

Setting Up Postpaid Invoices

typescript
model: vibezcheck('openai/gpt-', {
customer: 'org_acme_corp',
billing: {
mode: 'postpaid', // 👈 Standard Stripe Metered Billing invoice
},
})
Page 7 of 15