Get usage
Daily requests, audio seconds and spend for the key's project, by model and key.
GEThttps://api.voice.wistfare.com/v1/usage
Returns daily usage records for the project the API key belongs to, grouped by day, model and API key, so you can attribute spend to individual keys. Read-only keys can call it.
from wistfareai import WistfareAI
client = WistfareAI() # reads WISTFARE_API_KEY
usage = client.usage.get(start="2026-10-01", end="2026-10-31") # default: the last 30 days
print(f"Spend: ${usage.totals.cost_cents / 100:.2f}")
for r in usage.records:
print(r.date, r.model, r.requests, r.audio_seconds, r.cost_cents)Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
start | string | 30 days ago | First day (inclusive), YYYY-MM-DD. |
end | string | today | Last day (inclusive), YYYY-MM-DD. |
Response
200 OK:
{
"records": [
{
"date": "2026-10-10",
"model": "wistfare-stt-v3-beta",
"key_id": "key_51c7d0",
"requests": 412,
"audio_seconds": 18630.4,
"cost_cents": 189
}
],
"totals": {
"requests": 412,
"audio_seconds": 18630.4,
"cost_cents": 189
}
}| Field | Type | Description |
|---|---|---|
records[].date | string | Day, YYYY-MM-DD (UTC). |
records[].model | string | Model used, e.g. wistfare-stt-v3-beta or wistfare-tts-v1-beta. |
records[].key_id | string | null | Public id (key_…) of the API key, or null for console usage. |
records[].requests | integer | Billable requests (transcriptions, live sessions, job files, generations). |
records[].audio_seconds | number | Audio billed, in seconds. |
records[].cost_cents | integer | Total charged, in US cents. |
totals | object | requests, audio_seconds and cost_cents summed over the range. |
Errors
| Status | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing, invalid or revoked API key. |
422 | validation_error | A date isn't in YYYY-MM-DD form. |