API referenceAccount
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.
bearerAuthheader
AuthorizationBearer <token>API key, e.g. rf_live_3f9k2q_….
start*stringFormat
dateend*stringFormat
dategroup_by?stringDefault
"day"Value in
"day""model"Usage buckets.
application/json- response
object*unknowndata*array<>curl -X GET 'https://api.rawframe.dev/v1/account/usage?start=2019-08-24&end=2019-08-24'Example Response
{ "object": "list", "data": [ { "key": "string", "generations": 0, "succeeded": 0, "failed": 0, "video_seconds": 0, "images": 0, "charge_micros": 0 } ]}Get credit balance GET
Requires the `account:read` scope.
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.