audiostringobrigatório
Speech audio, file or URL. It sets the video length.
heygen/avatar6-turbo/image-to-videoHeyGen Avatar 6 Turbo by HeyGen turns a photo of a person and a speech track into a lifelike talking video. Turbo is the faster, lower-cost tier.
Testar o modelo
PNG, JPEG, WebP ou GIF · máximo de 20 MiB
O que você gostaria de fazer em seguida?
Selecione um exemplo para carregar as entradas e o resultado no playground.
{
"audio": "https://static.sandbase.ai/examples/d5971b7a-1eb9-423e-b169-66fc98d4bf87/input/ece18167-f8ab-49d2-b162-eeda05bde2f8.mp3",
"image": "https://static.sandbase.ai/examples/d5971b7a-1eb9-423e-b169-66fc98d4bf87/input/9f3fd320-f150-4261-ad2a-f16e4c22ff3b.png"
}HeyGen Avatar 6 Turbo turns one photo of a person and a speech track into a talking video with natural motion and lip-sync. Turbo is the faster, lower-cost tier.
| Field | Type | Default | Notes |
|---|---|---|---|
image | image file or URL, required | — | Front-facing photo. |
audio | audio file or URL, required | — | Sets the video length. |
motion_prompt | string | — | Direction for motion and expression. |
motion_expressiveness | default / less | default | less for calmer motion. |
resolution | 1080p / 2k | 1080p | Sets the per-second rate. |
$0.06 per output second at 1080p, $0.0875 at 2k. Length follows the speech audio; the quote before submission assumes 5 seconds.
| Output | 1080p | 2k |
|---|---|---|
| 10s | $0.60 | $0.875 |
| 60s | $3.60 | $5.25 |
| Failed runs are not charged. |
Related: heygen/avatar6-turbo/ref-video-to-video, heygen/avatar6-turbo/identity-to-video, heygen/avatar5/digital-twin.
Comece a construir
Envie este modelo pela SandBase Unified Run API.
# 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/avatar6-turbo/image-to-video",
"audio": "https://v3b.fal.media/files/b/0ab0e602/eeEMX2kTC9XI8yzGCEi1w_a.mp3",
"image": "https://storage.googleapis.com/falserverless/example_inputs/omnihuman.png",
"resolution": "1080p",
"motion_expressiveness": "default"
}
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"Crie uma chave da API SandBase e defina-a no ambiente do seu servidor. Todas as requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha a chave no servidor. Não a exponha em código do navegador nem a comite em um repositório.
Faça POST para /v1/run com este ID de modelo e suas entradas. O exemplo de requisição acima inclui envio e polling.
Use o ID de execução retornado para fazer polling até que o status seja completed, failed ou timeout. Leia a saída somente após completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Passe uma URL de arquivo acessível publicamente no campo de imagem, vídeo ou áudio do modelo. Os formatos e limites suportados são mostrados ao lado de cada entrada do Playground.
Use o controle de upload ou substituição nos campos de imagem suportados no Playground. Campos de URL de vídeo aceitam um vídeo de condução hospedado; isso não implica suporte a upload de vídeo.
audiostringobrigatórioSpeech audio, file or URL. It sets the video length.
imagestringobrigatórioPhoto of the person to animate, file or URL. The face should be clearly visible.
resolutionstringOutput resolution; 2k is billed at a higher per-second rate.
Padrão: "1080p"
Valores possíveis: "1080p", "2k"
motion_promptstringOptional direction for the avatar's motion and expression.
motion_expressivenessstringless gives fewer, smaller gestures and calmer expressions.
Padrão: "default"
Valores possíveis: "default", "less"
{
"model": "heygen/avatar6-turbo/image-to-video",
"audio": "https://v3b.fal.media/files/b/0ab0e602/eeEMX2kTC9XI8yzGCEi1w_a.mp3",
"image": "https://storage.googleapis.com/falserverless/example_inputs/omnihuman.png",
"resolution": "1080p",
"motion_expressiveness": "default"
}Uma execução concluída expõe seu resultado em output. O texto a seguir é o exemplo salvo do modelo, não uma nova geração.
[
{
"url": "https://static.sandbase.ai/examples/d5971b7a-1eb9-423e-b169-66fc98d4bf87/output/a9934477-6c7e-40b1-b38f-7a27644ea1b7.mp4"
}
]