Delete text-to-speech audio clip

December 27, 2024

Table of contents

  1. Request Headers
  2. Path parameter
  3. Responses
  4. Examples
  5. Try It

Please configure at least one www.hailuo.ai account for this endpoint, see Setup MiniMax for details.

This endpoint will delete audio clip generated by

This endpoint will return a response 200 if you’re trying to delete a audio clip that does not exist or has already been deleted. It is safe to say it always succeeds.

https://api.useapi.net/v1/minimax/audio/audio_id

Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
Path parameter
  • audio_id is required. Specify the audio_id you want to delete.
Responses
Examples
  • curl  -X DELETE "https://api.useapi.net/v1/minimax/audio/<audio_id>" \
          -H "Accept: application/json" \
          -H "Authorization: Bearer …" 
    
  • const token = "API token";
    const audio_id = "audio_id to delete"; 
    const apiUrl = `https://api.useapi.net/v1/minimax/audio/${audio_id}`; 
    const response = await fetch(apiUrl, {
      method: 'DELETE',
      headers: {
        "Authorization": `Bearer ${token}`,
      },
    });
    const result = await response.json();
    console.log("response", {response, result});
    
  • import requests
    token = "API token"
    audio_id = "audio_id to delete"
    apiUrl = f"https://api.useapi.net/v1/minimax/audio/{audio_id}"
    headers = {
        "Content-Type": "application/json", 
        "Authorization" : f"Bearer {token}"
    }
    response = requests.delete(apiUrl, headers=headers)
    print(response, response.json())
    
Try It