amount and the exact integer amount_micro_usd, so you never have
to trust a rounding.
What a call costs
The price inGET /v2/sources/{id} is what the buyer pays: the source’s price
with the Apiosk fee already in it. There is no separate orchestration charge —
the sum of usage.sources[].cost equals usage.cost for every run.
How money moves
- Approve. The plan’s maximum cost is checked against the key’s per-request limit, its monthly limit and the organisation’s balance.
- Reserve. Before a source is called, its cost is reserved on the balance.
- Run. The source is called.
- Settle. The actual cost is charged and the remainder released.
Balance
billing:read.
Usage
billing:read. Returns what this key spent this month and its most
recent charges, newest first.
string
charged is settled money. reserved is held for a call in flight.
refunded was given back and counts against nothing.string
The run that produced the charge; read it back with
GET /v2/runs/{id}.