Skip to content
GET
https://api.voice213.com/api/v1/stt/models
curl https://api.voice213.com/api/v1/stt/models \
  -H "Authorization: Bearer $VOICE213_API_KEY"
{
  "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
    }
  ]
}

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

Authorizationstringrequired

Your API key as a Bearer token: Bearer sk_live_.... See Authentication.

Response

application/json
successbooleanrequired

true.

currencystringrequired

DZD: every price is in Algerian dinars.

defaultModelstringrequired

The model Transcribe a File and Estimate Transcription Cost use when the request names none: khasbha-stt.

languagesstring[]required

The values language takes: ar, fr and en.

dialectsstring[]required

The values dialect takes, for Arabic: algerian, tunisian and libyan.

modelsobject[]required

The two models, always in the same order.

Show properties
idstringrequired

The model's ID: khasbha-stt or khasbha-stt-live.

namestringrequired

The model's name: KhasbhaSTT or KhasbhaSTT LIVE.

kindstringrequired

file for KhasbhaSTT, which transcribes recordings through POST /stt, or live for KhasbhaSTT LIVE, which streams over the socket.

descriptionstringrequired

A short description in English, such as Audio and video files, Darija first.

descriptionArstringrequired

The same description in Arabic, such as «الملفات الصوتية والفيديو، بالدارجة أولاً».

descriptionFrstringrequired

The same description in French, such as Fichiers audio et vidéo, darija d'abord.

pricePerMinutenumberrequired

The price today, in dinars per minute of audio.

pricePerSecondnumberrequired

The same price per second, to four decimals. Audio is billed by the second.

minBillableSecondsnumberrequired

The fewest seconds billed: 30 per file for KhasbhaSTT, 15 per session for KhasbhaSTT LIVE.

KhasbhaSTT only: the longest audio a file can have, 1800 seconds (30 minutes).

maxFileMBnumber

KhasbhaSTT only: the largest file, uploaded or at a URL, in megabytes: 100.

KhasbhaSTT LIVE only: the longest a session can last, 3600 seconds (one hour).

KhasbhaSTT LIVE only: the rate of the audio the socket takes, 16000 Hz (16-bit PCM, mono).

KhasbhaSTT LIVE only: how many sessions an account can run at once, 5.

defaultbooleanrequired

true for the model a request uses when it names none.

priceChangesobject[]required

Price changes still to come, oldest first, or an empty list. Each has from, the date it takes effect (YYYY-MM-DD, at midnight UTC), and pricePerMinute, the new price.

availablebooleanrequired

false while speech to text is paused for the API: a transcription or a new live session then gets 503 TOOL_DISABLED. Otherwise true.

​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 ÷ 60

The 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?