AI Gateway · Component · usage-balance-billing
Usage-unit metering and balance ledger
What it does
Compute request units, deduct tenant balances, track key usage and support operator balance adjustments.
Core pattern
Request usage conversion + balance debits and ledger records
- Input
- Successful/failed request accounting context
- Output
- Charged units, balance and ledger entries
Key parameters
| Name | Type | Default | Values |
|---|---|---|---|
| capability_unit_rule | — | — | — |
| organization | string | — | — |
| balance_adjustment | — | — | — |
| quota | — | — | — |
Maturity and limits
Transactional balance service and proxy metering code; no online payment checkout established. Static source inspection only; no runtime, provider, deployment or test-pass claim.
Manifest is UNLICENSED; obtain reuse rights. Supplier resale terms, location privacy and credential storage need review; unavailable catalog entries must remain disabled.
Used in pipelines
Industry tags
- Government & public servicesTransferable use
For department budget reconciliation for a public information assistant, use request usage conversion followed by balance debits and ledger records.
- FinanceTransferable use
Support “Allocate department request costs” with request usage conversion followed by balance debits and ledger records.
Skills pack
Contract scaffold and deterministic mock
Download · 10KBSHA-256 2ad1d3604b88766a2c427b1ffdec0455229373897162671b4fbf9d88eae601dc
Related components
-
Gateway usage, financial, reliability and fleet analytics
Request cost and exception aggregation + operational drilldowns
Working 1 pipeline -
Usage reservations, budgets, versioned pricing and settlement
Budget reservation and settlement + priced evidence reconciliation
Working 1 pipeline -
Provider routing, key substitution and quotas
Capability-based endpoint selection + shared quota control
Working 1 pipeline -
Recharge, invoicing and channel rewards
Top-up event verification + credit and invoice records
Working 1 pipeline