Top-ups are one-time credit purchases that let you add balance to your account whenever you need it, with no recurring subscription required. Learn about available packs, payment methods, and how credits are applied automatically after payment.
A top-up pack is a one-time purchase of a fixed credit amount at a fixed price. Purchased credits do not expire over time — they remain available until fully consumed. This model is ideal for developers and businesses who prefer pre-paid billing without recurring charges.
You can retrieve the list of currently available packs along with their prices and credit amounts via the following endpoint:
GET https://llmapi.resayil.io/api/billing/topup-packs
Authorization: Bearer YOUR_API_KEY
{
"packs": [
{
"id": "pack_starter",
"name": "Starter Pack",
"price": 5.00,
"currency": "USD",
"credits": 5000,
"popular": false
},
{
"id": "pack_pro",
"name": "Pro Pack",
"price": 20.00,
"currency": "USD",
"credits": 25000,
"popular": true
},
{
"id": "pack_business",
"name": "Business Pack",
"price": 50.00,
"currency": "USD",
"credits": 70000,
"popular": false
}
]
}
The credits field represents the number of credit units added to your account upon successful payment. The popular flag indicates the most commonly chosen pack.
Important: There is currently no API endpoint for completing a purchase directly — payment must be initiated through the web UI only.
Follow these steps to purchase a top-up pack:
Payments are processed through MyFatoorah, a certified and secure payment gateway. Supported payment methods include:
Security: No card data is stored on LLM Resayil servers. MyFatoorah processes all payment data securely in accordance with PCI-DSS standards.
The system relies on a webhook from MyFatoorah to receive instant payment confirmations. Upon a successful transaction:
Delayed credit? In the rare case of a delayed notification, wait a few minutes and refresh. If credits have not appeared after 15 minutes, contact support with your transaction reference number.
You can retrieve your past top-up transactions via the following endpoint (20 records per page):
GET https://llmapi.resayil.io/api/billing/topup-history
Authorization: Bearer YOUR_API_KEY
To paginate, append ?page=2 (and so on) to the URL.
{
"data": [
{
"id": "txn_abc123",
"pack_name": "Pro Pack",
"credits": 25000,
"amount_paid": 20.00,
"currency": "USD",
"status": "completed",
"created_at": "2025-11-14T09:31:00Z"
},
{
"id": "txn_xyz789",
"pack_name": "Starter Pack",
"credits": 5000,
"amount_paid": 5.00,
"currency": "USD",
"status": "completed",
"created_at": "2025-10-02T14:17:00Z"
}
],
"meta": {
"current_page": 1,
"per_page": 20,
"total": 2
}
}
The status field may be completed, pending, or failed. Query transactions with a pending status if you are expecting credits that have not yet appeared.