Generate high-quality speech audio from text using ElevenLabs models — with premade voices, your own custom cloned voices, or one-off voice cloning from sample URLs.
Model
Parameters
Voice Options
The voice parameter accepts two forms:
Custom Voices
Clone a voice from sample recordings and get back a permanent voice_id:
Response:
Store the voice_id. It is returned only once — there is no endpoint that lists custom voices, by design (voice IDs are private to whoever holds them).
- The voice is permanent: we keep our own copy of your samples, so it keeps working even after your original URLs go offline.
- Sample URLs must be direct downloads — redirects and link shorteners are rejected.
- Supported audio formats: mp3, wav, ogg, opus, m4a, flac, webm.
- Voice IDs from your own ElevenLabs account cannot be used here — create the voice through this endpoint instead.
voice_settings
Available Models
Resources
Get available premade voices from the Resources API:
Example — custom voice with timestamps
Response
Completed Response
Poll GET /v1/tasks/{task_id} until status is completed:
alignment maps your original text; normalized_alignment maps the text as spoken (numbers and abbreviations expanded).
words is derived from alignment — use it directly for captions and audio/video sync. Punctuation stays attached to its word.
- Without
with_timestamps, the output contains only audio_url.