Billing & metering
Prepaid wallets, reservations, settlement and prompt retention.
Live system status and incident history →
Prepaid wallet and micro-USD
Each organization has a USD wallet. One USD equals 1,000,000 micro-USD. Money values in the control-plane API are decimal strings; parse them with integer arithmetic. Catalog prices are micro-USD per million tokens. Seed prices are illustrative; the default mock provider has zero provider cost, which is separate from retail wallet charges.
Owners, admins and billing members can add funds from Billing. Razorpay accepts INR via UPI, cards and netbanking; Stripe uses hosted USD card checkout. Availability depends on enabled administrator integrations. MockPay is clearly marked and available only outside production. Signup credits depend on configuration and default to zero.
Top-ups, GST and invoices
Complete your legal billing name, full address, country, state and billing email. Indian GSTIN is optional for unregistered customers; supplied values must pass format, state and checksum validation. Country changes need staff review. Indian customers pay configured GST on top of wallet credit; other countries currently have no tax. This is a placeholder policy pending accountant review.
A $10 credit at INR 84/USD and 18% GST costs INR 991.20: INR 840.00 credit value plus INR 151.20 tax. FX, seller and buyer details are fixed when the order is created. Money rounds half up to paise/cents, using integer arithmetic. The wallet stays in USD. Invoices and refund credit notes are downloadable as PDFs in Billing.
Payment confirmation and limits
Returning from checkout does not add funds. Billing polls the server while a signed payment webhook is pending. Repeated deliveries cannot duplicate wallet credit. Minimum, transaction maximum and rolling 24-hour caps apply; new organizations under 48 hours and elevated risk scores have lower caps. Created orders (including failed attempts) conservatively reserve cap capacity for 24 hours to protect against late capture; successful payments count by payment time. Contact support for mismatch or dispute states.
Refunds and low balance
Staff can refund the lesser of unrefunded payment credit and available wallet balance, excluding unsettled usage and reservations. Tax is refunded proportionally in the original payment currency. The wallet is debited before the provider request. A definite rejection restores that debit; a timeout reserves it for reconciliation. Payment disputes can make the balance negative and suspend the workspace.
Low-balance emails are queued at 20% and 5% of the latest top-up, once per threshold per top-up. SMTP delivery can retry; the local dev mailbox records messages. Refunds are requested from staff, not from a customer-side payment callback.
Reserve first, settle actual usage
Admission atomically reserves the worst-case input/output cost against wallet balance, lifetime key spend and the monthly organization cap. In-flight reservations count. Completion refunds the reservation and deducts actual usage, correcting token counters and releasing concurrency.
Retail cost is ceil(((input − cached) × inputPrice + cached × cachedPrice + output × outputPrice) / 1,000,000). A request consuming tokens costs at least one micro-USD; zero consumption costs zero. Provider usage is preferred, with tokenizer fallback. Disconnects bill generated tokens observed by the gateway, which can exceed the bytes the client received.
Cost and eventual consistency
Non-streaming inference returns x-xc-cost-micros. Streams expose usage with include_usage; retrieve their cost later from usage/log APIs. Wallet and usage views follow worker ingestion and can lag admission, which enforces funds immediately. Logs include admitted provider failures and disconnects; pre-admission rejections do not create usage rows.
At zero balance or a spend cap
A request that cannot be reserved returns 402 insufficient_balance before inference. A positive wallet can also be insufficient for the requested maximum or a reached spend cap. Lowering a monthly cap below spend blocks new requests without reversing charges. Monthly caps reset on UTC calendar-month boundaries; key caps cover lifetime spend.
Data retention and accounting boundaries
Prompts and responses are not stored in the gateway database, Redis or logs. Request metadata retains model, provider, status, token counts, timing and cost. This is zero retention of prompt/response content, not zero metadata retention. External-provider retention must be reviewed before production enablement.
Hard process death before settlement can leave a reservation held; automatic reservation recovery is Coming soon. Ask the operator to investigate rather than assuming a failed response means no charge.