Sawalni uses a credit-based billing system. Credits are consumed based on API usage.
curl https://api.sawalni.com/v1/billing/balance \ -H "Authorization: Bearer YOUR_API_KEY"
Response:
{ "balance": 1000.50, "currency": "credits" }
Add credits from the Billing page in the portal. You can view your current balance and top up at any time.
Credit reservations protect available funds across API keys and billable routes. A hold is not a charge. Known input and requested output can be reserved before work. Variable costs extend the same hold using measured usage before delivery. Unused funds are released after settlement. An interrupted request with unknown usage can keep a pending hold for verified reconciliation; pending holds are not estimated charges. Read reserved and available_balance as decimal credit amounts. A request refused for insufficient available credits before work does not consume product quota. Existing free and deferred billing policies are unchanged. Successful requests with a verified zero credit price settle without a debit. Their measured usage still counts against applicable quotas. Completed paid responses wait for durable credit confirmation. A confirmation outage returns HTTP 503; check usage before retrying.
Monitor your usage in real-time from the Dashboard: