Powerful multilingual text-to-speech and speech-to-text APIs with support for 11 languages
https://vaja.ai/api/v1All API requests require authentication using your API key
Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY⚠️Keep your API key secure! Never commit it to version control or expose it in client-side code.
Convert text to natural-sounding speech in 11 languages
Endpoint
/voice/synthesizeRequest Body
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The text to convert to speech |
voice | string | No | Voice ID (alloy, echo, fable, onyx, nova, shimmer) |
language | string | No | Language code (en, es, fr, de, ar, ja, zh, ru, tr, pl, hi) |
Example Request
curl -X POST https://vaja.ai/api/v1/voice/synthesize \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "Hello, this is Vaja AI speaking!",
"voice": "alloy",
"language": "en"
}' \
--output speech.mp3Response
Returns audio file (MP3 format)
Transcribe audio to text with automatic language detection
Endpoint
/voice/transcribeRequest Body (multipart/form-data)
| Parameter | Type | Required | Description |
|---|---|---|---|
audio | file | Yes | Audio file (mp3, wav, m4a, etc.) |
language | string | No | Language hint for better accuracy |
Example Request
curl -X POST https://vaja.ai/api/v1/voice/transcribe \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "audio=@recording.mp3"Response
{
"text": "Hello, this is the transcribed text",
"language": "en",
"duration": 3.5,
"confidence": 0.98
}English
en
Spanish
es
French
fr
German
de
Arabic
ar
Japanese
ja
Chinese
zh
Russian
ru
Turkish
tr
Polish
pl
Hindi
hi
| Code | Description |
|---|---|
400 | Bad Request - Invalid parameters |
401 | Unauthorized - Invalid API key |
429 | Rate Limit Exceeded |
500 | Internal Server Error |