ElevenLabs V3 · Multi-Speaker Dialogue
ElevenLabs Eleven v3 Text to Dialogue: send several ordered lines, each with its own voice, and get one conversation with natural shifts in tone and emotion. Audio tags such as [excited] and [whispers] guide delivery, across 70+ languages.
Authentication
- Base URL
https://api.dreamto.ai- Authorization
Authorization: Bearer YOUR_API_KEY- Content-Type
application/json- Model name (model)
elevenlabs/text-to-dialogue-v3
Model introduction
Eleven v3 is ElevenLabs' emotionally rich, expressive speech synthesis model, built for dramatic delivery and performance, with support for 70+ languages and natural multi-speaker dialogue. The Text to Dialogue capability introduced with Eleven v3 generates natural, lifelike dialogue from a list of lines: each line has its own text and voice, and the model follows the context, moving naturally between speakers with a wide emotional range.
Audio tags in square brackets in the text (such as [giggling], [sigh], [whispering] or [applause]) change the delivery at that point or add sound events such as laughter or a sigh; punctuation such as dashes and ellipses also shapes pauses and flow. ElevenLabs notes that audio tags are still under active development, so results may vary.
elevenlabs/text-to-dialogue-v3 takes the lines in order in input.dialogue, each with a text and a preset voice, and returns one MP3 of the dialogue; stability sets how steady the delivery is and language_code the language (detected automatically when omitted).
Setup
ElevenLabs V3 Text to Dialogue uses an asynchronous task API: POST /api/v1/jobs/createTask creates a task (model is elevenlabs/text-to-dialogue-v3 and the parameters go in input), GET /api/v1/jobs/recordInfo?taskId= queries it, and with callBackUrl the result is pushed to that URL when the task finishes. The base URL is https://api.dreamto.ai; send the API Key in the Authorization: Bearer header.
Every response has HTTP status 200; the code in the body tells the outcome: 200 is success, anything else an error (see the response examples of each endpoint).
| Endpoint | Purpose |
|---|---|
POST /api/v1/jobs/createTask | Create task |
GET /api/v1/jobs/recordInfo?taskId=... | Get task |
POST callBackUrl | Task callback |
Parameters
model is elevenlabs/text-to-dialogue-v3; the generation parameters go in input. Requests out of range return code: 422; no task is created or charged.
| Field | Values |
|---|---|
dialogue | Required, at least one line, spoken in order; all text values together at most 5,000 characters |
dialogue[].text | Required line text; may contain audio tags such as [laughs]; blank text is invalid |
dialogue[].voice | Required preset voice ID (case-sensitive) or its preset name (case-insensitive, such as Adam); see the voice list below |
stability | Optional: 0 / 0.5 (default) / 1 |
language_code | Optional ISO 639 language code (such as zh, en or ja); omitted or an empty string means automatic detection |
stability
| Value | Effect |
|---|---|
0 | Creative: the most expressive and the most responsive to audio tags, but the delivery may be unstable or drift from the text |
0.5 | Natural (default): balanced between expressiveness and stability, closest to the original voice |
1 | Robust: the steadiest and most consistent, but less responsive to emotional direction and audio tags |
Voices
Set voice to a voice ID from the table (case-sensitive) or the preset name in the Name column (case-insensitive); the suggested default is pNInz6obpgDQGcFmaJgB.
| Voice ID | Name | Name and character |
|---|---|---|
pNInz6obpgDQGcFmaJgB | Adam | Adam - Dominant, Firm |
Xb7hH8MSUJpSbSDYk0k2 | Alice | Alice - Clear, Engaging Educator |
pqHfZKP75CvOlQylNhV4 | Bill | Bill - Wise, Mature, Balanced |
IKne3meq5aSn9XLyUdCD | Charlie | Charlie - Deep, Confident, Energetic |
iP95p4xoKVk53GoZ742B | Chris | Chris - Charming, Down-to-Earth |
onwK4e9ZLuTAKqWW03F9 | Daniel | Daniel - Steady Broadcaster |
cjVigY5qzO86Huf0OWal | Eric | Eric - Smooth, Trustworthy |
JBFqnCBsd6RMkjVDRZzb | George | George - Warm, Captivating Storyteller |
SOYHLrjzK2X1ezoPC6cr | Harry | Harry - Fierce Warrior |
cgSgspJ2msm6clMCkdW9 | Jessica | Jessica - Playful, Bright, Warm |
pFZP5JQG7iQjIQuC4Bku | Lily | Lily - Velvety Actress |
XrExE9yKIg1WjnnlVkGX | Matilda | Matilda - Knowledgable, Professional |
SAz9YHcvj6GT2YYXdXww | River | River - Relaxed, Neutral, Informative |
CwhRBWXzGAHq8TQ4Fs17 | Roger | Roger - Laid-Back, Casual, Resonant |
EXAVITQu4vr4xnSDxMaL | Sarah | Sarah - Mature, Reassuring, Confident |
bIHbv24MWmeRgasZH58o | Will | Will - Relaxed Optimist |
TX3LPaxmHKxFdv7VOQHJ | Liam | Liam - Energetic, Social Media Creator |
N2lVS1w4EtoT3dr4eOWO | Callum | Callum - Husky Trickster |
FGY2WhTYpPnrIDTdsKH5 | Laura | Laura - Enthusiast, Quirky Attitude |
nPczCjzI2devNBz1zQrb | Brian | Brian - Deep, Resonant and Comforting |
Languages
Omit language_code or send an empty string for automatic detection, or set one of these codes:
af Afrikaans, ar Arabic, hy Armenian, as Assamese, az Azerbaijani, be Belarusian, bn Bengali, bs Bosnian, bg Bulgarian, ca Catalan, ceb Cebuano, ny Chichewa, hr Croatian, cs Czech, da Danish, nl Dutch, en English, et Estonian, fil Filipino, fi Finnish, fr French, gl Galician, ka Georgian, de German, el Greek, gu Gujarati, ha Hausa, he Hebrew, hi Hindi, hu Hungarian, is Icelandic, id Indonesian, ga Irish, it Italian, ja Japanese, jv Javanese, kn Kannada, kk Kazakh, ky Kyrgyz, ko Korean, lv Latvian, ln Lingala, lt Lithuanian, lb Luxembourgish, mk Macedonian, ms Malay, ml Malayalam, zh Chinese, mr Marathi, ne Nepali, no Norwegian, ps Pashto, fa Persian, pl Polish, pt Portuguese, pa Punjabi, ro Romanian, ru Russian, sr Serbian, sd Sindhi, sk Slovak, sl Slovenian, so Somali, es Spanish, sw Swahili, sv Swedish, ta Tamil, te Telugu, th Thai, tr Turkish, uk Ukrainian, ur Urdu, vi Vietnamese, cy Welsh
Pricing
Billed per character of dialogue text at the official ElevenLabs API list price, $0.08 per 1,000 characters; the model price in the console is authoritative.
Billed characters = the sum of the characters of every text in input.dialogue (Unicode characters, so one CJK character counts as one), audio tags, spaces, punctuation and line breaks included, without trimming. For example a task of 1,234 characters costs 1234 ÷ 1000 × $0.08 = $0.09872. The balance is checked for these characters when the task is created (code: 402 when insufficient); invalid requests and failed tasks are not charged.
Quick start
Create a task to get data.taskId, poll about every 5 seconds, and download the MP3 from response.resultUrls once state is success; or pass callBackUrl to be called back when the task finishes. $DREAMTO_API_KEY is your API Key.
# 1. Create the task
curl -X POST "https://api.dreamto.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $DREAMTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "elevenlabs/text-to-dialogue-v3",
"input": {
"dialogue": [
{
"text": "Did you hear the news? They finally opened the new bakery downtown.",
"voice": "pNInz6obpgDQGcFmaJgB"
},
{
"text": "[excited] Really? I've been waiting for months! Let's go this weekend.",
"voice": "EXAVITQu4vr4xnSDxMaL"
},
{
"text": "Deal. [laughs] I'll bring the coffee.",
"voice": "pNInz6obpgDQGcFmaJgB"
}
],
"stability": 0.5
}
}'
# 2. Query the task
curl "https://api.dreamto.ai/api/v1/jobs/recordInfo?taskId=7d3f0a9c41e85b2f6a1c9e04b8d27f53" \
-H "Authorization: Bearer $DREAMTO_API_KEY"Callback
Pass callBackUrl (a public http / https URL) when creating the task; when the task succeeds or fails DreamTo POSTs the result there once: the outer code is 200 (success) or 501 (failure) and data is the same as the data of the query endpoint. The request carries X-DreamTo-Event: task.completed, X-DreamTo-Timestamp (UTC, RFC 3339) and X-DreamTo-Signature:
X-DreamTo-Signature = hex( HMAC-SHA256( secret, X-DreamTo-Timestamp + "." + data.taskId + "." + status ) )status is success when the task succeeded and failed when it failed (not the fail of data.state). Generate the secret under Webhook signing secret on the API Key page of the console; without a secret X-DreamTo-Signature is not sent. The callback times out after 10 seconds and any 2xx counts as delivered; otherwise it is retried after 1, 5 and 30 minutes, at most 4 deliveries, so handle it idempotently by data.taskId. See Task callback for secret management and verification code.
Notes
voiceaccepts a preset voice ID from the list below or that voice's preset name (such asAdamoralice; case-insensitive, surrounding spaces ignored). A name is generated with its voice ID, andparamin the task record still echoes the value you sent. Voices outside the list and custom voices are not supported. One voice may speak several lines.- ElevenLabs recommends keeping a dialogue to about 2,000 characters for reliable results; split longer scripts into several tasks and join the audio in your application.
- Generation is nondeterministic: the same request may come back with slightly different delivery and timing.
taskIdis issued by DreamTo (32 hex digits) and can only be queried with an API Key of the same account; an unknown or expired task returnscode: 422withmsg: recordInfo is null.- The body accepts only
model,callBackUrlandinput; undeclaredinputfields, wrong types and out-of-range values returncode: 422with an English reason inmsg; no task is created or charged. - Audio links (
response.resultUrls, the same as inresultJson) are DreamTo download links (/v1/tasks/{task_id}/artifacts/...) that work without an API Key and supportRange; they stay valid for about 14 days after the task is created, so download and keep the audio promptly. paramechoes the create request, withinputas a JSON string that needs a second parse; the record carries no cost field, and the charge is shown in the DreamTo console bills.failCode/failMsgof a failed task come from the model service (content moderation and so on); internal errors are reported asfailCode: "500"withfailMsg: "Internal Error, Please try again later.".