MiniMax Speech 2.8 HD
Studio-quality speech in 30+ languages with emotions, pauses and interjections like (laughs), up to 10,000 characters.
minimax/speech-2.8-hdCharged when the job is queued, returned if the generation fails.
Example output

Try it
More settings
The result will appear here. The playground uses the same API as the code below and charges the cost to your balance.
Request parameters
Fields of the JSON request body. The model takes no other fields: a request with them gets a 400 error.
- promptstringrequired
The text to speak, up to 10,000 characters. <#1.5#> adds a 1.5-second pause; (laughs), (sighs), (coughs) and other interjections are voiced.
- Price:
- Per 1,000 characters of the text; billed by its exact length.
Up to 10,000 characters - voice_idstringoptional
A MiniMax voice id: Wise_Woman, Friendly_Person, Inspirational_girl, Deep_Voice_Man, Calm_Woman, Casual_Guy, Lively_Girl, Patient_Man, Young_Knight, Determined_Man, Lovely_Girl, Decent_Boy, Imposing_Manner, Elegant_Man, Abbess, Sweet_Girl_2 or Exuberant_Girl.
- Default:
Wise_Woman
Up to 100 characters - language_booststringoptional
Improve recognition of this language or dialect; auto detects it.
- Values:
auto,English,Chinese,Chinese,Yue,Arabic,Russian,Spanish,French,Portuguese,German,Turkish,Dutch,Ukrainian,Vietnamese,Indonesian,Japanese,Italian,Korean,Thai,Polish,Romanian,Greek,Czech,Finnish,Hindi,Bulgarian,Danish,Hebrew,Malay,Slovak,Swedish,Croatian,Hungarian,Norwegian,Slovenian,Catalan,Nynorsk,Afrikaans
- emotionstringoptional
The emotion of the delivery; left out, the model picks one from the text.
- Values:
happy,sad,angry,fearful,disgusted,surprised,neutral
- speednumberoptional
Speaking speed, 0.5–2; 1 is normal.
- Default:
1- Range:
0.5–2
Use it through the API
Create a key in your account. Details are in the documentation.
curl
curl -X POST https://getmegabrain.com/api/gateway/v1/queue/minimax/speech-2.8-hd \
-H "Authorization: Bearer $MEGABRAIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"Welcome aboard! This voice was generated through the MegaBrain API."}'
# Then poll status_url and fetch the result from response_url:
curl https://getmegabrain.com/api/gateway/v1/queue/requests/$REQUEST_ID -H "Authorization: Bearer $MEGABRAIN_API_KEY"Python
import os, time, requests
BASE = "https://getmegabrain.com/api/gateway/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['MEGABRAIN_API_KEY']}"}
job = requests.post(f"{BASE}/queue/minimax/speech-2.8-hd", headers=HEADERS, json={
"prompt": "Welcome aboard! This voice was generated through the MegaBrain API."
}).json()
while requests.get(job["status_url"], headers=HEADERS).json()["status"] not in ("COMPLETED", "FAILED"):
time.sleep(2)
print(requests.get(job["response_url"], headers=HEADERS).json())JavaScript
const BASE = 'https://getmegabrain.com/api/gateway/v1';
const headers = {
Authorization: `Bearer ${process.env.MEGABRAIN_API_KEY}`,
'Content-Type': 'application/json',
};
const job = await fetch(`${BASE}/queue/minimax/speech-2.8-hd`, {
method: 'POST',
headers,
body: JSON.stringify({
"prompt": "Welcome aboard! This voice was generated through the MegaBrain API."
}),
}).then(r => r.json());
let status = job.status;
while (status !== 'COMPLETED' && status !== 'FAILED') {
await new Promise(r => setTimeout(r, 2000));
({ status } = await fetch(job.status_url, { headers }).then(r => r.json()));
}
console.log(await fetch(job.response_url, { headers }).then(r => r.json()));Questions
How much does MiniMax Speech 2.8 HD cost through the API?
$0.12 per 1,000 characters, charged from a prepaid US-dollar balance. A job the provider fails is refunded in full. There is no subscription.
How do I use MiniMax Speech 2.8 HD through the API?
Submit a job with POST https://getmegabrain.com/api/gateway/v1/queue/minimax/speech-2.8-hd and your MegaBrain API key, poll its status_url until it is COMPLETED, then fetch the result from response_url. The same key and balance work for text models.
Can I try MiniMax Speech 2.8 HD without writing code?
Yes: once you sign in, the playground on the model page runs MiniMax Speech 2.8 HD in the browser, paid from the same balance as the API.