Cancel the currently generated video

Table of contents

January 9, 2025

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

Attempt to cancel a currently generated video created via POST videos/create.

https://api.useapi.net/v1/minimax/videos/cancel

Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
# Alternatively you can use multipart/form-data
# Content-Type: multipart/form-data
Request Body
{
    "videoId": "user:user_id-minimax:account-file:video_id",
}
  • videoId is required. Specify the videoId you want to cancel.
Responses
Examples
  • curl -H "Accept: application/json" \
         -H "Content-Type: application/json" \
         -H "Authorization: Bearer …" \
         -X POST "https://api.useapi.net/v1/minimax/videos/cancel" \
         -d '{"videoId": "…"}'
    
  • const videoId = "videoId you want to cancel";      
    const apiUrl = `https://api.useapi.net/v1/minimax/videos/cancel`; 
    const token = "API token";
    const data = { 
      method: 'POST',
      headers: {
        'Authorization': `Bearer ${token}`,
        'Content-Type': 'application/json' }
    };
    data.body = JSON.stringify({ 
      videoId
    });
    const response = await fetch(apiUrl, data);
    const result = await response.json();
    console.log("response", {response, result});
    
  • import requests
    videoId = "videoId you want to cancel"   
    apiUrl = f"https://api.useapi.net/v1/minimax/videos/cancel" 
    token = "API token"
    headers = {
        "Content-Type": "application/json", 
        "Authorization" : f"Bearer {token}"
    }
    body = {
        "videoId": f"{videoId}"
    }
    response = requests.post(apiUrl, headers=headers, json=body)
    print(response, response.json())
    
Try It