API reference
Models
GET /v1/models: available models and prices.
GET /v1/models
GEThttps://api.shihab.co.uk/v1/models
Lists the models you can use and their prices: type asr for speech to text and tts for text to speech (with its voices, dialects, formats and the price per 1,000 characters).
Terminal
curl https://api.shihab.co.uk/v1/models \
-H "Authorization: Bearer $SHIHAB_API_KEY"200 OK
{
"object": "list",
"data": [
{
"id": "shihab-asr-v1",
"object": "model",
"name": "Shihab Voice",
"version": "1.1.0",
"default": true,
"languages": ["ar", "ar-PS", "ar-JO", "ar-LB", "ar-SY", "ar-EG", "ar-SA", "ar-AE", "ar-KW", "ar-QA", "ar-BH",
"ar-OM", "ar-YE", "ar-IQ", "ar-SD", "ar-LY", "ar-TN", "ar-DZ", "ar-MA", "ar-MR"],
"dialects": ["ps", "jo", "lb", "sy", "eg", "sa", "ae", "kw", "qa", "bh", "om", "ye", "iq", "sd", "ly", "tn", "dz", "ma", "mr"],
"modes": ["prerecorded", "streaming"],
"pricing": { "prerecorded_per_min_usd": "0.012", "streaming_per_min_usd": "0.018" },
"type": "asr"
},
{
"id": "shihab-tts-v1",
"object": "model",
"name": "Shihab Voice TTS V1",
"version": "1.0.0",
"default": true,
"languages": ["ar"],
"dialects": ["ps", "jo", "lb", "sy", "eg", "sd", "sa", "ae", "kw", "qa", "bh", "om", "ye", "iq", "ly", "tn", "dz", "ma", "mr", "msa"],
"modes": ["speak"],
"voices": [
{ "id": "ps-female", "name": "Leen · Palestinian female", "name_ar": "لين · فلسطيني، أنثى", "dialect": "ps", "gender": "female", "default": true },
{ "id": "ps-male", "name": "Tamer · Palestinian male", "name_ar": "تامر · فلسطيني، ذكر", "dialect": "ps", "gender": "male" },
{ "id": "jo-f3", "name": "Rawan · Jordanian female", "name_ar": "روان · أردني، أنثى", "dialect": "jo", "gender": "female", "default": true }
],
"formats": ["mp3", "wav", "pcm"],
"sample_rate": 44100,
"max_characters": 2000,
"pricing": { "per_1k_characters_usd": "0.03" },
"type": "tts"
}
]
}Need help? Email [email protected] or message us on WhatsApp.