Skip to content
Docs

Documentation

Usage

Retrieve Raywake credit usage and generation activity by period, including daily totals, model breakdowns and failure counts.

GET/v1/usage

Credits spent (net of usage-based refunds), generations, success and failure reasons per UTC day and per model. Requires jobs:read.

Query parameters
NameTypeDescription
daysinteger
Period ending today.

Default: 30

One of: 7, 30, 90

curl -s https://api.raywake.com/v1/usage?days=7 \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"
Response fields
NameTypeDescription
totalsobject
spent, added, runs, succeeded, failed and held (awaiting review) for the period.
dailyarray
One entry per day: date, spent, runs, failed.
modelsarray
Per model id: runs, succeeded, failed, spent, most credits first.
failuresarray
Failure reasons with counts, such as content rejected or input not accepted.