Metering.
Bill customers based on what your agents actually deliver.
Subscription billing was built for SaaS. Agent work is metered, success-based, or token-priced. Metering ships the primitives for any of those — usage-based, outcome-based, or hybrid.
The shape of Metering.
Track every billable event.
Emit a meter event when your agent completes a task. AgentRail aggregates, deduplicates, and bills against the contract you defined.
Charge when work succeeds.
Define what 'success' means in your domain — a closed ticket, a delivered package, a generated lead. Billing only fires on success events.
Hands off to Charges.
When the billing cycle closes, Metering hands the invoice to Charges, which collects via saved source or hosted link. End-to-end with no glue code.
One coherent surface for metering.
/v1/bill/contractsDefine a pricing contract
/v1/bill/eventsEmit a billable event
/v1/bill/invoices/{id}Retrieve an invoice
Pair Metering with the rest of AgentRail.
Programmable accounts agents can hold, receive, and send funds from.
Learn more →Pay anyone, anywhere, in a single tool call.
Learn more →Charge customers, vendors, and other agents.
Learn more →Credit lines so agents can spend autonomously.
Learn more →Move money between AgentRail and external accounts.
Learn more →