Auto Run (Spending Cap)
lab_auto_laufAuto run with a hard spending cap: the person approves ONE run with an upper limit in credits; inside it you may generate without asking per item, but never above the cap. aktion: anlegen (project_id + deckel_credits → status 'angelegt', nothing can be spent yet) · freigeben (ONLY after the person explicitly approved the cap) · stand (cap, reserved, free, items) · beenden. While a run is active, EVERY paid call in that project reserves its price against the cap — whichever tool makes it; reservations are never refunded (a failed item keeps its share, a retry reserves again), upscales and exports count too. The cap counts credits: runs on the person's OWN provider key (BYOK, 0 credits) are not counted. Other projects are not affected. When the cap would be crossed the backend answers budget_exceeded: stop, report what finished, what is open and the minimum budget still needed. Under budget pressure lower the resolution first, never cut runtime, never drop character or location variants.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| aktion | Yes | What to do | |
| lauf_id | No | freigeben / stand / beenden: the id from anlegen | |
| project_id | Yes | Project id (from lab_list_projects) | |
| deckel_credits | No | anlegen only: the cap in credits. Name it to the person in credits AND in the price list's terms before freigeben |