Billing, invoices and overage
How billing works per organization: changing plan, the monthly cycle, usage, invoices and payment, choosing which services may go beyond their allowance, and cancelling.
Billing belongs to the organization: one plan covers all its projects and one invoice is issued per month. The organization's owner pays: every account owns one organization (on every plan) and can be a member of any number of others. Prices are on the pricing page; every limit is in Plan limits.
#Change plan
Organization › Billing › Change plan
Owners, admins and members with
billing.managecan change it.Check out
Pay for the new plan; it applies to every project in the organization at once.
Limits move with it
Higher limits apply immediately. On a lower plan, actions beyond its limits are refused with
403 PLAN_LIMIT_REACHED(for example creating more projects than it allows).
From code
const plans = await sovaria.billing.listPlans() // prices and the limits each plan enforces
const sub = await sovaria.billing.getSubscription(orgId) // plan, cycle, status, renewal
const usage = await sovaria.billing.getUsage(orgId) // this month against the allowancesA plan change takes effect once its payment is confirmed and is charged in full for the period; add-ons (custom domains, extra projects) are prorated. Yearly billing (billing_cycle: "annual", 20% off the monthly price, renewing every 12 months) is available through the billing API; the console offers monthly billing for now.
#Usage and allowances
Each plan includes monthly allowances (requests, storage, function compute, egress, emails, messages…) and ceilings (projects, connections, file size…). Allowances reset each month. Project Settings › Plan & usage shows usage against each one, and the console warns before you reach a limit (Plan and usage).
| At an allowance | Free | Paid plans |
|---|---|---|
| Default | Stops (403 PLAN_QUOTA_EXHAUSTED) until the month resets or you upgrade. | Keeps working and the extra is billed (overage) for services marked "billed beyond". |
| Your choice | — | Turn overage off per service under Billing; that service then stops at its allowance like Free. |
Ceilings never bill extra: reaching one refuses the action with 403 PLAN_LIMIT_REACHED and a link to upgrade.
#Rupees or dollars
Your billing country (Billing › Change plan) sets the currency. In India you pay fixed rupee prices: Pro ₹2,599, Ultra ₹9,999 and Team ₹49,999 a month, and your wallet tops up in rupees. Usage beyond the plan is priced in US dollars and charged in rupees at the day's rate. Everywhere else you pay the US dollar prices (Pro $29, Ultra $99, Team $599).
#Compute
Each paid plan includes a compute credit that covers one database of the plan's size: Pro $10 (Micro, 1 GB), Ultra $20 (Small, 2 GB), Team $40 (Medium, 4 GB). More databases, read replicas and bigger sizes are billed by the hour (the monthly price ÷ 730); the credit is used first. Choose sizes under Project Settings › Database › Compute.
#Sovariq credits
Sovaria's own AI (Sovariq and the app builder, the managed embedding model for knowledge bases, and reranked search) is counted in Sovariq credits. A quick chat turn is about 0.3 credit, a build step on Sonnet about 6 and a typical app build a few hundred; the plan card shows the estimate before a build starts. Each plan has a monthly allowance and a daily share for the whole organization (Free 30 a month and 10 a day plus 100 one-time welcome credits for 30 days, Pro 250 and 100, Ultra 1,500 and 400, Team 8,000 and 2,000). Plan credits don't roll over. When they run out, Sovaria's AI pauses until tomorrow or next month, or you add a credit pack. With your own model key Sovariq uses no credits and has no Sovaria limit. Billing › Usage shows what is left.
- Credit packs (paid plans): 1,000 credits for $10 / ₹899, 5,500 for $50 / ₹4,499, 23,000 for $200 / ₹17,999 (prices set in the Control Center; the pricing page shows the current ones). They last 12 months and are used after your plan's credits for the day and month, soonest expiry first. Pay from the wallet (within your monthly Sovariq wallet cap) or by card or UPI under Billing › Wallet & cap.
- Model choice: small jobs (titles, summaries, reviews, page workers) run on Haiku on every plan; app builds are led by Sonnet on Pro and above; Opus can be picked on Ultra and Team.
- Runaway protection: a run stops with a "stuck" report after the same tool call three times with nothing changed, or five failing type/build checks in a row; a build pauses at your plan's per-build ceiling (Pro 600 credits, Ultra 2,000, Team 5,000) until you press Continue; page workers spend the build's own budget.
#Wallet and auto-recharge
Paid plans have a wallet (Billing › Wallet & cap): money added in advance that usage beyond your plan, credit packs and add-ons are paid from. In India it shows and tops up in rupees (₹500, ₹1,000, ₹2,500, ₹5,000, ₹10,000 or another amount); a top-up of ₹1,000 stays ₹1,000. Usage is drawn from it once a day, so the balance you see is real; the renewal invoice charges only what the wallet didn't cover.
- Cash and promotional credit. What you paid is cash: refundable on request to the card or UPI it came from. Promotional credit from Sovaria is used first, has an expiry and isn't refundable.
- Auto-recharge (when available): when the wallet falls below an amount you choose, your autopay mandate adds the amount you choose. Your bank gets a notice at least 24 hours before each debit (RBI e-mandate rules), so set a threshold that covers about two days of use. At most ₹15,000 a recharge and a monthly maximum you set; two failed recharges in a row turn it off and email you.
- Alerts: low balance, recharge scheduled or failed, and the spend cap at 50, 80 and 100%.
- Who decides. Billing changes need a person: an organization owner or billing admin signed in. Project API keys (even
service_role) can read billing but never change the plan, overage, spend cap, wallet, add-ons or Sovariq limits. When one billing account pays for several organizations, auto-recharge, buying packs from the balance, the Sovariq wallet cap, refunds and the GSTIN are the account owner's to change. An organization billed to someone else's account changes plan through that account's owner (409 BILLED_TO_ANOTHER_ACCOUNT).
When the wallet runs out
Your data is never deleted, and your plan's included amounts keep working. Only use beyond the plan stops, service by service: writes past the database disk allowance (reads and deletes still work), uploads past storage, new calls past functions, queues, realtime, email, push and analytics, new sign-ups past your active users (existing users keep signing in), new realtime connections past the plan, and Sovaria-sent SMS at once. Database disk and active users get a short grace (up to 10% of your plan price, at most $5, for 72 hours) so an app doesn't break over a weekend. After 72 hours at zero, compute above your plan's size goes back to it, extra databases pause and read replicas stop; add money and they come back. The databases your plan includes never pause, and a paid plan with an empty wallet and nothing owed isn't at zero.
- You are told first. E-mails at zero (what pauses and when), on the last day of the grace, and when the hard stop starts. Every page of the organization shows a banner with the time left and Top up / Set up autopay buttons, and Billing › Wallet & cap shows the same.
- Nothing is made half-way. Before Sovaria creates something a limit can refuse (a project, a bigger compute size, a read replica, an environment), it checks your plan and your wallet together. A refusal answers
403withPLAN_LIMIT_REACHEDand says why:reasonisplan,wallet_at_zero,hard_stoporspend_cap, within_use,limit,grace_ends_atandfix(what lifts it: top up, set up autopay, raise the cap, buy an add-on or upgrade). If billing can't be checked at that moment for something billed by the hour (a bigger compute size), the answer is503 QUOTA_SERVICE_UNAVAILABLEwithRetry-After: nothing was started, so try again after that many seconds. - A project whose database a limit refused shows Database not created with the reason, the fix and Retry, and its data APIs answer
404 DATABASE_NOT_CREATED(not a503to retry; the app's own users never see your plan or wallet in it). Sovaria creates the database by itself within a few minutes of a top-up, an upgrade or an add-on.
#Add-ons
On Pro and Ultra some ceilings are raised one unit at a time instead of upgrading. Buy them under Billing › Add-ons & autopay; custom domains also from the project, under Settings › Custom domains. An add-on order is priced for the current billing period: pay it in that period (an order paid after the period ended, or one that would go past the add-on's maximum, isn't applied and is refunded).
| Add-on | Price | Plans |
|---|---|---|
| Extra project (its own database) | $10 / month each | Pro, Ultra |
| Custom domain for a project API | $10 / domain / month | Pro, Ultra (Team and Enterprise include them) |
| Extra environment (staging or API version) | $5 / month each | Pro, Ultra, Team |
- Paid before it is added. You pay for the rest of the current billing period, then it renews with your plan every month.
- Lowering takes effect at the period end. Units already paid for keep working until then. Nothing is refunded.
- If the plan ends (cancelled or unpaid after its grace days), add-ons stop with it: custom domains above the limit stop serving, and projects above it are paused (the newest first) 72 hours after an e-mail that names each project and the time it pauses. Paying for them again before then (or deleting another project) keeps them running; after it, they resume on their own once the organization pays for them. The 72 hours are given once in 30 days: a project that goes over the limit again within that time pauses when the first notice's 72 hours end. A failed renewal e-mails the date until which the plan keeps working.
#Autopay
Set up autopay under Billing › Add-ons & autopay: authorise a card or UPI mandate with ₹1, which is refunded straight away. Each renewal is then charged automatically; Razorpay notifies you before every charge (up to ₹15,000 a renewal). Without autopay, a renewal is an invoice to pay within the plan's grace days.
While autopay is charging a renewal, paying the same invoice by hand answers 409 AUTOPAY_PENDING (nothing more to pay; it usually completes within a day or two). An organization billed through its owner's account changes or cancels its plan on the account: the organization-level route answers 409 ORG_BILLED_BY_ACCOUNT with the account_id and the account route to use.
#Invoices and payment
- Billing › Invoices lists every invoice; the current month's shows usage so far.
- Pay an open invoice from its row. Payment details are entered on the payment provider's page; Sovaria never sees card numbers.
#Renewal, seats and payment method at a glance
One read gives what the plan costs and when it renews: the plan and billing cycle, the renewal date and its state (active, canceling at the period end, past due with the grace date, restricted), how renewals are paid, and the newest invoices. Sovaria Workspace (Settings › Billing on desktop, Settings › Plan & billing on the phone) and Sovariq ("when does my plan renew?") use it; changing anything still happens in Billing.
GET /api/v1/billing/orgs/{org_id}/summary?invoices=6 # 0–36 invoices
{ "plan": "pro", "plan_name": "Pro", "billing_cycle": "monthly", "status": "active",
"renewal": { "date": "2026-12-01T00:00:00+00:00", "status": "active",
"cancel_at_period_end": false, "grace_until": null },
"seat_limit": 5,
"payment_method": { "autopay": true, "mandate": "active", "visible": true,
"method": "card", "label": "Visa •••• 4242", "set_at": "…" },
"is_payer": true,
"invoices": [{ "id": 7, "period": "2026-10", "plan": "pro", "total_cents": 2500,
"status": "paid", "issued_at": "…" }] }- Who: members whose role includes See plan, usage and invoices (
billing.read), as for the Billing page. Others get 403. - The card or UPI label is shown only to the account that pays (
payment_method.visible); other members see whether autopay is on. - A free plan has no renewal date (
renewal.date: null) and no payment method (payment_method: null). invoices: nullmeans they couldn't be read right now, not that there are none.- Seats:
GET /api/v1/org/{org_id}/seats→{used, members, pending_invites, on_hold, limit, left, full}, counted exactly as inviting counts them (members plus pending invites against the plan's seat limit, with any Sovaria override).limit: null= no limit. Any member of the organization may read it.
#Cancel or resume
Cancelling a paid subscription keeps the plan until the end of the paid period; Resume before then undoes it. Deleting the organization cancels the subscription too (Organizations, members and roles).
#From code
Usage, invoices and overage switches are available over the API for dashboards and cost alerts — HTTP API: plans, usage and billing, JavaScript: Billing and usage, Python: Billing, usage and health.
#Keep costs down
- Give functions the memory they need, not the maximum: compute is billed in GB-seconds (Function memory, timeout and limits).
- Serve public files from public buckets so they can be cached; use signed links for private ones.
- Turn on idle pause for databases you use rarely (Free pauses after 7 idle days automatically) — Database: connection, compute, disk and backups.
- Keep log retention and log drains to what you use.
#Coming from Firebase or Supabase?
| Platform | What this is called there |
|---|---|
| Firebase | Firebase Blaze plan billing |
| Supabase | Supabase billing and usage |
| Sovaria | Billing, invoices and overage |
Moving an existing app? Migrate from Supabase or Firebase imports users (with their passwords), data, files and rules.