allmodels.ioDocs
API ReferenceVoices

Fetch a cloning sample with a signed grant

GET/v1/custom-voice-samples/{token}

Serve the audio sample of a voice being cloned, to a provider that clones from a URL it fetches itself. The token is issued by AllModels for a single clone, expires after ten minutes, and is the only thing that authorizes the read — there is no other way to address a sample, and a voice ID cannot be turned into one. Every failure, expiry included, answers 404.

Path Parameters

token*string

Opaque grant issued for one clone, valid ten minutes.

Length1 <= length

Response Body

application/octet-stream

application/json

fetch("https://example.com/v1/custom-voice-samples/string", {  method: "GET"})
"string"
{  "error": "not_found"}