All amounts are denominated in USDC.
Pricing types
Retempo supports three pricing types that cover the most common billing models for AI agents, API providers, and SaaS products.FIXED_RECURRING
Charges the same amount on every billing interval. Use this for subscription tiers where the price doesn’t change month-to-month — a flat $49/month Pro plan, for example.
USAGE_BASED
Bills subscribers based on recorded usage events. The amount on the plan acts as a per-unit rate or cap. Retempo aggregates usage events attached to the invoice before settlement.
ONE_TIME
A single charge with no recurring component. The
billingInterval is automatically set to NONE. Use this for setup fees, one-off API credits, or lifetime access purchases.Billing intervals
ThebillingInterval field controls how frequently a recurring plan renews. For ONE_TIME plans, always use NONE.
Creating a plan
To create a payment plan, send aPOST request to /api/v1/services/:serviceId/plans. You must supply a name, a pricingType, and an amount. The billingInterval defaults to NONE if omitted, and currency defaults to USDC.
Below are three examples covering each pricing type.
Monthly fixed plan
Weekly usage-based plan
One-time setup fee
Listing plans
To see all payment plans attached to a service, send aGET request to the plans endpoint for that service: