← All models
Text → Voice
speech
Text-to-speech: turns text into natural-sounding audio. Several voices, Russian and other languages. Billed by input text length.
Pricing
1K chars
Parameters
inputrequiredvoicealloy · ash · ballad · cedar · echo · fable · shimmer · verse · coral · marin · nova · sageHow to use via API
from openai import OpenAIclient = OpenAI(base_url="https://api.mixen.ai/v1", api_key="mxn-...")resp = client.audio.speech.create(model="mixen-voice-tts",voice="alloy", # alloy, ash, ballad, cedar, echo...input="Привет! Это Mixen AI.",)resp.stream_to_file("speech.mp3")
