Billing & Spend Caps
API runs bill identically to product UI runs. Keys optionally enforce spend caps before a run starts.
Developers responsible for API spend.
API runs bill identically to product UI runs. Keys optionally enforce spend caps before a run starts: useful for staging keys, partner integrations, and blast-radius control.
For wallet funding details, see API Runs (billing guide).
Funding order#
When a run starts, Edgaze uses available funding in this order:
- Eligible locked bundle for the pinned workflow version.
- Wallet balance for the displayed run price.
Spend caps#
Caps can be daily, monthly, or lifetime. Each request reserves the run's price against the cap. When that would exceed the key's cap, POST /runs returns 402 spend_cap_reached and does not start a run. When the run finishes, the cap counts what the run was charged: the price for a success, less for a partial result, nothing for a failure.
Pricing visibility#
Workflow list and detail responses include displayedRunPriceUsd, the current price of a successful run. The compute part adjusts automatically from measured usage and model rates, so prefer GET /workflows/{id} for the latest price; the price in force when a run starts is the price that run is charged. GET /runs/{id} returns displayedChargeUsd when the final charge is available. For workflows that use your provider credentials, the provider may bill that account separately.
Was this useful?
Your response helps us improve the documentation.