Skip to main content
Choose a preset voice, clone a voice from reference audio, or create a reusable custom voice.

Preset voices

Use voice to select a preset speaker.

Reference voice

Clone a voice instantly with ref_audio and ref_text.
ref_audio can be a URL or the base64-encoded bytes of a local audio file. Supported formats are wav, mp3, opus, pcm and flac. We recommend 5-30 seconds of clean speech, with no music or background voices. Although ref_text is optional, we recommend providing a verbatim transcript of the reference audio, including filler words.
You must own the right to clone the voice.

Custom voices

Custom voices work like reference voices, but you can reuse the returned voice ID instead of sending ref_audio on every request. First, create a voice ID from reference audio and text. Then pass that ID to voice, just like a preset voice.
ref_audio accepts a URL or the base64-encoded bytes of a local file. Reusing the same audio returns the same voice_id, so creating a voice is safe to repeat.

Deleting a custom voice

DELETE /v1/audio/voices/{voice_id} removes the reference audio for one of your own voices. The voice stops working on /v1/audio/speech and disappears from GET /v1/audio/voices.
A few things to know:
  • You can only delete voices you created. Deleting a voice that does not exist, belongs to another key, or was already deleted all return 404 voice_not_found — the three are not distinguished, so no key can use this endpoint to discover another account’s voice IDs.
  • Preset voices cannot be deleted and return 403 voice_not_deletable.
  • Deleting is not reversible, but it is not destructive either: because voice_id is derived from the audio itself, re-creating the voice with the same ref_audio gives you back the same voice_id.