🎉 New Year Sale: Get 20% OFF on all plans — Use code NEWYEAR2026.

Upgrade now
Text to Speech thumbnail

ModelsLab/Text To Speech

text-to-speech
The Text-to-Audio endpoint enables you to generate audio by providing a text input along with a valid audio URL or a pre-created voice using a voice_id. The output is an audio file that mimics the sound of the provided audio URL or the selected voice.
API PlaygroundAPI Documentation

API Endpoint URL

Base URL for all API requests to this endpoint.

https://modelslab.com/api/v6/voice/text_to_speech

API Authentication

Authentication requires a valid API key included in the request. Generate and manage your API keys from your developer dashboard. Include the key in the key parameter for all API requests.

Integration Examples

Production-ready code samples for API integration

{
"prompt": "Narrative voices capable of pronouncing terminologies & acronyms in training and ai learning materials.",
"voice_id": "adam",
"language": "american english",
"speed": "0.8",
"key": "YOUR_API_KEY"
}

SDKs

Official SDKs

Production-ready SDKs and client libraries for all major programming languages

API Parameters

Technical specifications for API request parameters.

Field NameParameterTechnical Description
PromptpromptPrompt
Voice Idvoice_idPre-defined voice to use
languagelanguageLanguage
speedspeedSpeech speed