Skip to main content
POST
Eleven v4 Speech / Custom Voice
Both eleven-v4-text-to-speech and eleven-v4-text-to-speech-custom-voice require text and voice_id. There is no default voice. Text accepts 1–10000 Unicode characters, including spaces, punctuation, emoji and audio tags. For ordered segments with multiple voices, use Dialogue. Supply the original ID of an existing, accessible voice. Custom supports private and public voices; the regular model may also use an accessible private voice. An ID does not guarantee permanent availability or exclusive access by a Gateway user. Other callers with the ID and model permission may use it. Unavailable voices fail through the normal task and refund flow. The voice catalog is for discovery and previews. Optional voice_settings contains stability (default0.5), similarity_boost (default0.75) and optional clone_strength, all0–1. Omitting or nulling the whole object preserves saved voice settings; providing an object applies its field defaults. Clone strength requires a v4 professional clone and does not create a voice. Style, speed and SSML are not promised. Use previous_text / next_text for context; context is not spoken or billed. seed accepts0–4294967295, language_code is optional, and apply_text_normalization is auto/on/off (default auto). audio_effects supports filter, environment and background catalog IDs, distance0–1 (default0), send_level0–1 (default1), and pan -1–1 (default0). Reverb or nonzero pan cannot use raw PCM, μ-law or A-law. Effects add no customer surcharge. output_format defaults to mp3_44100_128; see the parameter list for all28 MP3/PCM/WAV/μ-law/A-law/Opus values. Raw PCM is16-bit little-endian; decode using the returned sample rate, channels and Content-Type. Timestamps, versioned pronunciation dictionaries and safety controls require the complete requested capability; unsupported requests fail explicitly. Both models cost **$0.00008 per Unicode character** ($0.08/1000), without rounding to blocks of1000. Only text is counted. Saved prices and group multipliers apply, with the reservation adjusted at completion and failures refunded under the task rules. Query the task and download results[0].url on completion. Preserve returned file metadata and alignment fields; ordinary audio may omit alignment and voice segments. Missing fields are not synthesized. Save audio promptly. Migration: voice → voice_id, flat settings → voice_settings, and Speech future_text → next_text. Old and unknown nested fields are rejected explicitly. Accepted tasks and historical bills retain their original contracts; old Turbo names have no compatibility alias.

Authorizations

Authorization
string
header
required

All endpoints require Bearer authentication.

Add this request header:

Authorization: Bearer YOUR_API_KEY

Body

application/json
model
string
default:eleven-v4-text-to-speech
required

eleven-v4-text-to-speech: speech with a specified existing voice. eleven-v4-text-to-speech-custom-voice: also supports private voices. Both require voice_id and cost $0.00008 per Unicode character without rounding to 1000-character blocks.

Examples:

"eleven-v4-text-to-speech"

"eleven-v4-text-to-speech-custom-voice"

text
string
required

1–10000 Unicode characters, including spaces, punctuation and audio tags.

Required string length: 1 - 10000
Example:

"欢迎收听。"

voice_id
string
required

Original ID of an existing voice. Required; the voice must remain accessible and valid.

Minimum string length: 1
Example:

"existing-voice-id"

seed
integer | null

Optional random seed; zero is a valid explicit value. See minimum/maximum.

Required range: 0 <= x <= 4294967295
Example:

0

language_code
string | null

Language in ISO 639-1, such as zh or en.

Example:

"zh"

apply_text_normalization
enum<string>
default:auto

Text normalization: auto, on or off. Defaults to auto.

Available options:
auto,
on,
off
Example:

"auto"

output_format
enum<string>
default:mp3_44100_128

Output encoding, sample rate and bitrate; 28 formats, default mp3_44100_128.

Available options:
mp3_22050_32,
mp3_24000_48,
mp3_44100_32,
mp3_44100_64,
mp3_44100_96,
mp3_44100_128,
mp3_44100_192,
pcm_8000,
pcm_16000,
pcm_22050,
pcm_24000,
pcm_32000,
pcm_44100,
pcm_48000,
wav_8000,
wav_16000,
wav_22050,
wav_24000,
wav_32000,
wav_44100,
wav_48000,
ulaw_8000,
alaw_8000,
opus_48000_32,
opus_48000_64,
opus_48000_96,
opus_48000_128,
opus_48000_192
Example:

"mp3_44100_128"

timestamps
boolean
default:false

Request alignment timestamps. The entire requested capability must be available; unsupported requests fail explicitly. Only actual alignment returned with the result is preserved.

Example:

false

pronunciation_dictionary_locators
object[] | null

Up to 3 versioned pronunciation dictionaries. Requires the complete capability; unsupported requests fail explicitly.

Advanced option: omit unless needed.

Maximum array length: 3
Example:
voice_settings
object | null

Omit or use null to preserve saved voice settings. An explicit object applies its field defaults.

Example:
previous_text
string | null

Previous context. Not spoken or included in character billing.

Advanced option: omit unless needed.

Example:

"节目开始了。"

next_text
string | null

Following context. Not spoken or included in character billing.

Advanced option: omit unless needed.

Example:

"下面开始正文。"

audio_effects
object | null

Audio effects with no customer surcharge. Reverb or nonzero pan requires a stereo-capable format and forbids raw PCM, μ-law and A-law.

Advanced option: omit unless needed.

Example:
enable_safety_checker
boolean | null

Explicit safety control; false is not ignored. Unsupported requests fail explicitly.

Example:

true

Response

Task created

created
integer

Task creation timestamp

Example:

1757165031

id
string

Task ID

Example:

"task-unified-1757165031-uyujaw3d"

model
string

eleven-v4-text-to-speech: speech with a specified existing voice. eleven-v4-text-to-speech-custom-voice: also supports private voices. Both require voice_id and cost $0.00008 per Unicode character without rounding to 1000-character blocks.

object
enum<string>

Task type

Available options:
audio.generation.task
progress
integer

Task progress (0–100)

Required range: 0 <= x <= 100
Example:

0

status
enum<string>

Task status

Available options:
pending,
processing,
completed,
failed
Example:

"pending"

task_info
object

Asynchronous task information

type
enum<string>

Output type

Available options:
audio
Example:

"audio"