Credits
Credits are the platform’s unit of usage measurement. In SaaS mode, your organization uses credits as sandboxes run. Credits are shared across all members of the organization.
Plans and signup allocation
Section titled “Plans and signup allocation”Only Pro and Enterprise tiers are available. New organizations start on the Pro tier with 25,000 free credits.
How credits work
Section titled “How credits work”Credits are consumed in real time while sandboxes are active. Usage is recorded automatically so you can track spend and remaining balance.
| Event | What happens |
|---|---|
| Sandbox keepalive | Extends sandbox timeout based on remaining balance |
| Metering loop | Credits are deducted from running sandboxes |
| Sandbox pause/stop | A final deduction is recorded |
| Balance reaches zero | All running sandboxes are terminated |
Purchasing and balance
Section titled “Purchasing and balance”Organizations receive an initial credit allocation at signup and can purchase additional credits through Stripe. Each purchase increases the shared org balance. The checkout endpoint accepts a quantity (1-10) to buy multiple bundles in a single session.
Auto-refill settings
Section titled “Auto-refill settings”Auto-refill keeps your organization’s credits topped up automatically. When your balance drops below the configured threshold during a deduction, the platform charges your saved payment method in the background and adds credits without interrupting the running workload.
Enable auto-refill from Settings → Billing. Only organization owners can configure it. When enabled, you can choose:
- Threshold — the balance level that triggers a refill.
- Refill amount — the number of bundles to purchase per refill (1-10).
- Monthly cap — the maximum number of auto-refills allowed per month.
The monthly cap is a safety rail to prevent runaway spend. The billing page also shows the saved payment method (brand, last 4 digits, and expiry) and a status line for auto-refills used this month.
Auto-refill uses the same Stripe price as manual credit purchases and charges off-session using the payment method saved during a prior purchase.
If a payment fails (card declined or expired), auto-refill is automatically disabled. You can update the payment method in billing settings and re-enable auto-refill, or disable it any time from the same page.
Transaction types
Section titled “Transaction types”| Type | Description |
|---|---|
signup_allocation | Initial credits granted at org creation |
purchase | Stripe-backed credit purchase |
auto_refill | Credits added automatically when balance drops below threshold |
usage | Runtime deductions from sandbox activity |
refund | Credits returned after a purchase reversal |
admin_adjustment | Manual credit changes by platform operators |
Balance fields
Section titled “Balance fields”The credits balance API returns the current balance and warning state.
| Field | Meaning |
|---|---|
balance | Current credit balance. |
is_low_balance | true when the balance is below the warning threshold. |
auto_refill_enabled | true when auto-refill is active. |
Deployment modes
Section titled “Deployment modes”In Enterprise mode, credit endpoints are unavailable and sandboxes are not limited by credit balance.
Credits API routes
Section titled “Credits API routes”GET /api/v1/org/{org}/creditsGET /api/v1/org/{org}/credits/transactionsGET /api/v1/org/{org}/credits/pricePOST /api/v1/org/{org}/credits/checkoutGET /api/v1/org/{org}/credits/auto-refillPUT /api/v1/org/{org}/credits/auto-refillDELETE /api/v1/org/{org}/credits/auto-refillGET /api/v1/org/{org}/credits/payment-methodGET /api/v1/org/{org}/credits/member-limitsPUT /api/v1/org/{org}/credits/member-limits/{user_id}DELETE /api/v1/org/{org}/credits/member-limits/{user_id}
LiteLLM usage callbacks
Section titled “LiteLLM usage callbacks”LiteLLM can report inference spend to the platform via an internal callback. The
callback uses a shared bearer token (LITELLM_CALLBACK_SECRET) and the endpoint
is configured with LITELLM_CALLBACK_ENDPOINT for service-to-service usage only.
POST /api/v1/internal/litellm/usage
Member limits
Section titled “Member limits”Organization owners can set per-member monthly credit limits to prevent a single user
from consuming the entire org balance. When a member exceeds their limit, any
running sandboxes for that member are paused with pause_reason="member_limit_exceeded".
Other members continue running normally.