text + voice) or multi-speaker dialogue (dialogue) through the same endpoint[laughs], [whispers], [sighs] to direct emotion and delivery| Use case | Send |
|---|---|
| One speaker | text and voice |
| Several speakers | dialogue: at least 1 segment, each with its own text and voice |
dialogue, the top-level text and voice are not needed. If both text and dialogue are sent, dialogue is used and text is ignored.{
"model": "elevenlabs/text-to-speech-v4-turbo",
"callBackUrl": "https://your-domain.com/api/callback",
"input": {
"dialogue": [
{
"text": "[excitedly] Hey Jessica! Have you tried Eleven v4 yet?",
"voice": "TX3LPaxmHKxFdv7VOQHJ"
},
{
"text": "[whispers] Just did. It can even whisper like this.",
"voice": "cgSgspJ2msm6clMCkdW9"
}
],
"stability": 0.5,
"similarity_boost": 0.75
}
}curl --location 'https://api.kie.ai/api/v1/jobs/createTask' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "elevenlabs/text-to-speech-v4-turbo",
"callBackUrl": "https://your-domain.com/api/callback",
"input": {
"text": "Good morning! [laughs] This message is coming to you through an old phone line.",
"voice": "TX3LPaxmHKxFdv7VOQHJ",
"stability": 0.5,
"similarity_boost": 0.75,
"language_code": "en",
"audio_effects": {
"filter_preset_id": "phone",
"environment_id": "small_room",
"distance": 0.25
}
}
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "task_12345678"
}
}