All models
ElevenLabs
Music
Available
ElevenLabs Text to Speech Multilingual V2
Content generation using elevenlabs/text-to-speech-multilingual-v2
Text to Speech
From 150 credits (≈ ₹150.00) per request.
Parameters
| Parameter | Type | Description |
|---|---|---|
textRequired |
string | The text to convert to speech (Max length: 5000 characters) max length 5000 |
voiceRequired |
string | Voice ID from the list below. You can preview a voice by opening https://static.aiquickdraw.com/elevenlabs/voice/.mp3 in your browser (replace with the actual voice ID). For example: https://static.aiquickdraw.com/elevenlabs/voice/N2lVS1w4EtoT3dr4eOWO.mp3 Available voices: pNInz6obpgDQGcFmaJgB - Adam - Dominant, Firm Xb7hH8MSUJpSbSDYk0k2 - Alice - Clear, Engaging Educator pqHfZKP75CvOlQylNhV4 - Bill - Wise, Mature, Balanced nPczCjzI2devNBz1zQrb - Brian - Deep, Resonant and Comforting N2lVS1w4Eto one of: "pNInz6obpgDQGcFmaJgB", "Xb7hH8MSUJpSbSDYk0k2", "pqHfZKP75CvOlQylNhV4", "nPczCjzI2devNBz1zQrb", "N2lVS1w4EtoT3dr4eOWO", "IKne3meq5aSn9XLyUdCD", "iP95p4xoKVk53GoZ742B", "onwK4e9ZLuTAKqWW03F9", "cjVigY5qzO86Huf0OWal", "JBFqnCBsd6RMkjVDRZzb", "SOYHLrjzK2X1ezoPC6cr", "cgSgspJ2msm6clMCkdW9", "FGY2WhTYpPnrIDTdsKH5", "TX3LPaxmHKxFdv7VOQHJ", "pFZP5JQG7iQjIQuC4Bku", "XrExE9yKIg1WjnnlVkGX", "SAz9YHcvj6GT2YYXdXww", "CwhRBWXzGAHq8TQ4Fs17", "EXAVITQu4vr4xnSDxMaL", "bIHbv24MWmeRgasZH58o" |
stability |
number | Voice stability (0-1) (Min: 0, Max: 1, Step: 0.01) min 0 · max 1 · default 0.5 |
similarity_boost |
number | Similarity boost (0-1) (Min: 0, Max: 1, Step: 0.01) min 0 · max 1 · default 0.75 |
style |
number | Style exaggeration (0-1) (Min: 0, Max: 1, Step: 0.01) min 0 · max 1 · default 0 |
speed |
number | Speech speed (0.7-1.2). Values below 1.0 slow down the speech, above 1.0 speed it up. Extreme values may affect quality. (Min: 0.7, Max: 1.2, Step: 0.01) min 0.7 · max 1.2 · default 1 |
language_code |
string | Language code (ISO 639-1) of the text, for example `en`. Optional. (Max length: 500 characters) max length 500 |
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-speech-multilingual-v2",
"input": {
"text": "…",
"voice": "pNInz6obpgDQGcFmaJgB",
"stability": 0.5,
"similarity_boost": 0.75,
"style": 0,
"speed": 1
},
"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-speech-multilingual-v2",
"input": {
"text": "…",
"voice": "pNInz6obpgDQGcFmaJgB",
"stability": 0.5,
"similarity_boost": 0.75,
"style": 0,
"speed": 1,
},
"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-speech-multilingual-v2",
"input": {
"text": "…",
"voice": "pNInz6obpgDQGcFmaJgB",
"stability": 0.5,
"similarity_boost": 0.75,
"style": 0,
"speed": 1
},
"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-speech-multilingual-v2",
"input": {
"text": "…",
"voice": "pNInz6obpgDQGcFmaJgB",
"stability": 0.5,
"similarity_boost": 0.75,
"style": 0,
"speed": 1
}
}
Response
{
"id": "6f1c…",
"object": "task",
"model": "elevenlabs-text-to-speech-multilingual-v2",
"status": "succeeded",
"output": {
"files": [
{
"url": "https://…signed…",
"mime": "…",
"size": 0
}
]
},
"estimated_cost": "…",
"charged": "…"
}