Text To Dialogue
elevenlabs/text-to-dialogueElevenLabs Text to Dialogue uses Eleven v3 to turn a list of lines into a multi-speaker conversation, with a separate voice for each line and inline audio tags for delivery.
- Preço base
- $0.20USD / execução
- Execução
- async
- Tipo de modelo
- audio
- Campos de entrada
- 3
Testar o modelo
Playground
O que você gostaria de fazer em seguida?
Exemplos
Selecione um exemplo para carregar as entradas e o resultado no playground.
- Abrir resultado ↗
Entrada
{}
Cartão do modelo
Especificações
Preços
- Preço base
- $0.20 / execução
Contexto e modalidades
- Entrada
- Definido pelo schema
- Saída
- audio
Capacidades
- Chat
- Não suportado
- Visão
- Não suportado
- Raciocínio
- Não suportado
- Saída estruturada
- Não suportado
- Chamada de função
- Não suportado
- Entrada de áudio
- Não suportado
Acesso
- Provedor
- ElevenLabs
- ID do modelo
- elevenlabs/text-to-dialogue
- Execução
- async
- URL base
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README da API
Text To Dialogue
ElevenLabs text-to-dialogue (Eleven v3): a multi-speaker conversation from a list of lines, each with its own voice and inline audio tags.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
inputs | item[] | — | List of {text, voice} lines in speaking order. |
language_code | `` / afr / ara / hye / asm / aze / bel / ben / bos / bul / cat / ceb / nya / hrv / ces / dan / nld / eng / est / fil / fin / fra / glg / kat / deu / ell / guj / hau / heb / hin / hun / isl / ind / gle / ita / jpn / jav / kan / kaz / kir / kor / lav / lin / lit / ltz / mkd / msa / mal / cmn / mar / nep / nor / pus / fas / pol / por / pan / ron / rus / srp / snd / slk / slv / som / spa / swa / swe / tam / tel / tha / tur / ukr / urd / vie / cym | — | Force a language. |
stability | number 0–1 | — | Lower is more expressive. |
Billing
$0.20 per started 1,000 characters across all lines, with a one-unit minimum.
| Dialogue | Price |
|---|---|
| 500 characters | $0.20 |
| 1,000 characters | $0.20 |
| 3,000 characters | $0.60 |
Failed runs are not charged.
Prompting
- Use audio tags like
[laughs]inside lines for delivery.
Also on SandBase
Related: elevenlabs/v3.
Comece a construir
Envie sua primeira solicitação
Endpoint compatível com OpenAI com autenticação unificada e rastreamento de uso.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "elevenlabs/text-to-dialogue",
"inputs": [
{
"text": "[applause] Thank you all for coming tonight! Today we have a very special guest with us.",
"voice": "Aria"
},
{
"text": "[gulps] ... [strong canadian accent] [excited] Hello everyone! Thank you all for having me tonight on this special day.",
"voice": "Charlotte"
}
]
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Esquema de entrada
3 parâmetros · 0 obrigatórios · 3 opcionais
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
inputs | array | Opcional | A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. |
stability | number | Opcional | Determines how stable the voice is and the randomness between each generation. Lower values introduce broader emotional range for the voice. Higher values can result in a monotonous voice with limited emotion. Must be one of 0.0, 0.5, 1.0, else it will be rounded to the nearest value. · Mín.: 0 · Máx.: 1 |
language_code | string | Opcional | Language code (ISO 639-3) used to enforce a language for the model. · Opções: , afr, ara, hye, asm, aze, bel, ben, bos, bul, cat, ceb, nya, hrv, ces, dan, nld, eng, est, fil, fin, fra, glg, kat, deu, ell, guj, hau, heb, hin, hun, isl, ind, gle, ita, jpn, jav, kan, kaz, kir, kor, lav, lin, lit, ltz, mkd, msa, mal, cmn, mar, nep, nor, pus, fas, pol, por, pan, ron, rus, srp, snd, slk, slv, som, spa, swa, swe, tam, tel, tha, tur, ukr, urd, vie, cym afrarahyeasmazebelbenbosbulcatcebnyahrvcesdannldengestfilfinfraglgkatdeuellgujhauhebhinhunislindgleitajpnjavkankazkirkorlavlinlitltzmkdmsamalcmnmarnepnorpusfaspolporpanronrussrpsndslkslvsomspaswaswetamtelthaturukrurdviecym |
Esquema de saída
| Campo | Tipo | Descrição |
|---|---|---|
id | string | Identificador exclusivo da tarefa de geração |
status | string | Status da tarefa: pending, running, completed, failed, timeout |
model | string | Modelo usado para a geração |
outputs | array | Vetor de itens de saída |
outputs[].url | string | URL do artefato gerado |
outputs[].content_type | string | Tipo MIME (por exemplo, image/png, video/mp4) |
error | object | null | Detalhes do erro se houver falha, null em caso de sucesso |
error.type | string | Código do tipo de erro legível por máquina |
error.message | string | Descrição do erro legível por humanos |
Fluxo assíncrono
Este modelo é executado de forma assíncrona. Envie uma solicitação e depois faça polling pelo resultado.
- Enviar: faça POST para /v1/run e leia o
idretornado. - Fazer polling: faça GET em /v1/run/{id} até o status ser
completed,failedoutimeout. - Recuperar: leia
outputsda resposta concluída.
Escolha seu modelo
Comparar modelos
| Modelo | Tipo | Preço padrão | Lançado |
|---|---|---|---|
Text To DialogueEste modelo ElevenLabs | Áudio | $0.20 / execução | 9 de set. de 2025 |
ElevenLabs | Áudio | $0.01 / execução | 2 de nov. de 2026 |
ElevenLabs | Áudio | $0.04 / execução | 28 de set. de 2026 |
ElevenLabs | Áudio | $0.08 / execução | 28 de set. de 2026 |
ElevenLabs | Áudio | $0.75 / execução | 14 de set. de 2026 |
ElevenLabs | Áudio | $0.75 / execução | 14 de set. de 2026 |
Perguntas
FAQ
Como faço chamadas ao ElevenLabs Text To Dialogue pela SandBase?
Crie uma chave de API da SandBase e depois envie solicitações com o ID do modelo "elevenlabs/text-to-dialogue" para Unified Run API (/v1/run) em https://api.sandbase.ai. Os exemplos de requisição nesta página mostram a carga exata.
Preciso de uma conta ElevenLabs separada?
Não. Uma única chave de API e saldo da SandBase dão acesso a ElevenLabs Text To Dialogue e aos outros modelos do catálogo; você não precisa se cadastrar separadamente no ElevenLabs.
