Skip to main content

Subscriptions Only Model

Many AI platforms start with a subscription-only model, as it provides predictable recurring revenue and a straightforward customer experience. In some cases, companies rely on this approach due to limitations of their existing billing providers, which may not support real-time usage billing or flexible unit conversions.

AI workloads, however, can fluctuate significantly, making it challenging to align subscription revenue with actual infrastructure costs. Credyt approaches this problem differently: instead of managing subscriptions directly, it uses pre-paid wallet balances that can be credited via the Adjustments API and billed in real time as usage occurs.

This setup allows platforms to continue processing subscriptions through their existing PSP while gaining real-time usage tracking and flexible billing, and positions them to evolve toward a hybrid subscription and topups model as their needs grow.

Implementation Guide

Reflect Subscription Payments in Credyt

API Reference

When a subscription payment is received in your PSP, call the Adjustments API to credit the customer’s wallet according to the defined asset:

POST https://api.credyt.ai/customers/:customerId/wallet/adjustments
 {
"transaction_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"account_name": "default",
"asset": "USD",
"amount": 25,
"description": "Monthly Subscription",
"reason": "external_topup",
"expires_at": "2024-07-29T15:51:28.071Z",
"metadata": {
"psp": "stripe",
"payment_intent": "pi_3RjbbNJNSIruR1rb0GwMGpH0"
}
}

Response

{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"created_at": "2024-07-29T15:51:28.071Z"
}

The wallet balance is updated as per the specified amount and asset.

Send Usage Events

API Reference

As customers use your AI product, report usage events to Credyt. These events deduct from the wallet balance in real time:

POST https://api.credyt.ai/events
{
"events": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"customer_id": "cust_473cr1y0ghbyc3m1yfbwvn3nxx",
"event_type": "message_completed",
"occurred_at": "2024-07-29T15:51:28.071Z",
"subject": "chat_5f53d23a4958",
"description": "Chat message completed",
"data": {
"model": "gpt-4-1",
"input_tokens": 2353,
"output_tokens": 34697
}
}
]
}

Wallet balances decrease in real time as usage is reported, giving you immediate visibility into consumption and remaining credits.

Final Notes

  • Platforms continue managing subscriptions with their existing PSP; Credyt does not replace subscription management.
  • Using pre-paid wallets allows for flexible unit conversions, real-time billing, and a smooth path toward hybrid subscription + topups models.
  • This approach is ideal for companies looking to add real-time usage tracking without overhauling their existing subscription flows.