HeyGen Voice
heygen/voiceHeyGen Voice turns text into natural, expressive speech in 39 languages with 24 public voices or an instant voice clone from a reference recording.
- Preço base
- $0.04USD / execução
- Execução
- async
- Tipo de modelo
- audio
- Campos de entrada
- 5
Testar o modelo
Playground
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
Cartão do modelo
Especificações
Preços
- Preço base
- $0.04 / execução
Contexto e modalidades
- Entrada
- Definido pelo schema
- Saída
- audio
Capacidades
- Chat
- Não suportado
- Visão
- Não suportado
- Raciocínio
- Não suportado
- Saída estruturada
- Não suportado
- Chamada de função
- Não suportado
- Entrada de áudio
- Não suportado
Acesso
- Provedor
- HeyGen
- ID do modelo
- heygen/voice
- Execução
- async
- URL base
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README da 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
| Field | Type | Default | Notes |
|---|---|---|---|
text | string, required | — | Text to speak. |
voice | string | Jonah | Public voice; ignored when reference_audio is set. See the schema for supported values. |
reference_audio | audio file or URL | — | Single-speaker clip (MP3/WAV/OGG) to clone; first 3 minutes used. |
language | string | — | Language code; detected from the text when omitted. See the schema for supported values. |
expressiveness_boost | number 0–1 | 1 | 0 = flat, 1 = most expressive. |
Billing
$0.035 per 1,000 characters of input text, billed per character.
| Text | Price |
|---|---|
| 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.
Comece a construir
Envie sua primeira solicitação
Endpoint compatível com OpenAI com autenticação unificada e rastreamento de uso.
# 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"Esquema de entrada
5 parâmetros · 1 obrigatórios · 4 opcionais
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
text | string | Obrigatório | The text to speak. · Tamanho mín.: 1 · Tamanho máx.: 5000 |
voice | string | Opcional | HeyGen public voice. Ignored when `reference_audio` is set. · Opções: Jonah, Nadine, Tabitha, Soren, Elowen, Vincent, Jocelyn, Marielle, Corinne, Lucian, Kieran, Hugh, Noelle, Bram, Ewan, Iona, Cecily, Simon, Weston, Felicity, Gareth, Rory, Meredith, Sabrina · Padrão: "Jonah" JonahNadineTabithaSorenElowenVincentJocelynMarielleCorinneLucianKieranHughNoelleBramEwanIonaCecilySimonWestonFelicityGarethRoryMeredithSabrina |
language | string | Opcional | Language of the text. Detected from the text when omitted. It does not translate the text. · Opções: 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 | Opcional | 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. |
expressiveness_boost | number | Opcional | How expressive the delivery is. · Mín.: 0 · Máx.: 1 · Padrão: 1 |
Esquema de saída
| Campo | Tipo | Descrição |
|---|---|---|
id | string | Identificador exclusivo da tarefa de geração |
status | string | Status da tarefa: pending, running, completed, failed, timeout |
model | string | Modelo usado para a geração |
outputs | array | Vetor de itens de saída |
outputs[].url | string | URL do artefato gerado |
outputs[].content_type | string | Tipo MIME (por exemplo, image/png, video/mp4) |
error | object | null | Detalhes do erro se houver falha, null em caso de sucesso |
error.type | string | Código do tipo de erro legível por máquina |
error.message | string | Descrição do erro legível por humanos |
Fluxo assíncrono
Este modelo é executado de forma assíncrona. Envie uma solicitação e depois faça polling pelo resultado.
- Enviar: faça POST para /v1/run e leia o
idretornado. - Fazer polling: faça GET em /v1/run/{id} até o status ser
completed,failedoutimeout. - Recuperar: leia
outputsda resposta concluída.
Escolha seu modelo
Comparar modelos
| Modelo | Tipo | Preço padrão | Lançado |
|---|---|---|---|
HeyGen VoiceEste modelo HeyGen | Áudio | $0.04 / execução | 21 de out. de 2026 |
HeyGen | Áudio | $0.03 / execução | 21 de out. de 2026 |
HeyGen | Áudio | $0.00 / execução | 21 de out. de 2026 |
HeyGen | Áudio | $0.01 / execução | 21 de out. de 2026 |
Perguntas
FAQ
Como faço chamadas ao HeyGen Voice pela SandBase?
Crie uma chave de API da SandBase e depois envie solicitações com o ID do modelo "heygen/voice" para Unified Run API (/v1/run) em https://api.sandbase.ai. Os exemplos de requisição nesta página mostram a carga exata.
Preciso de uma conta HeyGen separada?
Não. Uma única chave de API e saldo da SandBase dão acesso a HeyGen Voice e aos outros modelos do catálogo; você não precisa se cadastrar separadamente no HeyGen.
