Cancel or Delete Music
A pending or in_progress job is cancelled and not billed; it answers with the job, now cancelled, and a render that has started stops within about 10 seconds. A finished job is deleted with its audio and answers {id, object, deleted}.
Path parameters
-
id string required
The music job's ID,
music_followed by 24 hex characters.
Responses
OK
application/json
The API key is missing, unknown or not active. Send it as Authorization: Bearer <key>.
application/json · error-payload
Not found
application/json · error-payload
The job changed state while being cancelled; try again
application/json · error-payload
curl -X DELETE https://api.vultrinference.com/v1/music/{id} \
-H "Authorization: Bearer $VULTR_INFERENCE_API_KEY"import os
import requests
response = requests.delete(
"https://api.vultrinference.com/v1/music/{id}",
headers={"Authorization": f"Bearer {os.environ['VULTR_INFERENCE_API_KEY']}"},
)
print(response.json())const response = await fetch("https://api.vultrinference.com/v1/music/{id}", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.VULTR_INFERENCE_API_KEY}`,
},
});
console.log(await response.json());Response · 200
{
"id": "music_0123456789abcdef01234567",
"object": "music",
"model": "string",
"task": "string",
"status": "pending",
"progress": 0,
"created_at": 1790000000,
"polling_url": "string",
"warnings": [
{
"code": "string",
"field": "string",
"message": "string"
}
]
}