Prepaid credits

    Prepaid credits are bought before they are used: the customer pays up front, receives a balance, and each use draws it down. The seller is paid before delivering the service, and the customer can see exactly what remains.

    How it works

    Checkout sells a package of credits, the payment confirmation issues them to the customer's balance, and every billable action deducts from that balance. When the balance cannot cover an action, the product either blocks it, prompts a purchase, or tops up automatically from a saved card.

    Prepaid removes collection risk: there is no invoice to chase and no usage you served but cannot bill. It also caps a customer's spend at what they chose to buy, which makes it easier to sell to self-serve buyers who are wary of open-ended bills.

    Example

    A transcription API sells 10,000 credits for $50, where one credit transcribes one minute. A customer who transcribes 3,200 minutes in a month has 6,800 credits left. Revenue of $50 was collected on day one, and the remaining 6,800 credits represent service still owed to that customer.

    Prepaid credits in Cred

    Customers buy credit packages through hosted Stripe checkout or x402 stablecoin payments, and credits are issued when the payment is confirmed. Your server deducts credits as features are used, and a deduct that would overdraw the balance returns an insufficient-credits error.

    Hosted Checkout docs

    Questions

    What happens when a prepaid balance runs out?
    That is a product decision. Common choices are to block the action and show a buy button, to let a small negative balance through and recover it on the next purchase, or to charge a saved card automatically with an auto top-up rule.
    Do prepaid credits have to expire?
    No. Some products expire credits to limit long-lived liabilities, but expiry is a policy choice with legal and customer-trust trade-offs, not a requirement of prepaid billing.
    All glossary terms

    Your first credit is
    one request away.

    No card needed to start.

    ai-studio · tokens · last 30 days+146k issued