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.
- Cena bazowa
- $0.20USD / uruchomienie
- Wykonanie
- async
- Typ modelu
- audio
- Pola wejściowe
- 3
Wypróbuj model
Playground
Co chcesz zrobić dalej?
Przykłady
Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.
- Otwórz wynik ↗
Wejście
{}
Karta modelu
Specyfikacja
Cennik
- Cena bazowa
- $0.20 / uruchomienie
Kontekst i modalności
- Wejście
- Zdefiniowane przez schemat
- Wyjście
- audio
Możliwości
- Czat
- Nieobsługiwane
- Wizja
- Nieobsługiwane
- Rozumowanie
- Nieobsługiwane
- Ustrukturyzowany wynik
- Nieobsługiwane
- Wywoływanie funkcji
- Nieobsługiwane
- Wejście audio
- Nieobsługiwane
Dostęp
- Dostawca
- ElevenLabs
- ID modelu
- elevenlabs/text-to-dialogue
- Wykonanie
- async
- Bazowy URL
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README 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.
Zacznij tworzyć
Wyślij pierwsze żądanie
Kompatybilny z OpenAI endpoint z jednolitym uwierzytelnianiem i śledzeniem użycia.
# 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"Schemat wejścia
3 parametrów · 0 wymaganych · 3 opcjonalnych
| Parametr | Typ | Wymagane | Opis |
|---|---|---|---|
inputs | array | Opcjonalne | A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. |
stability | number | Opcjonalne | 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. · Min.: 0 · Maks.: 1 |
language_code | string | Opcjonalne | Language code (ISO 639-3) used to enforce a language for the model. · Opcje: , 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 |
Schemat wyjścia
| Pole | Typ | Opis |
|---|---|---|
id | string | Unikalny identyfikator zadania generowania |
status | string | Status zadania: pending, running, completed, failed, timeout |
model | string | Model użyty do generowania |
outputs | array | Tablica elementów wyjściowych |
outputs[].url | string | URL wygenerowanego artefaktu |
outputs[].content_type | string | Typ MIME (np. image/png, video/mp4) |
error | object | null | Szczegóły błędu, jeśli wystąpił; null w przypadku powodzenia |
error.type | string | Maszynowo czytelny kod typu błędu |
error.message | string | Opis błędu czytelny dla człowieka |
Asynchroniczny przepływ pracy
Ten model działa asynchronicznie. Wyślij żądanie, a następnie odpytyuj o wynik.
- Wyślij: wykonaj POST do /v1/run i odczytaj zwrócone
id. - Odpytywanie: wykonuj GET /v1/run/{id}, aż status będzie równy
completed,failedlubtimeout. - Pobierz: odczytaj
outputsz ukończonej odpowiedzi.
Wybierz swój model
Porównaj modele
| Model | Typ | Cena domyślna | Wydano |
|---|---|---|---|
Text To DialogueTen model ElevenLabs | Audio | $0.20 / uruchomienie | 9 wrz 2025 |
ElevenLabs | Audio | $0.01 / uruchomienie | 2 lis 2026 |
ElevenLabs | Audio | $0.04 / uruchomienie | 28 wrz 2026 |
ElevenLabs | Audio | $0.08 / uruchomienie | 28 wrz 2026 |
ElevenLabs | Audio | $0.75 / uruchomienie | 14 wrz 2026 |
ElevenLabs | Audio | $0.75 / uruchomienie | 14 wrz 2026 |
Pytania
FAQ
Jak wywołać ElevenLabs Text To Dialogue przez SandBase?
Utwórz klucz API SandBase, a następnie wysyłaj żądania z identyfikatorem modelu "elevenlabs/text-to-dialogue" do Unified Run API (/v1/run) na https://api.sandbase.ai. Przykłady żądań na tej stronie pokazują dokładny payload.
Czy potrzebuję osobnego konta ElevenLabs?
Nie. Jeden klucz API SandBase i saldo daje Ci dostęp do ElevenLabs Text To Dialogue oraz innych modeli w katalogu; nie musisz osobno zakładać konta u ElevenLabs.
