API reference · MiniMax
minimax/speech/2.6/turbo
Integrate this model through SandBase's unified API, with production-ready schemas and examples.
Production endpoint
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
POST
https://api.sandbase.ai/v1/runModel ID
minimax/speech/2.6/turbo01
Input Schema
12 parameters · 2 required · 10 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Required | Text to convert to speech. Use <#x#> between words to control pause duration (0.01-99.99s). · Min length: 1 · Max length: 5000 · Default: "Hello, welcome to Sandbase" |
voice_id | string | Required | Voice ID for speech synthesis. Use a predefined system voice or a custom cloned voice ID. · Default: "Wise_Woman" |
pitch | integer | Optional | Speech pitch. Range: -12 to 12, where 0 is normal pitch. · Min: -12 · Max: 12 · Default: 0 |
speed | number | Optional | Speech speed. Range: 0.5-2.0, where 1.0 is normal speed. · Min: 0.5 · Max: 2 · Default: 1 |
format | string | Optional | Format of generated sound. · Options: mp3, pcm, flac mp3pcmflac |
volume | number | Optional | Speech volume. Range: 0.1-10.0, where 1.0 is normal volume. · Min: 0.1 · Max: 10 · Default: 1 |
bitrate | integer | Optional | Bitrate of generated sound. · Options: 32000, 64000, 128000, 256000 3200064000128000256000 |
channel | integer | Optional | The number of channels. 1: mono, 2: stereo. · Options: 1, 2 12 |
emotion | string | Optional | The emotion of the generated speech. · Options: happy, sad, angry, fearful, disgusted, surprised, neutral · Default: "happy" happysadangryfearfuldisgustedsurprisedneutral |
sample_rate | integer | Optional | Sample rate of generated sound. · Options: 8000, 16000, 22050, 24000, 32000, 44100 80001600022050240003200044100 |
language_boost | string | Optional | Enhance the ability to recognize specified languages and dialects. · Options: 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, Slovak, Swedish, Croatian, Hungarian, Norwegian, Slovenian, Catalan, Nynorsk, Afrikaans, auto ChineseChinese,YueEnglishArabicRussianSpanishFrenchPortugueseGermanTurkishDutchUkrainianVietnameseIndonesianJapaneseItalianKoreanThaiPolishRomanianGreekCzechFinnishHindiBulgarianDanishHebrewMalaySlovakSwedishCroatianHungarianNorwegianSlovenianCatalanNynorskAfrikaansauto |
english_normalization | boolean | Optional | Improves performance in number-reading scenarios. · Default: false |
02
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
Async Workflow
This model uses asynchronous execution. Submit a request and poll for the result.
- Submit — POST to /v1/run, receive an
id - Poll — GET /v1/run/{id} until status is
completed,failed, ortimeout - Retrieve — Read
outputsfrom the completed response
03
Code Examples
Ready-to-run snippets
# Step 1: Submit
curl -X POST https://api.sandbase.ai/v1/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "minimax/speech/2.6/turbo",
"text": "Hello, welcome to Sandbase",
"pitch": 0,
"speed": 1,
"volume": 1,
"emotion": "happy",
"voice_id": "Wise_Woman",
"english_normalization": false,
"prompt": "a beautiful sunset over mountains"
}'
# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
-H "Authorization: Bearer YOUR_API_KEY"
