All models
ElevenLabs
Music
Available
ElevenLabs Text to Dialogue V3
Dialogue text-to-speech generation using elevenlabs/text-to-dialogue-v3
Text to Music
From 150 credits (≈ ₹150.00) per request.
Parameters
| Parameter | Type | Description |
|---|---|---|
dialogueRequired |
array<object> | Array of dialogue items. Each item contains `text` and `voice`; see Supported Voices at the top of this page for the available voice IDs. The total character count of all text fields combined must not exceed 5000 characters. |
stability |
number | Voice stability parameter. Must be one of the following values: 0.0, 0.5, or 1.0 one of: 0, 0.5, 1 · default 0.5 |
language_code |
string | Language code for the speech. Omit this parameter for automatic language detection. one of: "af", "ar", "hy", "as", "az", "be", "bn", "bs", "bg", "ca", "ceb", "ny", "hr", "cs", "da", "nl", "en", "et", "fil", "fi", "fr", "gl", "ka", "de", "el", "gu", "ha", "he", "hi", "hu", "is", "id", "ga", "it", "ja", "jv", "kn", "kk", "ky", "ko", "lv", "ln", "lt", "lb", "mk", "ms", "ml", "zh", "mr", "ne", "no", "ps", "fa", "pl", "pt", "pa", "ro", "ru", "sr", "sd", "sk", "sl", "so", "es", "sw", "sv", "ta", "te", "th", "tr", "uk", "ur", "vi", "cy" |
What you get back
Files arrive in output.files[] as private links that expire, with their type and size.
Use it from your code
# 1. Create the task
curl https://nexus.promptscenes.in/api/v1/tasks \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "elevenlabs-text-to-dialogue-v3",
"input": {
"dialogue": null,
"stability": 0.5,
"language_code": "af"
},
"callback_url": "https://your-app.com/webhooks/nexus"
}'
# 2. Poll for the result
curl https://nexus.promptscenes.in/api/v1/tasks/TASK_ID \
-H "Authorization: Bearer $NEXUS_API_KEY"
import os, time, uuid, requests
API = "https://nexus.promptscenes.in/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['NEXUS_API_KEY']}"}
task = requests.post(
f"{API}/tasks",
headers={**HEADERS, "Idempotency-Key": str(uuid.uuid4())},
json={
"model": "elevenlabs-text-to-dialogue-v3",
"input": {
"dialogue": None,
"stability": 0.5,
"language_code": "af",
},
"callback_url": "https://your-app.com/webhooks/nexus",
},
).json()
while task["status"] not in ("succeeded", "failed", "cancelled"):
time.sleep(3)
task = requests.get(f"{API}/tasks/{task['id']}", headers=HEADERS).json()
print(task["status"], task.get("output"))
const API = "https://nexus.promptscenes.in/api/v1";
const headers = {
Authorization: `Bearer ${process.env.NEXUS_API_KEY}`,
"Content-Type": "application/json",
};
let task = await fetch(`${API}/tasks`, {
method: "POST",
headers: { ...headers, "Idempotency-Key": crypto.randomUUID() },
body: JSON.stringify({
"model": "elevenlabs-text-to-dialogue-v3",
"input": {
"dialogue": null,
"stability": 0.5,
"language_code": "af"
},
"callback_url": "https://your-app.com/webhooks/nexus"
}),
}).then((r) => r.json());
while (!["succeeded", "failed", "cancelled"].includes(task.status)) {
await new Promise((r) => setTimeout(r, 3000));
task = await fetch(`${API}/tasks/${task.id}`, { headers }).then((r) => r.json());
}
console.log(task.status, task.output);
Request
{
"model": "elevenlabs-text-to-dialogue-v3",
"input": {
"dialogue": null,
"stability": 0.5,
"language_code": "af"
}
}
Response
{
"id": "6f1c…",
"object": "task",
"model": "elevenlabs-text-to-dialogue-v3",
"status": "succeeded",
"output": {
"files": [
{
"url": "https://…signed…",
"mime": "…",
"size": 0
}
]
},
"estimated_cost": "…",
"charged": "…"
}