Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

HeyGen Voice

heygen/voice

HeyGen Voice turns text into natural, expressive speech in 39 languages with 24 public voices or an instant voice clone from a reference recording.

Prix de base
$0.04USD / exécution
Exécution
async
Type de modèle
audio
Champs d'entrée
5
Route de production

Essayer le modèle

Bac à sable

Ouvrir le Playground
Entrée
The text to speak.
HeyGen public voice. Ignored when `reference_audio` is set.
Recording of a single speaker to clone instead of using a public voice, as an audio file or URL (MP3, WAV, or OGG). Only the first 3 minutes are used.
Language of the text. Detected from the text when omitted. It does not translate the text.
01
How expressive the delivery is. Plage : de 0 à 1.
SortiePrêt

Votre sortie apparaîtra ici

Complétez les entrées, puis cliquez sur Exécuter.

Fiche modèle

Spécifications

Tarification

Prix de base
$0.04 / 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/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 speaks up to 5,000 characters of text in 39 languages with 24 public voices or an instant clone of a single-speaker reference recording, and returns a 44.1 kHz WAV file.

Fields

FieldTypeDefaultNotes
textstring, required—Text to speak.
voicestringJonahPublic voice; ignored when reference_audio is set. See the schema for supported values.
reference_audioaudio file or URL—Single-speaker clip (MP3/WAV/OGG) to clone; first 3 minutes used.
languagestring—Language code; detected from the text when omitted. See the schema for supported values.
expressiveness_boostnumber 0–110 = flat, 1 = most expressive.

Billing

$0.035 per 1,000 characters of input text, billed per character.

TextPrice
200 characters$0.007
1,000 characters$0.035
5,000 characters$0.175

Failed runs are not charged.

Prompting

  • Use punctuation to guide phrasing; give a clean, single-speaker clip for cloning.

Also on SandBase

Related: heygen/voice/turbo, heygen/avatar6/image-to-video.

Commencer à construire

Envoyez votre première requête

Point de terminaison compatible OpenAI avec authentification unifiée et suivi de l'utilisation.

API de production
point de terminaison Unified Run API
https://api.sandbase.ai/v1/run
ID du modèle
heygen/voice
# 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/voice",
  "text": "Hello! This is HeyGen Voice, speaking on SandBase.",
  "voice": "Jonah",
  "expressiveness_boost": 1
}
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"
01

Schéma d'entrée

5 paramètres · 1 obligatoires · 4 facultatifs

ParamètreTypeObligatoireDescription
textstringObligatoireThe text to speak. · Longueur min. : 1 · Longueur max. : 5000
voicestringFacultatifHeyGen 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
languagestringFacultatifLanguage of the text. Detected from the text when omitted. It does not translate the text. · 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_audiostringFacultatifRecording of a single speaker to clone instead of using a public voice, as an audio file or URL (MP3, WAV, or OGG). Only the first 3 minutes are used.
expressiveness_boostnumberFacultatifHow expressive the delivery is. · Min : 0 · Max : 1 · Par défaut : 1
02

Schéma de sortie

ChampTypeDescription
idstringIdentifiant unique de la tâche de génération
statusstringStatut de la tâche : pending, running, completed, failed, timeout
modelstringModèle utilisé pour la génération
outputsarrayTableau des éléments de sortie
outputs[].urlstringURL de l'artefact généré
outputs[].content_typestringType MIME (par ex. image/png, video/mp4)
errorobject | nullDétails de l'erreur en cas d'échec, null en cas de succès
error.typestringCode de type d'erreur lisible par machine
error.messagestringDescription 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.

  1. Envoyer : faites un POST vers /v1/run et lisez le id renvoyé.
  2. Interroger : faites un GET sur /v1/run/{id} jusqu’à ce que le statut soit completed, failed ou timeout.
  3. Récupérer : lisez outputs dans la réponse terminée.

Choisissez votre modèle

Comparer les modèles

Tous les modèles d’image et de vidéo
ModèleTypePrix par défautLancement
HeyGen VoiceCe modèle
HeyGen
Audio$0.04 / exécution21 oct. 2026
HeyGenAudio$0.03 / exécution21 oct. 2026
HeyGenAudio$0.00 / exécution21 oct. 2026
HeyGenAudio$0.01 / exécution21 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/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.