Overview
Convert text to speech audio
Credits
2 credits per call
Providers
ElevenLabsDashScope
SDK Method
client.tts(...)
Parameters
textRequiredstring
Text to convert (max 2000 chars).
voice_modelstring
Deepgram voice model ID.
providerselect (default: auto)
TTS provider.
Auto
Deepgram
ElevenLabs
Example Response
{
"success": true,
"data": {
"audio_base64": "//NkxAAc4FJgDHpMAQteDEe...(base64 audio data)",
"format": "mp3",
"sample_rate": 48000,
"text": "Hello, I am your AI assistant.",
"voice_model": "aura-2-thalia-en"
},
"metadata": {
"provider_used": "deepgram",
"providers_tried": [
"deepgram"
],
"mode_used": null,
"response_time_ms": 2582,
"request_id": "req_ba10d96a"
},
"credits_used": 2
}Get Started
Use this API through the O-mega platform. Create an API key in your dashboard, then call the endpoint with your key in the Authorization header.