Try Text to Speech
Test the text-to-speech API interactively. Choose a voice, configure parameters, and generate speech.
Convert text into natural-sounding audio. Choose from 30 distinct voices and optionally control tone and delivery with a style prompt.
API key passed as a Bearer token.
Generate your key at platform.qolaba.ai.
Example: Authorization: Bearer sk-xxxxxxxxxxxx
The text to convert into speech
Welcome to Qolaba. We make AI accessible for everyone.Voice persona to use for synthesis
ZephyrPossible values: TTS model to use
gemini-2.5-flash-ttsPossible values: Language code for synthesis (e.g. en-US, hi-IN, es-ES). Defaults to auto-detect
en-USInstructions to control tone, pace, and delivery style
Speak in a calm, professional toneAudio generated successfully
URL of the generated audio file
MIME type of the audio (e.g. audio/mpeg)
audio/mpegUnique reference ID for tracking
Invalid request parameters
Missing or invalid API key
Organization has insufficient credits
Upstream provider error
POST /api/v1/studio/synthesizeSpeech HTTP/1.1
Host: api.platform.qolaba.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 82
{
"text": "Welcome to Qolaba. We make AI accessible for everyone.",
"voice": "Zephyr"
}{
"url": "https://cdn.qolaba.ai/audio/speech_abc123.mp3",
"mime_type": "audio/mpeg",
"referenceID": "ref_abc123"
}Retrieve all available voice personas with their names and characteristics.
List of available voices
GET /api/v1/studio/speech/voices HTTP/1.1
Host: api.platform.qolaba.ai
Accept: */*
List of available voices
{
"voices": [
{
"name": "Zephyr",
"gender": "Female",
"pitch": "Higher",
"description": "Bright",
"voicePreviewUrl": "https://gstatic.com/aistudio/voices/samples/Zephyr.wav"
},
{
"name": "Puck",
"gender": "Male",
"pitch": "Middle",
"description": "Upbeat",
"voicePreviewUrl": "https://gstatic.com/aistudio/voices/samples/Puck.wav"
},
{
"name": "Charon",
"gender": "Male",
"pitch": "Lower",
"description": "Informative",
"voicePreviewUrl": "https://gstatic.com/aistudio/voices/samples/Charon.wav"
}
]
}Retrieve all supported languages and their language codes.
List of supported languages
Total number of supported languages
GET /api/v1/studio/speech/languages HTTP/1.1
Host: api.platform.qolaba.ai
Accept: */*
List of supported languages
{
"total_languages": 87,
"languages": [
{
"language": "Afrikaans",
"accents": [
{
"code": "af-ZA",
"region": "South Africa",
"status": "preview"
}
]
},
{
"language": "Albanian",
"accents": [
{
"code": "sq-AL",
"region": "Albania",
"status": "preview"
}
]
},
{
"language": "English",
"accents": [
{
"code": "en-US",
"region": "United States",
"status": "stable"
},
{
"code": "en-GB",
"region": "United Kingdom",
"status": "stable"
}
]
}
]
}Was this helpful?