Call it
curl https://api.peume.com/v1/call/minimax-speech-2-8-hd \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"model": "speech-2.8-hd",
"text": "A calm voice can make a complex idea feel simple.",
"stream": false,
"output_format": "url",
"voice_setting": {
"voice_id": "English_expressive_narrator",
"speed": 1,
"vol": 1,
"pitch": 0
},
"audio_setting": {
"sample_rate": 32000,
"bitrate": 128000,
"format": "mp3",
"channel": 1
}
}
}'const res = await fetch("https://api.peume.com/v1/call/minimax-speech-2-8-hd", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"model": "speech-2.8-hd",
"text": "A calm voice can make a complex idea feel simple.",
"stream": false,
"output_format": "url",
"voice_setting": {
"voice_id": "English_expressive_narrator",
"speed": 1,
"vol": 1,
"pitch": 0
},
"audio_setting": {
"sample_rate": 32000,
"bitrate": 128000,
"format": "mp3",
"channel": 1
}
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/minimax-speech-2-8-hd",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"model": "speech-2.8-hd",
"text": "A calm voice can make a complex idea feel simple.",
"stream": False,
"output_format": "url",
"voice_setting": {
"voice_id": "English_expressive_narrator",
"speed": 1,
"vol": 1,
"pitch": 0
},
"audio_setting": {
"sample_rate": 32000,
"bitrate": 128000,
"format": "mp3",
"channel": 1
}
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: minimax-speech-2-8-hd.
Parameters
modelRequiredstringspeech-2.8-hd
Example: speech-2.8-hd
textRequiredstringFewer than 10,000 characters. Use <#x#> between speakable segments for a pause of x seconds.
Example: A calm voice can make a complex idea feel simple.
streamRequiredbooleanThis catalog route is non-streaming so the relay returns one bounded JSON response.
false
Example: false
output_formatRequiredstringThe returned audio URL is valid for 24 hours.
url
Example: url
voice_settingRequiredobjectvoice_id is required. Optional controls include speed, vol, pitch, emotion, text_normalization and latex_read. speech-2.8 emotion is happy | sad | angry | fearful | disgusted | surprised | calm; whisper and fluent are 2.6-only (status 2013 on 2.8, even with a whispering-named voice_id — use a whispering-style voice_id instead, or speech-2.6 for emotion=whisper).
Example: {"voice_id":"English_expressive_narrator","speed":1,"vol":1,"pitch":0}
audio_settingobjectNon-streaming output supports mp3, wav and flac. bitrate (mp3 only) is 32000 | 64000 | 128000 | 256000; 192000 is invalid (status 2013). sample_rate is 8000 | 16000 | 22050 | 24000 | 32000 | 44100.
Example: {"sample_rate":32000,"bitrate":128000,"format":"mp3","channel":1}
language_booststringExact enum strings only. English(UK) and en-GB are invalid (status 2013); use English. auto detects the language.
Chinese · Chinese,Yue · English · Arabic · Russian · Spanish · French · Portuguese · German · Turkish · Dutch · Ukrainian …
Example: auto
pronunciation_dictobjectCustom pronunciation pairs in source/target form.
Example: {"tone":["example/tree-g"]}
subtitle_enablebooleanExample: false
subtitle_typestringsentence · word
Example: sentence
voice_modifyobjectOptional pitch, intensity, timbre and sound_effects controls.
