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.
- Precio base
- $0.20USD / ejecución
- Ejecución
- async
- Tipo de modelo
- audio
- Campos de entrada
- 3
Probar el modelo
Entorno de pruebas
¿Qué le gustaría hacer después?
Ejemplos
Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.
- Abrir resultado ↗
Entrada
{}
Ficha del modelo
Especificaciones
Precios
- Precio base
- $0.20 / ejecución
Contexto y modalidades
- Entrada
- Definido por esquema
- Salida
- audio
Capacidades
- Chat
- No compatible
- Visión
- No compatible
- Razonamiento
- No compatible
- Salida estructurada
- No compatible
- Llamadas a funciones
- No compatible
- Entrada de audio
- No compatible
Acceso
- Proveedor
- ElevenLabs
- ID del modelo
- elevenlabs/text-to-dialogue
- Ejecución
- async
- URL base
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README de la 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.
Empiece a construir
Envíe su primera solicitud
Endpoint compatible con OpenAI con autenticación unificada y seguimiento 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 obligatorios · 3 opcionales
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
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. · Opciones: , 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 salida
| Campo | Tipo | Descripción |
|---|---|---|
id | string | Identificador único de la tarea de generación |
status | string | Estado de la tarea: pending, running, completed, failed, timeout |
model | string | Modelo usado para la generación |
outputs | array | Matriz de elementos de salida |
outputs[].url | string | URL del artefacto generado |
outputs[].content_type | string | Tipo MIME (por ejemplo, image/png, video/mp4) |
error | object | null | Detalles del error si falla; null en caso de éxito |
error.type | string | Código de tipo de error legible por máquina |
error.message | string | Descripción del error legible por humanos |
Flujo asíncrono
Este modelo se ejecuta de forma asíncrona. Envía una solicitud y luego consulta el resultado.
- Enviar: haz POST a /v1/run y lee el
iddevuelto. - Consultar: haz GET a /v1/run/{id} hasta que el estado sea
completed,failedotimeout. - Recuperar: lee
outputsde la respuesta completada.
Elija su modelo
Comparar modelos
| Modelo | Tipo | Precio predeterminado | Lanzamiento |
|---|---|---|---|
Text To DialogueEste modelo ElevenLabs | Audio | $0.20 / ejecución | 9 sept 2025 |
ElevenLabs | Audio | $0.01 / ejecución | 2 nov 2026 |
ElevenLabs | Audio | $0.04 / ejecución | 28 sept 2026 |
ElevenLabs | Audio | $0.08 / ejecución | 28 sept 2026 |
ElevenLabs | Audio | $0.75 / ejecución | 14 sept 2026 |
ElevenLabs | Audio | $0.75 / ejecución | 14 sept 2026 |
Preguntas
FAQ
¿Cómo llamo a ElevenLabs Text To Dialogue a través de SandBase?
Crea una clave API de SandBase y luego envía solicitudes con el ID de modelo "elevenlabs/text-to-dialogue" a Unified Run API (/v1/run) en https://api.sandbase.ai. Los ejemplos de solicitud de esta página muestran el payload exacto.
¿Necesito una cuenta separada de ElevenLabs?
No. Una sola clave API y saldo de SandBase te dan acceso a ElevenLabs Text To Dialogue y a los demás modelos del catálogo; no necesitas registrarte aparte en ElevenLabs.
