Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

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.

Prezzo base
$0.04USD / esecuzione
Esecuzione
async
Tipo di modello
audio
Campi di input
5
Route di produzione

Prova il modello

Playground

Apri playground
Input
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. Intervallo: da 0 a 1.
OutputPronto

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

Scheda del modello

Specifiche

Prezzi

Prezzo base
$0.04 / esecuzione

Contesto e modalità

Input
Definito dallo schema
Output
audio

Funzionalità

Chat
Non supportato
Vision
Non supportato
Ragionamento
Non supportato
Output strutturato
Non supportato
Chiamata di funzione
Non supportato
Input audio
Non supportato

Accesso

Provider
HeyGen
ID modello
heygen/voice
Esecuzione
async
URL base
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

README 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.

Inizia a costruire

Invia la tua prima richiesta

Endpoint compatibile con OpenAI con autenticazione unificata e tracciamento dell'utilizzo.

API di produzione
Endpoint Unified Run API
https://api.sandbase.ai/v1/run
ID del modello
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

Schema di input

5 parametri · 1 obbligatori · 4 facoltativi

ParametroTipoObbligatorioDescrizione
textstringObbligatorioThe text to speak. · Lunghezza minima: 1 · Lunghezza massima: 5000
voicestringFacoltativoHeyGen public voice. Ignored when `reference_audio` is set. · Opzioni: Jonah, Nadine, Tabitha, Soren, Elowen, Vincent, Jocelyn, Marielle, Corinne, Lucian, Kieran, Hugh, Noelle, Bram, Ewan, Iona, Cecily, Simon, Weston, Felicity, Gareth, Rory, Meredith, Sabrina · Predefinito: "Jonah"
JonahNadineTabithaSorenElowenVincentJocelynMarielleCorinneLucianKieranHughNoelleBramEwanIonaCecilySimonWestonFelicityGarethRoryMeredithSabrina
languagestringFacoltativoLanguage of the text. Detected from the text when omitted. It does not translate the text. · Opzioni: 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_audiostringFacoltativoRecording 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_boostnumberFacoltativoHow expressive the delivery is. · Min: 0 · Max: 1 · Predefinito: 1
02

Schema di output

CampoTipoDescrizione
idstringIdentificatore univoco dell'attività di generazione
statusstringStato dell'attività: pending, running, completed, failed, timeout
modelstringModello usato per la generazione
outputsarrayArray di elementi di output
outputs[].urlstringURL dell'artefatto generato
outputs[].content_typestringTipo MIME (ad esempio image/png, video/mp4)
errorobject | nullDettagli dell'errore in caso di fallimento, null in caso di successo
error.typestringCodice del tipo di errore leggibile dalla macchina
error.messagestringDescrizione dell'errore leggibile dall'utente

Workflow asincrono

Questo modello funziona in modo asincrono. Invia una richiesta, quindi esegui il polling per ottenere il risultato.

  1. Invio: esegui POST su /v1/run e leggi il id restituito.
  2. Polling: esegui GET /v1/run/{id} finché lo stato non è completed, failed o timeout.
  3. Recupero: leggi outputs dalla risposta completata.

Scegli il tuo modello

Confronta i modelli

Tutti i modelli di immagini e video
ModelloTipoPrezzo predefinitoRilasciato
HeyGen VoiceQuesto modello
HeyGen
Audio$0.04 / esecuzione21 ott 2026
HeyGenAudio$0.03 / esecuzione21 ott 2026
HeyGenAudio$0.00 / esecuzione21 ott 2026
HeyGenAudio$0.01 / esecuzione21 ott 2026

Domande

FAQ

Come chiamo HeyGen Voice tramite SandBase?

Crea una chiave API SandBase, poi invia richieste con l'ID modello "heygen/voice" a Unified Run API (/v1/run) su https://api.sandbase.ai. Gli esempi di richiesta in questa pagina mostrano il payload esatto.

Mi serve un account HeyGen separato?

No. Una sola chiave API e un solo saldo SandBase ti danno accesso a HeyGen Voice e agli altri modelli del catalogo; non è necessario registrarsi separatamente su HeyGen.