Skip to main content
POST

Headers

Authorization
string
required

Bearer API key.

Example:

"Bearer sk-..."

Body

application/json
model
string
required

TTS model id.

Example:

"speech-2.8-hd"

input
string
required

Text to synthesize. May include tone tags like (laughs).

Example:

"Hello from Omniall AI"

voice
string
required

Voice id, e.g. English_Graceful_Lady.

Example:

"English_Graceful_Lady"

speed
number

Speaking rate.

response_format
string

Output format, e.g. mp3, wav, flac.

Example:

"mp3"

metadata
object

MiniMax extensions (voice_setting, audio_setting, language_boost, …).

Response

Audio binary (or provider JSON)

The response is of type file.