HeyGen Voice
heygen/heygen-voiceHeyGen Voice turns text into natural speech in 39 languages, with 24 public voices or a cloned voice from a reference recording.
- Cena bazowa
- $0.03USD / uruchomienie
- Wykonanie
- async
- Typ modelu
- audio
- Pola wejściowe
- 4
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
{ "text": "Welcome to SandBase. One API key gives you thousands of AI models for images, video, audio and text.", "voice": "Jonah" } - Otwórz wynik ↗
Wejście
{ "language": "fr", "text": "Bonjour et bienvenue. Aujourd'hui, nous allons découvrir comment créer une vidéo en quelques minutes.", "voice": "Nadine" }
Karta modelu
Specyfikacja
Cennik
- Cena bazowa
- $0.03 / 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
- HeyGen
- ID modelu
- heygen/heygen-voice
- Wykonanie
- async
- Bazowy URL
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README API
HeyGen Voice
HeyGen Voice turns text into natural speech in 39 languages, using one of 24 public voices or a voice cloned from a reference recording.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
text | string, required | — | Up to 5,000 characters. |
voice | 24 public voices | Jonah | Ignored when reference_audio is set. |
language | ISO 639-1 code (39 languages) | auto | Language of the text. |
reference_audio | audio URL | — | Single-speaker recording to clone; the first 3 minutes are used. |
Billing
$0.03 per started 1,000 characters of input text.
| Text | Price |
|---|---|
| Up to 1,000 characters | $0.03 |
| 2,500 characters | $0.09 |
| 5,000 characters | $0.15 |
| Failed runs are not charged. |
Limits
- Up to 5,000 characters per request.
Also on SandBase
Faster, lower-cost tier: heygen/heygen-voice/turbo.
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": "heygen/heygen-voice",
"text": "Hello! This is HeyGen Voice, speaking on fal.",
"voice": "Jonah"
}
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
4 parametrów · 1 wymaganych · 3 opcjonalnych
| Parametr | Typ | Wymagane | Opis |
|---|---|---|---|
text | string | Wymagane | Text to speak, up to 5,000 characters. · Minimalna długość: 1 · Maksymalna długość: 5000 |
voice | string | Opcjonalne | HeyGen public voice. Ignored when reference_audio is set. · Opcje: Jonah, Nadine, Tabitha, Soren, Elowen, Vincent, Jocelyn, Marielle, Corinne, Lucian, Kieran, Hugh, Noelle, Bram, Ewan, Iona, Cecily, Simon, Weston, Felicity, Gareth, Rory, Meredith, Sabrina · Domyślnie: "Jonah" JonahNadineTabithaSorenElowenVincentJocelynMarielleCorinneLucianKieranHughNoelleBramEwanIonaCecilySimonWestonFelicityGarethRoryMeredithSabrina |
language | string | Opcjonalne | Language of the text. Detected automatically when omitted. · Opcje: ar, be, bg, ca, cs, da, de, el, en, es, fa, fi, fr, he, hi, hr, hu, id, it, ja, ko, mk, ms, nl, pl, pt, ro, ru, sk, sl, sr, sv, ta, th, tl, tr, uk, vi, zh arbebgcacsdadeelenesfafifrhehihrhuiditjakomkmsnlplptroruskslsrsvtathtltrukvizh |
reference_audio | string | Opcjonalne | Optional single-speaker recording to clone instead of a public voice. Only the first 3 minutes are used. |
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 |
|---|---|---|---|
HeyGen VoiceTen model HeyGen | Audio | $0.03 / uruchomienie | 21 paź 2026 |
HeyGen | Audio | $0.04 / uruchomienie | 21 paź 2026 |
HeyGen | Audio | $0.00 / uruchomienie | 21 paź 2026 |
HeyGen | Audio | $0.01 / uruchomienie | 21 paź 2026 |
Pytania
FAQ
Jak wywołać HeyGen Voice przez SandBase?
Utwórz klucz API SandBase, a następnie wysyłaj żądania z identyfikatorem modelu "heygen/heygen-voice" 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 HeyGen?
Nie. Jeden klucz API SandBase i saldo daje Ci dostęp do HeyGen Voice oraz innych modeli w katalogu; nie musisz osobno zakładać konta u HeyGen.
