All models

GPT-4o mini TTS

gpt-4o-mini-tts
speech

OpenAI text-to-speech: natural, lifelike voices with several presets. Charged per input characters.

Pricing

1K chars

Parameters

inputrequired
voicealloy · ash · ballad · cedar · echo · fable · shimmer · verse · coral · marin · nova · sage

How to use via API

from openai import OpenAI
client = OpenAI(base_url="https://api.mixen.ai/v1", api_key="mxn-...")
resp = client.audio.speech.create(
model="gpt-4o-mini-tts",
voice="alloy", # alloy, ash, ballad, cedar, echo...
input="Привет! Это Mixen AI.",
)
resp.stream_to_file("speech.mp3")
Try in the botAPI docs