Minimax Speech 2.8 API guide
Minimax Speech 2.8 API: Convert text into speech with Minimax Speech 2.8. Choose a voice and speech mode, then adjust supported emotion, pronunciation, pace, and audio-format settings.
Model overview
Convert text into speech with Minimax Speech 2.8. Choose a voice and speech mode, then adjust supported emotion, pronunciation, pace, and audio-format settings.
API integration
| Documentation | Value |
|---|---|
| API invocation identifier | minimax-speech-2.8 |
| Integration | Async task API |
Use this invocation identifier in API requests. Check your authorized model catalog for access. Follow the Quickstart for your first complete call.
Request parameters
Studio presets describe the form setup, not guaranteed server defaults. Send preset values explicitly to reproduce them.
Text to convert to speech, up to 10000 characters. Use <#x#> between words for pauses from 0.01 to 99.99 seconds.
Length: minimum 1; maximum 10000.
Select the Turbo or HD speech model.
Allowed values: "turbo", "hd".
Studio preset: "turbo".
Enter the identifier of the voice to use.
Length: minimum 1.
Specify the emotion for the generated speech.
Allowed values: "happy", "sad", "angry", "fearful", "disgusted", "surprised", "neutral".
Studio preset: "happy".
Set the speech playback speed.
Value: minimum 0.5; maximum 2.
Studio preset: 1.
Set the volume of the generated speech.
Value: minimum 0.1; maximum 10.
Studio preset: 1.
Set the pitch of the generated speech.
Value: minimum -12; maximum 12.
Studio preset: 0.
Specify a language to improve pronunciation.
Allowed values (41)
Allowed values: "Chinese", "Chinese,Yue", "English", "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", "Persian", "Slovak", "Swedish", "Croatian", "Filipino", "Hungarian", "Norwegian", "Slovenian", "Catalan", "Nynorsk", "Tamil", "Afrikaans", "auto".
Studio preset: "Chinese".
Up to 100 custom pronunciations, each written as Alias/Pronunciation, for example Omg/Oh my god.
Item count: maximum 100.
Specify English text normalization behavior.
Studio preset: false.
Specify the output audio format.
Allowed values: "mp3", "wav", "pcm", "flac".
Studio preset: "mp3".
Output audio sample rate in Hz.
Allowed values: 8000, 16000, 22050, 24000, 32000, 44100.
Studio preset: 44100.
Output audio bitrate in bits per second.
Allowed values: 32000, 64000, 128000, 256000.
Studio preset: 128000.
Specify the output audio channel configuration.
Allowed values: "1", "2".
Studio preset: "1".
No parameters match. Clear the search or reset the filters.
Model rules
Parameter meaning
- Supported nonverbal interjections such as (laughs), (sighs) and (coughs) must use the documented parenthesized spelling. Use them sparingly for a natural delivery.
- Supply an array of Alias/Pronunciation strings, for example Omg/Oh my god, to keep brand names and technical terms consistent.
- Enable english_normalization to improve reading of English numbers, dates and currencies. It changes text normalization before speech synthesis.
- channel is a string: "1" produces mono and "2" produces stereo. Keep the string representation used by the public item.
- speed changes delivery speed, volume changes loudness, and pitch changes vocal pitch. Start with the defaults and adjust for the intended use.
- emotion controls vocal delivery; language_boost helps recognize the intended language. Use the exact public enum values, including auto for automatic language recognition.
- format selects the audio encoding, sample_rate selects samples per second, and bitrate controls encoded audio quality. These are separate output settings; select only the public values listed above.
Dependencies
- Choose a supported voice preset or an already trained custom voice identifier. Supplying an arbitrary voice name does not train or clone a voice.
Integration notes
Use the following field formats and values in MuseSpark requests.
channel,pronunciation_dict: Send channel as "1" or "2", and pronunciation_dict as the declared array. Do not copy the original model developer's nested voice/audio schema.
Request examples
Replace example media URLs and YOUR_... input identifiers with your own valid resources. Examples are checked against the exported item schema; media access and paid execution are separate runtime checks.
Set MUSESPARK_API_KEY and a stable MUSESPARK_REQUEST_ID before submitting. Preserve the request ID for retries of the same request and use a new ID for new work. Python examples use requests; JavaScript examples use Node.js 20 or later. The standalone Quickstart includes task polling and recovery.
Standard request
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "minimax-speech-2.8",
"parameters": {
"mode": "turbo",
"pitch": 0,
"speed": 1,
"format": "mp3",
"volume": 1,
"bitrate": 128000,
"channel": "1",
"emotion": "happy",
"sample_rate": 44100,
"language_boost": "Chinese",
"english_normalization": false,
"text": "Welcome to MuseSpark.",
"voice_id": "YOUR_VOICE_ID"
}
}'Parameters used: mode · pitch · speed · format · volume · bitrate · channel · emotion · sample_rate · language_boost · english_normalization · text · voice_id.
Output
Creation returns a task ID inside data. Poll that task until completion, then save data.result.output_urls and any data.result.batch_results. See the task lifecycle for terminal states, result retention, and errors.
Troubleshooting
For rejected inputs, check the field type, accepted values, and conditional requirements in Request parameters and Model rules. Correct the affected fields before submitting again.
If creation times out, preserve the request identity and any known task ID. Follow Errors, timeouts and retries before submitting again.
Related docs
The public input snapshot was exported on 2026-11-09. Current prices and availability are listed in the model center.