AI Models
Eleven v4 Dialogue
Several voices in one recording with Eleven v4: give each line a voice, with audio tags for delivery.
Pricing, live playground and model overview: Eleven v4 Dialogue API on YepAPI
POST
$0.16/1K chars/v1/media/queueOverview
Eleven v4 Dialogue turns a list of lines into one recording in which the speakers react to each other. Give each line a voice; audio tags such as [laughing] or [whispering] set the delivery. Over 90 languages.
| Property | Value |
|---|---|
| Model ID | elevenlabs/eleven-v4-dialogue |
| Alias | text-to-dialogue |
| Category | Text to Speech |
| Pricing | $0.16 per 1,000 characters |
Usage
All media models use the async job queue. Submit a job, then poll for the result.
Step 1: Submit Job
const res = await fetch('https://api.yepapi.com/v1/media/queue', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: 'elevenlabs/eleven-v4-dialogue',
options: {
params: {
inputs: [
{
text: '[whispering] Did you hear that?',
voice: 'vCHG6sKIqAbXWNNm5vpY'
},
{
text: 'Hear what? There\'s nothing there.',
voice: 'FVQMzxJGPUBtfz1Azdoy'
}
]
}
}
}),
});
const { data } = await res.json();
// data.jobId — use this to poll for resultscurl -X POST https://api.yepapi.com/v1/media/queue \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "elevenlabs/eleven-v4-dialogue", "options": {"params": {"inputs": [{"text": "[whispering] Did you hear that?", "voice": "vCHG6sKIqAbXWNNm5vpY"}, {"text": "Hear what? There'\''s nothing there.", "voice": "FVQMzxJGPUBtfz1Azdoy"}]}}}'Step 2: Poll for Result
curl https://api.yepapi.com/v1/media/status/JOB_ID \
-H "x-api-key: YOUR_API_KEY"When status is completed you get result.audio: { mimeType, base64 }, one file with every line. Results are kept for one hour.
Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
model | string | Yes | elevenlabs/eleven-v4-dialogue or alias text-to-dialogue | — |
options.params.inputs | array | Yes | The lines in order: [{ text, voice }]. Up to 10 voices and 10,000 characters in total | — |
options.outputFormat | string | No | mp3, pcm, opus or ulaw | mp3 |
options.params.stability | number | No | 0 to 1 | 0.5 |
options.params.language_code | string | No | Force a language, such as en | detected |
options.params.timestamps | boolean | No | Also return result.data with character timings and which voice speaks when | false |
options.params.seed | integer | No | Repeat a similar take | — |
Features
- Up to 10 voices in one file
- Audio tags for emotion and delivery
- 90+ languages
- Optional character timings per speaker
Billing
Billed on the characters in the lines, so the price is known when you submit. $0.01 minimum.
Under the Hood
Powered by ElevenLabs.