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.
- Prix de base
- $0.03USD / exécution
- Exécution
- async
- Type de modèle
- audio
- Champs d'entrée
- 4
Essayer le modèle
Bac à sable
Que souhaitez-vous faire ensuite ?
Exemples
Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.
- Ouvrir le résultat ↗
Entrée
{ "text": "Welcome to SandBase. One API key gives you thousands of AI models for images, video, audio and text.", "voice": "Jonah" } - Ouvrir le résultat ↗
Entrée
{ "language": "fr", "text": "Bonjour et bienvenue. Aujourd'hui, nous allons découvrir comment créer une vidéo en quelques minutes.", "voice": "Nadine" }
Fiche modèle
Spécifications
Tarification
- Prix de base
- $0.03 / exécution
Contexte et modalités
- Entrée
- Défini par le schéma
- Sortie
- audio
Fonctionnalités
- Chat
- Non pris en charge
- Vision
- Non pris en charge
- Raisonnement
- Non pris en charge
- Sortie structurée
- Non pris en charge
- Appel de fonction
- Non pris en charge
- Entrée audio
- Non pris en charge
Accès
- Fournisseur
- HeyGen
- ID du modèle
- heygen/heygen-voice
- Exécution
- async
- URL de base
- https://api.sandbase.ai
- API
- Unified Run API
- Point de terminaison
- /v1/run
README de l'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.
Commencer à construire
Envoyez votre première requête
Point de terminaison compatible OpenAI avec authentification unifiée et suivi de l'utilisation.
# 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"Schéma d'entrée
4 paramètres · 1 obligatoires · 3 facultatifs
| Paramètre | Type | Obligatoire | Description |
|---|---|---|---|
text | string | Obligatoire | Text to speak, up to 5,000 characters. · Longueur min. : 1 · Longueur max. : 5000 |
voice | string | Facultatif | HeyGen public voice. Ignored when reference_audio is set. · Options : Jonah, Nadine, Tabitha, Soren, Elowen, Vincent, Jocelyn, Marielle, Corinne, Lucian, Kieran, Hugh, Noelle, Bram, Ewan, Iona, Cecily, Simon, Weston, Felicity, Gareth, Rory, Meredith, Sabrina · Par défaut : "Jonah" JonahNadineTabithaSorenElowenVincentJocelynMarielleCorinneLucianKieranHughNoelleBramEwanIonaCecilySimonWestonFelicityGarethRoryMeredithSabrina |
language | string | Facultatif | Language of the text. Detected automatically when omitted. · Options : 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 | Facultatif | Optional single-speaker recording to clone instead of a public voice. Only the first 3 minutes are used. |
Schéma de sortie
| Champ | Type | Description |
|---|---|---|
id | string | Identifiant unique de la tâche de génération |
status | string | Statut de la tâche : pending, running, completed, failed, timeout |
model | string | Modèle utilisé pour la génération |
outputs | array | Tableau des éléments de sortie |
outputs[].url | string | URL de l'artefact généré |
outputs[].content_type | string | Type MIME (par ex. image/png, video/mp4) |
error | object | null | Détails de l'erreur en cas d'échec, null en cas de succès |
error.type | string | Code de type d'erreur lisible par machine |
error.message | string | Description de l'erreur lisible par l'humain |
Flux de travail asynchrone
Ce modèle s’exécute de manière asynchrone. Envoyez une requête, puis interrogez le résultat.
- Envoyer : faites un POST vers /v1/run et lisez le
idrenvoyé. - Interroger : faites un GET sur /v1/run/{id} jusqu’à ce que le statut soit
completed,failedoutimeout. - Récupérer : lisez
outputsdans la réponse terminée.
Choisissez votre modèle
Comparer les modèles
| Modèle | Type | Prix par défaut | Lancement |
|---|---|---|---|
HeyGen VoiceCe modèle HeyGen | Audio | $0.03 / exécution | 21 oct. 2026 |
HeyGen | Audio | $0.04 / exécution | 21 oct. 2026 |
HeyGen | Audio | $0.00 / exécution | 21 oct. 2026 |
HeyGen | Audio | $0.01 / exécution | 21 oct. 2026 |
Questions
FAQ
Comment appeler HeyGen Voice via SandBase ?
Créez une clé API SandBase, puis envoyez des requêtes avec l’identifiant de modèle "heygen/heygen-voice" à Unified Run API (/v1/run) sur https://api.sandbase.ai. Les exemples de requêtes sur cette page montrent la charge utile exacte.
Ai-je besoin d’un compte HeyGen distinct ?
Non. Une seule clé API SandBase et un seul solde vous donnent accès à HeyGen Voice et aux autres modèles du catalogue ; vous n’avez pas besoin de créer un compte HeyGen séparément.
