Cancel the currently generated video
Table of contents
January 9, 2025
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
API token
is required, see Setup useapi.net for details.
Request Body
{
"videoId": "user:user_id-minimax:account-file:video_id",
}
videoId
is required. Specify the videoId you want to cancel.
Responses
-
{ "error": "<Error message>" }
-
{ "error": "Unauthorized" }
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())