elevenlabs/eleven_multilingual_v2
ElevenLabs Multilingual v2 text-to-speech: lifelike speech of consistent quality, the most stable on long-form text, in 29 languages, up to 10,000 characters per request.
| Slug | elevenlabs/eleven_multilingual_v2 |
| Kind | audio |
| Vendor | elevenlabs |
| Endpoint | POST /v1/audio/speech |
View pricing and billing conditions
Example request
curl https://api.sociaro.com/v1/audio/speech \
-H "Authorization: Bearer $SOCIARO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "elevenlabs/eleven_multilingual_v2",
"input": "Hello from Sociaro.",
"voice": "alloy",
"response_format": "mp3"
}' \
--output speech.mp3# Requires Python 3 and requests (pip install requests).
from pathlib import Path
import os
import requests
payload = {'model': 'elevenlabs/eleven_multilingual_v2',
'input': 'Hello from Sociaro.',
'voice': 'alloy',
'response_format': 'mp3'}
response = requests.post(
'https://api.sociaro.com/v1/audio/speech',
headers={
'Authorization': 'Bearer ' + os.environ['SOCIARO_API_KEY'],
'Content-Type': 'application/json',
},
json=payload,
timeout=120,
)
response.raise_for_status()
Path('speech.mp3').write_bytes(response.content)// Run as an .mjs file with Node.js 22 or later.
import { writeFile } from "node:fs/promises";
const payload = {
"model": "elevenlabs/eleven_multilingual_v2",
"input": "Hello from Sociaro.",
"voice": "alloy",
"response_format": "mp3"
};
const response = await fetch("https://api.sociaro.com/v1/audio/speech", {
method: "POST",
headers: {
"Authorization": "Bearer " + process.env.SOCIARO_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
await writeFile("speech.mp3", new Uint8Array(await response.arrayBuffer()));Parameters
| Field | Type | Required | Default | Values | What it does |
|---|---|---|---|---|---|
input | string | yes | — | text, within the model's character limit (above) | What to say. |
voice | string | yes | — | an ElevenLabs voice id, or alloy · amber · ash · august · blue · coral · lily · onyx · sage · verse | The OpenAI-style names are mapped to ElevenLabs voices (alloy is Rachel, ash is Domi, coral is Aria, …); any other value is passed on as a voice id. |
response_format | string | no | pcm (44.1 kHz) | mp3 · pcm · opus, or an ElevenLabs output format such as mp3_44100_128 | mp3 is 44.1 kHz at 128 kbps and opus 48 kHz at 128 kbps. Send mp3 for a playable file: the default is raw PCM. |
speed | number | no | 1.0 | ElevenLabs' range, 0.7 – 1.2 | Speaking rate, passed to the voice settings. |
Pricing
| Billable unit and options | Rate (USD) |
|---|---|
| per 1K characters | $0.096 |
View this model in the pricing catalogue. Your billing logs show the actual charge for each request.