For the complete documentation index, see llms.txt. This page is also available as Markdown.

Try Text to Speech

Test the text-to-speech API interactively. Choose a voice, configure parameters, and generate speech.

Generate speech

post

Convert text into natural-sounding audio. Choose from 30 distinct voices and optionally control tone and delivery with a style prompt.

Authorizations
AuthorizationstringRequired

API key passed as a Bearer token. Generate your key at platform.qolaba.ai. Example: Authorization: Bearer sk-xxxxxxxxxxxx

Body
textstring · max: 5000Required

The text to convert into speech

Example: Welcome to Qolaba. We make AI accessible for everyone.
voicestring · enumRequired

Voice persona to use for synthesis

Example: ZephyrPossible values:
modelstring · enumOptional

TTS model to use

Default: gemini-2.5-flash-ttsPossible values:
language_codestringOptional

Language code for synthesis (e.g. en-US, hi-IN, es-ES). Defaults to auto-detect

Example: en-US
style_promptstringOptional

Instructions to control tone, pace, and delivery style

Example: Speak in a calm, professional tone
Responses
200

Audio generated successfully

application/json
urlstring · uriOptional

URL of the generated audio file

mime_typestringOptional

MIME type of the audio (e.g. audio/mpeg)

Example: audio/mpeg
referenceIDstringOptional

Unique reference ID for tracking

post/studio/synthesizeSpeech
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"
}

List voices

get

Retrieve all available voice personas with their names and characteristics.

Responses
200

List of available voices

application/json
get/studio/speech/voices
GET /api/v1/studio/speech/voices HTTP/1.1
Host: api.platform.qolaba.ai
Accept: */*
200

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"
    }
  ]
}

List languages

get

Retrieve all supported languages and their language codes.

Responses
200

List of supported languages

application/json
total_languagesintegerOptional

Total number of supported languages

get/studio/speech/languages
GET /api/v1/studio/speech/languages HTTP/1.1
Host: api.platform.qolaba.ai
Accept: */*
200

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?