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.
| Name | Type | Description |
|---|---|---|
days | integer | Period ending today. |
curl -s https://api.raywake.com/v1/usage?days=7 \
-H "Authorization: Bearer $RAYWAKE_API_KEY"| Name | Type | Description |
|---|---|---|
totals | object | spent, added, runs, succeeded, failed and held (awaiting review) for the period. |
daily | array | One entry per day: date, spent, runs, failed. |
models | array | Per model id: runs, succeeded, failed, spent, most credits first. |
failures | array | Failure reasons with counts, such as content rejected or input not accepted. |