audiosarray
Up to 3 reference audio clips (voice or music).
heygen/heygen-video/reference-to-videoHeyGen Video Reference to Video generates a 5-15 second video guided by reference images, videos and audio.
Modell testen
PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 9
Was möchten Sie als Nächstes tun?
Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.
{
"aspect_ratio": "16:9",
"images": [
"https://static.sandbase.ai/examples/dbd3acd5-a7f8-4bc6-a1c3-a6abe02c545f/input/f31c8ffc-a03e-43e6-9873-619009a711c2.png"
],
"prompt": "The tiger from the reference image walks through a snowy pine forest at dusk, snowflakes falling, low-angle shot."
}{
"aspect_ratio": "16:9",
"images": [
"https://static.sandbase.ai/examples/d1601611-1204-40e5-8c03-663e25116aad/input/050a8af9-8598-4a6b-b90c-ce437082ede7.png"
],
"prompt": "The rabbit from the reference image sits by a campfire in a cozy forest clearing at night, sparks drifting upward, slow orbit shot."
}HeyGen Video Reference to Video generates a 5–15 second video guided by reference images, videos and audio clips.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Scene and action; describe how each reference is used. |
images | image URL[] | — | Up to 9 reference images (characters, products, scenes). |
videos | video URL[] | — | Up to 3 reference videos for motion or style. |
audios | audio URL[] | — | Up to 3 reference audio clips (voice or music). |
aspect_ratio | 21:9 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16 | — | Leave empty to follow the references. |
resolution | 480p / 768p / 1080p / 2k | 768p | Output resolution; 1080p and 2k cost more. |
duration | 5–15 | 5 | Output length in seconds. |
Billed per output second: $0.07 at 480p, $0.10 at 768p, $0.18 at 1080p and 2k. References are not billed separately.
| Output | Price |
|---|---|
| 5s, 768p (default) | $0.50 |
| 5s, 480p | $0.35 |
| 10s, 1080p | $1.80 |
| Failed runs are not charged. |
Other HeyGen Video endpoints: heygen/heygen-video/text-to-video, heygen/heygen-video/image-to-video.
Jetzt loslegen
Senden Sie dieses Modell über die 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/heygen-video/reference-to-video",
"duration": 5,
"resolution": "768p"
}
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"Erstellen Sie einen SandBase API-Schlüssel und legen Sie ihn in Ihrer Serverumgebung fest. Alle Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie den Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis und committen Sie ihn nicht in ein Repository.
POST an /v1/run mit dieser Modell-ID und ihren Eingaben. Das obige Anfragebeispiel umfasst Übermittlung und Polling.
Verwenden Sie die zurückgegebene Run-ID zum Polling, bis der Status completed, failed oder timeout ist. Lesen Sie die Ausgabe erst nach completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Übergeben Sie eine öffentlich zugängliche Date-URL im Bild-, Video- oder Audiofeld des Modells. Unterstützte Formate und Limits werden neben jedem Playground-Eingabefeld angezeigt.
Verwenden Sie im Playground bei unterstützten Bildfeldern die Steuerung zum Hochladen oder Ersetzen. Video-URL-Felder akzeptieren ein gehostetes Fahrvideo; sie implizieren keine Unterstützung für Video-Uploads.
audiosarrayUp to 3 reference audio clips (voice or music).
imagesarrayUp to 9 reference images (characters, products, scenes).
promptstringerforderlichDescribe the scene, action, camera and sound.
videosarrayUp to 3 reference videos for motion or style.
durationintegerOutput length in seconds (5-15).
Standard: 5
Minimum: 5
Maximum: 15
resolutionstringOutput resolution. 1080p and 2k cost more.
Standard: "768p"
Mögliche Werte: "480p", "768p", "1080p", "2k"
aspect_ratiostringOutput frame shape. Leave empty to follow the references (adaptive).
Mögliche Werte: "21:9", "16:9", "4:3", "1:1", "3:4", "9:16"
{
"model": "heygen/heygen-video/reference-to-video",
"duration": 5,
"resolution": "768p"
}Ein abgeschlossener Run stellt sein Ergebnis in der Ausgabe bereit. Das Folgende ist das gespeicherte Beispiel des Modells, keine neue Generierung.
[
{
"url": "https://static.sandbase.ai/examples/dbd3acd5-a7f8-4bc6-a1c3-a6abe02c545f/output/9ecef62d-e5c5-4def-b244-64aaa8bbfc56.mp4"
}
]