Delete cloned voice
December 27, 2024 (August 24, 2026)
Table of contents
This endpoint deletes a voice cloned via POST speech/clone-voice.
This endpoint returns 200 for a cloned voice that does not exist or has already been deleted. An error from MiniMax is passed through, so check the status rather than assuming it always succeeds.
https://api.useapi.net/v1/minimax/speech/delete-voice
Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
# Alternatively you can use multipart/form-data
# Content-Type: multipart/form-data
API tokenis required, see Setup useapi.net for details.
Request Body
{
"voice_id": "user:1234-minimax:1234567890123456789-voice:abcdef"
}
voice_idis required, use value of field voice_id returned by POST speech/clone-voice or GET speech/voices/?is_system=false
This endpoint takes no account parameter. Cloned voice ids are returned in a wrapped form that already names the account, so it is read from voice_id — including when several accounts are configured. Sending account returns 400 Parameter account not supported.
Responses
-
{ "error": "<Error message>", "code": 400 } -
{ "error": "Unauthorized", "Wrong username/password combination.", "This account has been suspended." "code": 401 } -
596 Account Error
{ "error": "Your minimax account has pending error. Please address this issue at https://useapi.net/docs/api-minimax-v1/post-minimax-accounts-account before making any new API calls.", "code": 596 }
Examples
-
curl -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer …" \ -X POST https://api.useapi.net/v1/minimax/speech/delete-voice \ -d '{"voice_id": "…"}' -
const voice_id = "voice id"; const apiUrl = `https://api.useapi.net/v1/minimax/speech/delete-voice`; const api_token = "API token"; const data = { method: 'POST', headers: { 'Authorization': `Bearer ${api_token}`, 'Content-Type': 'application/json' } }; data.body = JSON.stringify({ voice_id }); const response = await fetch(apiUrl, data); const result = await response.json(); console.log("response", {response, result}); -
import requests voice_id = "voice id" apiUrl = f"https://api.useapi.net/v1/minimax/speech/delete-voice" api_token = "API token" headers = { "Content-Type": "application/json", "Authorization" : f"Bearer {api_token}" } body = { "voice_id": f"{voice_id}" } response = requests.post(apiUrl, headers=headers, json=body) print(response, response.json())