API referenceAccount
Update auto-recharge settings
PUT
When enabled, the saved card is charged amount_micros whenever the available balance
falls below threshold_micros (checked every minute). Enabling needs a card saved by a
previous top-up (payment_method_required otherwise). Requires the billing:write scope.
bearerAuthheader
AuthorizationBearer <token>API key, e.g. rf_live_3f9k2q_….
application/json- body
enabled*booleanthreshold_micros?integerFormat
int64Range
0 <= value <= 10000000000amount_micros?integerFormat
int64Range
10000000 <= value <= 10000000000Updated settings.
application/json- response
object*unknownenabled*booleanthreshold_micros*|Format
int64amount_micros*|Format
int64payment_method_saved*booleanlast_failure*null|curl -X PUT 'https://api.rawframe.dev/v1/account/auto_recharge' \ -H 'Content-Type: application/json' \ -d '{ "enabled": true}'Example Response
{ "object": "auto_recharge", "enabled": true, "threshold_micros": 0, "amount_micros": 0, "payment_method_saved": true, "last_failure": null}Usage summary GET
Generations created between `start` and `end` (inclusive, UTC dates, at most 366 days), grouped by day or by model. Requires the `account:read` scope.
Cancel a generation POST
Queued generations are canceled at no charge. Running generations are canceled at the provider where supported; charges follow the model's `cancel_policy`.