agentpay

Price a call by what it actually consumed, not by what someone guessed.

The problem. Per-call billing usually means a price table. The table is a guess made once, and the real cost drifts away from it in both directions — you either overcharge people or eat the loss yourself, without noticing which.
Here. Send the components the call actually used. The price is computed from a rate card, with the breakdown attached, so both sides see the same arithmetic.

Try it

curl -X POST http://HOST:PORT/quote \
  -H 'Content-Type: application/json' \
  -d '{"tokens": 1200, "cpu_seconds": 0.4, "bytes_out": 2048,
       "storage_writes": 3, "external_calls": 1}'

More: GET /pricing · GET /health

Public repo: github.com/mrpkk/agentpay