audiostringobligatoire
Speech audio, file or URL. It sets the video length.
heygen/avatar6-turbo/ref-video-to-videoHeyGen Avatar 6 Turbo by HeyGen animates an illustrated or animated character from a reference video, lip-synced to speech audio. Turbo is the faster, lower-cost tier.
Essayer le modèle
PNG, JPEG, WebP ou GIF · 20 MiB maximum
Que souhaitez-vous faire ensuite ?
Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.
{
"audio": "https://static.sandbase.ai/examples/c0fcc21b-8d8c-4b08-9fa2-3eaec184e214/input/ffba4ee9-a398-41a0-b820-b2dc6d9f0a12.mp3",
"video": "https://static.sandbase.ai/examples/c0fcc21b-8d8c-4b08-9fa2-3eaec184e214/input/9c450085-319b-4db7-aaef-ecabfb3ce51b.mp4"
}HeyGen Avatar 6 Turbo animates an illustrated or animated character from a reference video, lip-synced to a speech track. Turbo is the faster, lower-cost tier.
| Field | Type | Default | Notes |
|---|---|---|---|
video | video file or URL, required | — | Animated or illustrated character only. |
audio | audio file or URL, required | — | Sets the video length. |
image | image file or URL | — | Optional extra reference. |
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/image-to-video, heygen/avatar6-turbo/identity-to-video, heygen/avatar5/digital-twin.
Commencer à construire
Soumettez ce modèle via l'API Unified Run de SandBase.
# 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/ref-video-to-video",
"audio": "https://v3b.fal.media/files/b/0ab0e602/eeEMX2kTC9XI8yzGCEi1w_a.mp3",
"video": "https://v3b.fal.media/files/b/0ab2b575/0eH80do4MnO_TpIw8EtOa_Pd3QnkN8.mp4",
"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"Créez une clé API SandBase et définissez-la dans l'environnement de votre serveur. Toutes les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez la clé sur votre serveur. Ne l'exposez pas dans le code du navigateur et ne la committez pas dans un dépôt.
Faites un POST sur /v1/run avec cet ID de modèle et ses entrées. L'exemple de requête ci-dessus inclut la soumission et le polling.
Utilisez l'ID d'exécution renvoyé pour interroger jusqu'à ce que le statut soit completed, failed ou timeout. Ne lisez la sortie qu'une fois completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Passez une URL de fichier accessible publiquement dans le champ image, video ou audio du modèle. Les formats pris en charge et les limites sont indiqués à côté de chaque entrée du Playground.
Utilisez le contrôle upload ou replace sur les champs image pris en charge dans le Playground. Les champs URL vidéo acceptent une vidéo de conduite hébergée ; cela n'implique pas la prise en charge de l'importation vidéo.
audiostringobligatoireSpeech audio, file or URL. It sets the video length.
imagestringOptional photo of the same character, file or URL.
videostringobligatoireReference video of an animated or illustrated character, file or URL. Videos of real people are not supported.
resolutionstringOutput resolution; 2k is billed at a higher per-second rate.
Par défaut : "1080p"
Valeurs possibles : "1080p", "2k"
motion_promptstringOptional direction for the avatar's motion and expression.
motion_expressivenessstringless gives fewer, smaller gestures and calmer expressions.
Par défaut : "default"
Valeurs possibles : "default", "less"
{
"model": "heygen/avatar6-turbo/ref-video-to-video",
"audio": "https://v3b.fal.media/files/b/0ab0e602/eeEMX2kTC9XI8yzGCEi1w_a.mp3",
"video": "https://v3b.fal.media/files/b/0ab2b575/0eH80do4MnO_TpIw8EtOa_Pd3QnkN8.mp4",
"resolution": "1080p",
"motion_expressiveness": "default"
}Une exécution terminée expose son résultat dans output. Ce qui suit est l'exemple enregistré du modèle, et non une nouvelle génération.
[
{
"url": "https://static.sandbase.ai/examples/c0fcc21b-8d8c-4b08-9fa2-3eaec184e214/output/71d54dc7-aab6-4d2b-86e8-7434936cea73.mp4"
}
]