Billing & credits
Sleepy has two kinds of money, and keeping them straight makes the limits make sense:
Sleepy has two kinds of money, and keeping them straight makes the limits make sense:
- Plan allowance — the monthly spend your plan includes. It refills every 30-day billing period. See Usage limits.
- Extra credits — dollars in your wallet (
balanceUSD). You buy them, receive them as gifts, or earn them from referrals. They are drawn on after the plan allowance, and they never expire.
This page covers how credits work, how to buy them, gift codes, subscriptions, and the referral program.
The two pools, and how they combine
A request is paid for in this order:
- Plan allowance (monthly, refills every 30 days).
- Extra credits (wallet), if the allowance is spent or the request is an overage against a rolling-window cap — but only when auto-use credits is on.
Auto-use credits is a per-account switch (default on). Find it on the
Usage page or in Settings. When it's off, requests are blocked at the plan cap
even if you have credits sitting in the wallet — you'll get a 402 telling you
to enable it.
Rolling-window overage is billed to credits, not to your monthly allowance. So a burst that breaks the 5-hour cap can't silently eat your monthly budget.
Buying extra credits (top-ups)
- Go to Dashboard → Purchases (or the "Top up" button on the Usage page).
- Choose an amount (BDT) and pay with PipraPay.
- On a completed payment the credits land in your wallet.
Payments are verified server-side against the gateway (the webhook callback is never trusted on its own). Pending deposits that never complete are automatically expired by a background job.
Subscriptions
Plans are monthly subscriptions, also paid via PipraPay:
- Choose a plan at sleepyai.org/pricing or Dashboard → Plans; you're redirected to the payment gateway.
- When payment completes, the subscription activates, your plan's included credits are added to your wallet as a ledger entry, and all your usage meters reset (monthly allowance, rolling-window anchors, and today's free-model budget) — so you get the fresh plan's limits immediately.
- The subscription grants its plan's limits while it is active and not past its paid period end. A lapsed subscription (cancelled, past-due, expired) falls back to the default/free plan's limits — a stale plan assignment can never keep granting paid access.
- You can change plan from Dashboard → Plans; this re-resets your meters to the new plan.
The hosted service bills in BDT via PipraPay. Self-hosted deployments can configure a different gateway or top-up flow from Admin → Settings.
Gift codes
The Shop (Dashboard → Shop) sells products that mint a single-use gift
code (SLEEPY-XXXX-XXXX-…) after payment. Codes can reward:
- Credits (a USD wallet top-up),
- Bonus tokens (added to the non-expiring free-model token bonus balance),
- A plan (30 days of a paid plan).
Redeem a code at sleepyai.org/redeem or Dashboard → Redeem. A code is single-use and can have an expiry; "already redeemed" or "expired" are the errors you'll see if it's spent or stale. Gift codes are how you send someone credit without sharing your account.
Referral program
Share your referral link (Dashboard → Referrals). When someone signs up through it and qualifies, both sides can earn:
- Referrer — configurable credit (USD) and/or free tokens.
- Referee — configurable credit (USD) and/or free tokens.
The program is admin-configurable: it can be toggled off, the rewards changed, and a rolling-window cap applied (e.g. at most N rewarded referrals per referrer per 7 days). Referral free tokens go into the same non-expiring bonus balance that overflows the daily free-model budget.
Your transaction history
Dashboard → Transactions lists every ledger entry touching your account:
purchases, recharges, plan subscriptions, per-request api_cost deductions
(extra-credit spend), admin adjustments, refunds, and gift redemptions. The
Usage page's recent-requests table shows the per-request cost and which source
(api / chat / cli) made it.
FAQ
"My monthly allowance is spent but I have credits — why am I blocked?" Auto-use credits is probably off. Turn it on in Settings / the Usage page, or top up if the wallet is empty.
"Do credits expire?" No. Wallet credits never expire and are never reset at the billing-period boundary. Only the plan's included allowance refills.
"I upgraded — is my usage cleared?" Yes. Activating or changing a plan resets the monthly meter, the rolling-window anchors, and today's free-model budget.
"Why was I charged credits when my monthly allowance wasn't full?" The request broke a rolling window cap (5h/24h/weekly). Window overage is routed to credits so bursts don't consume your monthly budget.
"How do I get a refund?"
Refunds are an admin operation (they appear as refund entries in the ledger).
Contact support via Telegram or the email on the site.
Next: Usage limits · API reference