Cost Tracing
Know what every pricing decision cost you.
Cost Tracing shows the input units, output units, multiplier, and final cost for every compute call — computed by the same helper the router uses, so the dashboard, the marketing site, and the invoice all match.
last-price.ai/costs
What you can do
- See cost per call, per function, per tenant, and per route in one view.
- Drill from any total down to the individual usage event that caused it.
- Filter by function, time range, customer, or routing strategy.
- Export usage events to your warehouse via webhook or the Usage API.
- Reconcile against invoices — the same formula produced both numbers.
One trace, end to end
Worked example
metering.input_units = 120 metering.output_units = 64 function.cost_per_unit = $0.005 function.cost_multiplier = 1.5× ───────────────────────────────────────── metering.cost = $0.002340
Computed live with computeMeteringCost(input, output, cost_per_unit, multiplier) from packages/pcn. Factors: METERING_INPUT_FACTOR = 0.001, METERING_OUTPUT_FACTOR = 0.003.
Ready to try it?
Spin up a free playground tenant in under a minute. No credit card.