Delete custom voice
curl --request DELETE \
--url https://api.aireserve.com/v1/custom-voices/{voice_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aireserve.com/v1/custom-voices/{voice_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aireserve.com/v1/custom-voices/{voice_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Audio
Delete custom voice
Delete a custom voice. Removes the voice model from xAI and soft-deletes the AI Reserve ownership record. Subsequent TTS or realtime session calls referencing this voice ID return 404. Idempotent — an xAI 404 is treated as a successful delete.
DELETE
/
v1
/
custom-voices
/
{voice_id}
Delete custom voice
curl --request DELETE \
--url https://api.aireserve.com/v1/custom-voices/{voice_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aireserve.com/v1/custom-voices/{voice_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aireserve.com/v1/custom-voices/{voice_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
Your AI Reserve API key (aireserve_api_…) from the API Keys page in the portal (https://portal.aireserve.com/keys).
Path Parameters
xAI custom voice id
Required string length:
1 - 255Response
Voice deleted (or was already absent — idempotent).