More APIs
Text to Speech
Convert text to natural-sounding audio using TTS models.
DEVUP AI hosts text-to-speech models that convert text into natural-sounding audio. Browse all TTS models.
Endpoint
bash
POST https://api.devupai.com/v1/inference/{model_name}Example
import requests
DEVUP_API_KEY = "$DEVUP_API_KEY"
MODEL = "hexgrad/Kokoro-82M"
response = requests.post(
f"https://api.devupai.com/v1/inference/{MODEL}",
headers={
"Authorization": f"Bearer {DEVUP_API_KEY}",
"Content-Type": "application/json",
},
json={
"text": "Hello! This is a text-to-speech example using DEVUP AI.",
},
)
# Save the returned audio
with open("output.wav", "wb") as f:
f.write(response.content)Additional parameters
Each model may expose additional parameters such as voice selection, speed, and language. Check the model's individual API documentation page for supported options.