Balance and spend limits.

Updated November 22, 2026.

Your organization runs on a prepaid balance, and two things sit on top of it: reading how much is left, and capping how fast any one key, session or end user can draw it down. The balance routes are at https://api.uncensoredllm.ai/v1 and read with any API key on the organization; the per-key limits are fields on the key, set with an admin key through the keys API.

Get a key

Read the balance

GET /v1/credits returns data.total_credits, the available balance in USD, with data.total_usage always 0, because spend is tracked per request and per key rather than accrued here. For tools that expect the One API billing shape, GET /v1/dashboard/billing/subscription returns the same balance as soft_limit_usd and hard_limit_usd with object set to billing_subscription and has_payment_method always true, and GET /v1/dashboard/billing/usage returns zero usage in that shape.

Cap a key, a session or a user

The limits live on the key object, so they are set when you create or patch a key:

LimitFieldWhat it bounds
Prepaid budgetbudget_usd in, budget_micro on the keyDollars carved from the balance for this key; the key stops when it is spent.
Spend capmonthly_cap_usd with spend_limit_periodDollars per day, week or month, reset at 00:00 UTC on the period boundary.
Session spendsession_max_spend_usdDollars one session may be charged per UTC day.
Session volumesession_max_requestsRequests one session may make per sliding hour.
User budgetuser_budget_usd with user_budget_periodDollars one end user may be charged per period, the user taken from the customer id in the request headers or the body’s user.

A key near its monthly cap can fall back to a cheaper model instead of failing, through the key’s autopilot_model. The key reports all of these amounts in micro-dollars, a million to the dollar.

Example

shell
1curl https://api.uncensoredllm.ai/v1/credits \
2 -H "Authorization: Bearer sk-ullm-live-…"

The response holds your available balance under data.total_credits.

Status codes

200 on each balance route. A bad or absent key returns 401 invalid_api_key. Setting a per-key limit is a keys-API call, so its errors (for example a budget below what the key has spent) are documented on the keys page.

Balance and limits: questions

How do I check my balance from the API?

Call GET /v1/credits with any key on the organization and read data.total_credits. The dashboard billing routes return the same figure in the One API shape for tools that expect it.

Why does the usage endpoint always return zero?

The balance is prepaid, and usage is recorded per request and per key, not accumulated on the balance route, so total_usage stays 0 by design. Use the requests and export routes for actual usage.

How do I stop one customer from spending too much?

Set user_budget_usd on the key and identify the customer with the customer id header or the body’s user; the gateway refuses that user once the budget for the period is reached.

Read next

Join on TelegramHelp