Text to speech
POST /v1/audio/speech returns an MP3 file of the text read aloud. Speech models
are billed per character of input text — see the
model catalogue.
| Model | Notes |
|---|---|
eleven_v3 |
Most expressive, many languages. |
eleven_multilingual_v2 |
Stable quality in 29 languages. |
eleven_flash_v2_5 |
Fastest and cheapest, low latency. |
from openai import OpenAI
client = OpenAI(base_url="https://api.wraitherix.com/v1", api_key="YOUR_KEY")
audio = client.audio.speech.create( model="eleven_multilingual_v2", voice="21m00Tcm4TlvDq8ikWAM", input="Hello! This is a short voice test.",)audio.write_to_file("hello.mp3")curl https://api.wraitherix.com/v1/audio/speech \ -H "Authorization: Bearer $WRAITHERIX_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"eleven_flash_v2_5","voice":"JBFqnCBsd6RMkjVDRZzb","input":"Hello there!"}' \ -o hello.mp3Voices
Section titled “Voices”voice is a voice ID. A few ready-made voices:
| Voice ID | Voice |
|---|---|
21m00Tcm4TlvDq8ikWAM |
Rachel — calm female, American |
JBFqnCBsd6RMkjVDRZzb |
George — warm male, British |
pNInz6obpgDQGcFmaJgB |
Adam — deep male, American |
The language is detected from the text, so the same voice reads Russian, Spanish, German and other languages.
Content policy
Section titled “Content policy”Adult and sexual (NSFW) content is not allowed. Every generation request is
screened before it reaches the model; prompts asking for nudity, sexual acts,
erotic or fetish material, or “undress”-style edits are refused with
400 content_policy_violation and are not charged. Sexual content involving
minors, and intimate imagery of real people without consent, are banned outright.
Repeated violations can lead to key revocation and account suspension. Full text:
Terms of service, section 6A.