Usage
Fetch your current plan and remaining balance via the API
Endpoint
GEThttps://speakerscope.ai/api/usage
Example
import requests
response = requests.get(
"https://speakerscope.ai/api/usage",
auth=("<API_KEY>", "<API_SECRET>"),
)
print(response.json())Response
Fields
| Field | Type | Plans | Description |
|---|---|---|---|
plan | string | all | "pay-as-you-go" or "free" |
credits | number | pay-as-you-go | Remaining balance in dollars |
diarizationSeconds | integer | free | Remaining diarization quota (seconds) |
recognitionRequests | integer | free | Remaining recognition request quota |
ttl | integer | free | Seconds until the free quota resets |
Examples
Pay-as-you-go plan
{
"plan": "pay-as-you-go",
"credits": 15.50
}Free plan
{
"plan": "free",
"diarizationSeconds": 3480,
"recognitionRequests": 18,
"ttl": 1843200
}