Api reference
Voice management (voice cloning)
Upload reference audio, clone a voice, list and delete voices; the cloned voice_id can be used for speech synthesis.
🧭 Not live yet. The endpoints open once a direct MiniMax channel is configured in the console. The contract below is final, so you can integrate ahead of time.
Same API Key authentication as chat / video; all calls are synchronous.
Authentication
| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer sk-tp-..., create an API Key in the console |
| Content-Type | Yes | application/json (multipart/form-data for the upload endpoint) |
1. Upload reference audio
multipart/form-data.
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | file | Yes | Reference audio, mp3 / m4a / wav, 10 s – 5 min, ≤ 20 MB |
| purpose | string | No | Always voice_clone; defaults to voice_clone |
2. Clone a voice
| Parameter | Type | Required | Description |
|---|---|---|---|
| file_id | string | Yes | file_id returned by the upload endpoint |
| voice_id | string | Yes | Your voice ID: 8–256 chars, starts with a letter, letters/digits/-/_ only, must not end with - or _ |
| text | string | No | Preview text, ≤ 1000 chars |
| model | string | No | Preview synthesis model, e.g. speech-2.8-hd |
| clone_prompt | object | No | { "prompt_audio": "...", "prompt_text": "..." }, prompt_audio ≤ 8 s |
| language_boost | string | No | Language boost, e.g. Chinese |
| need_noise_reduction | boolean | No | Enable noise reduction |
| need_volume_normalization | boolean | No | Enable volume normalization |
| aigc_watermark | boolean | No | Add an AIGC watermark |
3. List voices
| Query parameter | Type | Required | Description |
|---|---|---|---|
| voice_type | string | No | system / voice_cloning / voice_generation / all, defaults to all |
4. Delete a voice
After deletion the voice_id can no longer be used for synthesis; this cannot be undone.
Using a cloned voice
Set voice to the cloned voice_id in Create a speech request.
Limits and notes
- The upstream account must complete identity verification before cloning.
- A cloned voice that is not used for synthesis within 7 days is purged upstream; clone it again if needed.
- A cloned voice appears in the
voice_cloninglist only after one successful synthesis. - The platform does not bill these endpoints today.
Errors
| Status | Description |
|---|---|
| 400 | Invalid parameters: bad voice_id format, audio duration / size / format out of range |
| 401 | API Key invalid or revoked (including parents) |
| 404 | Voice not found |
| 429 | Rate limited, retry later |
| 503 | No direct MiniMax channel configured, or the channel is degraded |