credits:spend
credits family
Record one model call's spend against YOUR workspace — priced by the one writer (sdk spend: tokens × the model's live rate), debited from the funding chain, emits credits.spent, closes with mark or warn (text/billing.md promise 3)
- Effect
- ask
- Awaits an outcome — the call returns the response below.
- Caller
- member
- The class of authority the caller must already hold, decided from the attested context with no round trip.
- Cost
- variable
- What one call costs, so you can budget before acting.
- Reversible
- yes
- The effect can be undone by a later call.
- Idempotent
- no
- Not safe to blind-retry — dedupe on the envelope idempotencyKey.