Text to Speech API
Turn text into speech with one POST to /api/v6/voice/text_to_audio. 48 languages and voice cloning on the same endpoint, $0.001 per second of audio.
- $0.001 per second of audio
- 48 languages
- Unlimited on the $149 plan
Hear Our AI Voices in Action
Experience the quality of our AI text to speech generator. Listen to a variety of voice samples below.
Explore Our Voice Library
ASMR Girl Voice (US English)
Authoritative News Anchor (Female)
Professional Male Voice (Spanish)
Calm Narration (Male)
Energetic Ad Read (Female)
Hindi News anchor(Male)
Japanese Anime (Female)
Multilingual Demo (Spanish Female)
Standard Female Voice (US English)
Standard Male Voice (UK English)
More voice styles, languages, and customization options available in our full text to speech playground.
TTS API pricing: $0.001 per second
You pay for the audio you get back: $0.001 per second of generated speech, with a $0.0047 minimum per request. The number of characters you send does not change the price.
The $21 Basic allowance covers about 5.8 hours of speech a month. On the $149 Open Source Unlimited plan, speech from our self-hosted models has no per-second charge.
| Plan | Price per month | Self-hosted speech | Parallel generations |
|---|---|---|---|
| Basic | $21 | $0.001 per second, about 5.8 hours | 5 |
| Standard | $47 | $0.001 per second | 10 |
| Open Source Unlimited | $149 | No per-second charge | 15 |
48 languages
Pass one of these values in the required language field. Every plan covers all of them.
- Arabic
- Assamese
- Bengali
- Brazilian Portuguese
- Chinese
- Czech
- Danish
- Dutch
- English
- Finnish
- French
- German
- Greek
- Gujarati
- Hebrew
- Hindi
- Hungarian
- Indonesian
- Italian
- Japanese
- Kannada
- Korean
- Maithili
- Malay
- Malayalam
- Marathi
- Min Nan Chinese
- Nepali
- Odia
- Persian
- Polish
- Punjabi
- Russian
- Sindhi
- Sinhala
- Slovak
- Spanish
- Swahili
- Swedish
- Tamil
- Telugu
- Thai
- Turkish
- Ukrainian
- Urdu
- Vietnamese
- Welsh
- Yue Chinese
Voice cloning from a short sample
Pass a voice sample of at least 4 seconds as init_audio and the same request speaks your text in that voice. Cloned speech costs the same $0.001 per second.
To reuse a voice, save it with voice_upload and pass its voice_id. Extra saved-voice uploads cost $1 per 10 from your wallet. More detail is on the Voice Cloning API page.
Text to speech API quick start
POST /api/v6/voice/text_to_audio with prompt, language and voice_id. Python, JavaScript and cURL.
Python: speak text with a saved voice
Python1import requests23response = requests.post(4 "https://modelslab.com/api/v6/voice/text_to_audio",5 json={6 "key": "YOUR_MODELSLAB_API_KEY",7 "prompt": "Your order has shipped and arrives on Thursday.",8 "language": "english",9 "voice_id": "YOUR_VOICE_ID",10 },11)1213print(response.json())
JavaScript: clone a voice from a sample
JavaScript1const response = await fetch(2 'https://modelslab.com/api/v6/voice/text_to_audio',3 {4 method: 'POST',5 headers: { 'Content-Type': 'application/json' },6 body: JSON.stringify({7 key: 'YOUR_MODELSLAB_API_KEY',8 prompt: 'Bonjour, et bienvenue.',9 language: 'french',10 // A sample of at least 4 seconds of the voice to clone.11 init_audio: 'https://example.com/voice-sample.wav',12 }),13 },14);1516console.log(await response.json());
cURL: quick test from the terminal
bash1curl -X POST 'https://modelslab.com/api/v6/voice/text_to_audio' \2 -H 'Content-Type: application/json' \3 -d '{4 "key": "YOUR_MODELSLAB_API_KEY",5 "prompt": "Welcome to the text to speech API.",6 "language": "english",7 "voice_id": "YOUR_VOICE_ID"8 }'
Partner voices
ElevenLabs and Inworld voices are available on the same API key. They are partner models: on Basic and Standard they use the plan allowance first, then your wallet, and the $149 unlimited plan does not cover them.
Text to speech by language
Language pages with voice samples and request examples for each language.
Pricing That's Perfect
Choose plan as per your needs, cancel anytime.
Open Source Unlimited
Mission-Critical
🛡️ 100% refund policy · cancel anytime
Standard
Production
🛡️ 100% refund policy · cancel anytime
Basic
Prototype
🛡️ 100% refund policy · cancel anytime
Start generating speech
Plans start at $21 a month. Speech is $0.001 per second, or unlimited on the $149 plan.
Get API keyRelated Speech APIs
- Speech to Text API
Transcription with word-level timestamps.
- Whisper API
Whisper large-v3 on our own GPUs.
- Voice Cloning API
Clone a voice from a short sample.
- Cheapest text to speech API
TTS cost per minute of audio, compared.
- Cheapest AI API
Image, video and speech prices side by side.
- Unlimited AI API
Every self-hosted open-source model for $149/mo.
Get Expert Support in Seconds
We're Here to Help.
Want to know more? You can email us anytime at support@modelslab.com