Cancel or delete a MiniMax task
curl --request DELETE \
--url https://gengen.farm/api/gengen/v1/contents/generations/tasks/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://gengen.farm/api/gengen/v1/contents/generations/tasks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gengen.farm/api/gengen/v1/contents/generations/tasks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": {
"code": "<string>",
"message": "<string>",
"params": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"params": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"params": {}
}
}Video API
Cancel or delete a MiniMax task
Cancel a queued MiniMax task or delete a completed upstream task record.
DELETE
/
contents
/
generations
/
tasks
/
{id}
Cancel or delete a MiniMax task
curl --request DELETE \
--url https://gengen.farm/api/gengen/v1/contents/generations/tasks/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://gengen.farm/api/gengen/v1/contents/generations/tasks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gengen.farm/api/gengen/v1/contents/generations/tasks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": {
"code": "<string>",
"message": "<string>",
"params": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"params": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"params": {}
}
}