allmodels.ioDocs
API ReferenceVoices

Delete a cloned voice

DELETE/v1/custom-voices/{voice_id}

Delete a cloned voice using its voice ID. Pass the ID as voice_id in the URL, for example DELETE /v1/custom-voices/AM:@narrator. A successful request returns 204 No Content with no response body. Deletion cannot be undone and may take about a minute to finish.

Authorization

BearerAuth
AuthorizationBearer <token>

Tenant key supplied as the Authorization Bearer token.

In: header

Path Parameters

voice_id*string

Your voice ID, for example AM:@narrator. Copy the complete id value from the create response, or voices[].voice.id from the list.

Length1 <= length <= 120

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

Client
Language
// Replace AM:@narrator with the `id` returned by create.const response = await fetch("https://api.allmodels.io/v1/custom-voices/AM:@narrator", {  method: "DELETE",  headers: { Authorization: `Bearer ${process.env.ALLMODELS_API_KEY}` }});if (!response.ok) throw new Error(`AllModels request failed: ${response.status}`);
Empty
{  "error": "invalid_api_key"}
{  "error": "tenant_disabled"}
{  "error": "not_found"}
{  "error": "stale_transition"}
{  "error": "custom_voices_failed",  "message": "The request could not be completed. Try again; if you were creating or deleting a voice, check its status first."}
{  "error": "upstream_error"}
{  "error": "custom_voices_unavailable"}