MiniMax Speech 2.8 text-to-speech API

speech-2.8-hd for fidelity and speech-2.8-turbo for speed, billed per character, one line of code through the OpenAI-compatible /v1/audio/speech endpoint.

MiniMax Speech 2.8

Speech 2.8 is MiniMax's latest text-to-speech generation in two flavors: speech-2.8-hd for high-fidelity, expressive narration, dubbing and ads, and speech-2.8-turbo for low-latency, lower-cost real-time dialogue, notifications and bulk generation. Both cover Chinese, English, Japanese, Korean and more with a large catalog of built-in voices.

MiniMax TTS API pricing

ModelProfilePrice
speech-2.8-hdHigh fidelity$0.5224 per 10k characters ($52.24 per 1M)
speech-2.8-turboFast$0.2985 per 10k characters ($29.85 per 1M)

Billing is per input character, and Chinese or English characters count the same. A 2,000-character article costs about $0.06 with turbo and $0.10 with hd.

Quick start (OpenAI-compatible /v1/audio/speech)

curl

curl https://yiduochan.com/v1/audio/speech \
  -H "Authorization: Bearer $YIDUOCHAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "speech-2.8-turbo",
    "input": "Hello, welcome to MiniMax text to speech.",
    "voice": "English_expressive_narrator",
    "response_format": "mp3"
  }' --output speech.mp3

Python (OpenAI SDK)

from openai import OpenAI

client = OpenAI(base_url="https://yiduochan.com/v1", api_key="YIDUOCHAN_API_KEY")
with client.audio.speech.with_streaming_response.create(
    model="speech-2.8-hd",
    voice="English_expressive_narrator",
    input="Hello, welcome to MiniMax text to speech.",
    response_format="wav",
) as response:
    response.stream_to_file("speech.wav")

Parameters

ParameterDescription
modelspeech-2.8-hd or speech-2.8-turbo
inputText to synthesize, billed per character
voiceA MiniMax voice id such as English_expressive_narrator, male-qn-qingse or female-shaonv
response_formatmp3, wav, flac or pcm, default mp3
speedSpeaking rate from 0.5 to 2.0
metadataPass-through for MiniMax-specific options such as voice_setting.emotion or audio_setting.sample_rate

Typical uses

FAQ

How is the MiniMax TTS API billed?

Per input character: speech-2.8-hd costs $0.5224 per 10k characters and speech-2.8-turbo $0.2985 per 10k characters. Failed requests are not charged.

speech-2.8-hd or speech-2.8-turbo?

Pick hd for audio quality and expressiveness in dubbing and audiobooks; pick turbo for low latency and low cost in real-time dialogue and bulk jobs.

Which audio formats are supported?

response_format accepts mp3, wav, flac or pcm; the endpoint returns raw audio bytes you can save or stream.

Can I call it with the OpenAI SDK?

Yes. The endpoint mirrors OpenAI's /v1/audio/speech; set base_url to https://yiduochan.com/v1 and use a MiniMax voice id for voice.

Is voice cloning available?

Voice cloning and voice design are separate MiniMax platform features that this endpoint does not expose; all of MiniMax's built-in voices are available for synthesis.

Sign up and get an API key See full model pricing