Remove video, image, music or speech generation from being tracked by the scheduler
September 25, 2024 (August 17, 2026)
Table of contents
API tracks the running generations of images and videos. This is done to maintain a list of currently executed video generations and to send webhook messages via optionally provided replyUrl parameters. If you want to remove image or video generation from being tracked by the scheduler, use this endpoint.
https://api.useapi.net/v1/minimax/scheduler/
id
Request Headers
Authorization: Bearer {API token}
API tokenis required, see Setup useapi.net for details.
Path parameter
idis required. Specify videoId, imageId, musicId or audioId you want to stop tracking.
Notes:
- Stopping tracking does not cancel the work at MiniMax. A video or song carries on and can still be found through its own GET endpoint.
- Speech is the exception worth knowing about. An
audioIdis issued by useapi.net rather than MiniMax, so once it stops being tracked there is nothing left to resolve it — GET speech/audioIdreports it asfailedfrom that point on. The recording itself still completes and appears in GET speech.
Responses
-
{ "error": "<Error message>", "code": 400 } -
{ "error": "Unauthorized", "code": 401 } -
{ "error": "Unable to locate running <id>" }
Model
{ // TypeScript, all fields are optional
error: string
code: number
}
Examples
-
curl -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer …" \ -X DELETE "https://api.useapi.net/v1/minimax/scheduler/<id>" -
const videoId = "videoId to cancel"; const apiUrl = `https://api.useapi.net/v1/minimax/scheduler/${videoId}`; const token = "API token"; const data = { method: 'DELETE', headers: { 'Authorization': `Bearer ${token}`, 'Content-Type': 'application/json' } }; const response = await fetch(apiUrl, data); const result = await response.json(); console.log("response", {response, result}); -
import requests videoId = "videoId to cancel" apiUrl = f"https://api.useapi.net/v1/minimax/scheduler/{videoId}" token = "API token" headers = { "Content-Type": "application/json", "Authorization" : f"Bearer {token}" } response = requests.delete(apiUrl, headers=headers) print(response, response.json())