List STT Models
List KhasbhaSTT and KhasbhaSTT LIVE with their prices in dinars, their limits and their languages
curl https://api.voice213.com/api/v1/stt/models \
-H "Authorization: Bearer $VOICE213_API_KEY"from voice213 import Voice213
client = Voice213() # reads VOICE213_API_KEY
for model in client.speech_to_text.models.list().models:
print(model.id, model.name, model.price_per_minute, "DA per minute", "" if model.available else "(paused)")import Voice213 from "@voice213/sdk";
const voice213 = new Voice213(); // reads VOICE213_API_KEY
const { models, currency } = await voice213.speechToText.models.list();
for (const m of models) console.log(m.id, `${m.pricePerMinute} ${currency} / minute`, m.available ? "" : "(paused)");{
"success": true,
"currency": "DZD",
"defaultModel": "khasbha-stt",
"languages": ["ar", "fr", "en"],
"dialects": ["algerian", "tunisian", "libyan"],
"models": [
{
"id": "khasbha-stt",
"name": "KhasbhaSTT",
"kind": "file",
"description": "Audio and video files, Darija first",
"descriptionAr": "الملفات الصوتية والفيديو، بالدارجة أولاً",
"descriptionFr": "Fichiers audio et vidéo, darija d'abord",
"pricePerMinute": 3,
"pricePerSecond": 0.05,
"minBillableSeconds": 30,
"maxDurationSeconds": 1800,
"maxFileMB": 100,
"default": true,
"priceChanges": [],
"available": true
},
{
"id": "khasbha-stt-live",
"name": "KhasbhaSTT LIVE",
"kind": "live",
"description": "Real-time transcription of a live audio stream",
"descriptionAr": "تفريغ فوري لبث صوتي مباشر",
"descriptionFr": "Transcription en temps réel d'un flux audio en direct",
"pricePerMinute": 5,
"pricePerSecond": 0.0833,
"minBillableSeconds": 15,
"maxSessionSeconds": 3600,
"sampleRate": 16000,
"maxSessionsPerAccount": 5,
"default": false,
"priceChanges": [],
"available": true
}
]
}{
"error": "Invalid or inactive API key"
}Returns the two speech-to-text models, KhasbhaSTT for files and KhasbhaSTT LIVE for live audio, with the price each one charges today in dinars, any price change already scheduled, and their limits, plus the languages and dialects they take. It's free, and it doesn't count toward your rate limits.
Read it when your app starts rather than hard-coding prices: when a price changes, this list has it first. A scheduled change shows up in priceChanges before it happens, and the new price becomes pricePerMinute on its date, at midnight UTC. The voice models are in a separate list, GET /models.
Speech to text can be paused for the API for a while. Both models then stay in the list with "available": false, and Transcribe a File and new live sessions are refused with 503 TOOL_DISABLED until it's back.
Authorizations
Your API key as a Bearer token: Bearer sk_live_.... See Authentication.
Response
application/jsontrue.
DZD: every price is in Algerian dinars.
The model Transcribe a File and Estimate Transcription Cost use when the request names none: khasbha-stt.
The values language takes: ar, fr and en.
The values dialect takes, for Arabic: algerian, tunisian and libyan.
The two models, always in the same order.
Work out a price yourself
Audio is billed by the second, with the model's minimum:
billableSeconds = max(seconds rounded up, minBillableSeconds)
cost = billableSeconds × pricePerMinute ÷ 60The cost is rounded to four decimals, in dinars. Seconds are rounded up to the whole second, but a remainder of 0.05 s or less isn't counted: 42.37 seconds bill 43, and 60.03 seconds bill 60. A file with no audio, or a session that received none, bills nothing. To skip the arithmetic, ask Estimate Transcription Cost.
Was this page helpful?