Skip to content

Usage

Inspect the authenticated account and its API usage.

Account and balance

curl --fail --show-error https://api.sawtakarabi.ai/v1/me \
  -H "Authorization: Bearer $SAWTAK_API_KEY"
FieldMeaning
object"me".
user_id, emailAccount identity.
keyKey id and scopes.
balance_usdBalance as a decimal USD string.
limitsrequests_per_minute, concurrent_requests, generation_suspended, and voices_per_account. A null limit means no account-level cap.

Daily usage

curl --fail --show-error https://api.sawtakarabi.ai/v1/usage \
  -H "Authorization: Bearer $SAWTAK_API_KEY"

Both endpoints require an API key; restricted keys need usage permission.

ParameterDefaultMeaning
start_time30 days before end_timeInclusive Unix timestamp in seconds.
end_timeTomorrow at 00:00 UTCExclusive Unix timestamp in seconds.
limit31Daily results per page, clamped to 1–366.
after—Previous response's last_id. Keep the same date range.

Dates and after must fall at UTC midnight. A range must span 1–366 days and start within the last 24 calendar months. Invalid ranges return 400.

The response contains object: "list", data, first_id, last_id, and has_more. Results are newest first, with one item per active day:

FieldMeaning
object"usage".
start_time, end_timeUTC day boundaries in Unix seconds.
tts_charactersSpeech input characters.
cost_usdGeneration charges as a decimal USD string.

Usage updates hourly and can lag during processing delays. Balance updates happen when requests settle. Totals include completed requests and charged partial streams; refunds and account credits are separate.