seedinteger
Random seed for reproducible results. Omit or use -1 for a random seed.
Minimum: -1
Maximum: 4294967295
bytedance/seedance/2.0/reference-to-videoByteDance's most advanced reference-to-video model generating cinematic video guided by reference content, with native audio, multi-shot editing, and director-level camera control for professional-grade video creation.
Modell testen
PNG, JPEG, WebP, or GIF · 20 MiB maximum each
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.
{
"prompt": "Use Image1 as the visual reference and Video1 as the motion reference. Create a peaceful cinematic shoreline scene with rolling ocean waves at golden hour, soft foam, natural water movement, and no people."
}Seedance 2.0 reference-to-video: combine reference images, up to 3 reference videos, and reference audio to lock a character, set, motion, or voice in a new clip.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 50,000 characters. |
images | image URL[] | — | Reference images, Image 1, Image 2, … |
videos | video URL[] (≤3) | — | Reference clips (up to 3), Video 1, Video 2, … |
audios | audio URL[] | — | Reference audio, Audio 1, Audio 2, … |
duration | auto / 4 / 5 / 6 / 7 / 8 / 9 / 10 / 11 / 12 / 13 / 14 / 15 | 5 | Output length in seconds (4–15), or auto to let the model choose. |
aspect_ratio | 16:9 / 9:16 / 1:1 / 4:3 / 3:4 / 21:9 | — | Output frame shape. |
resolution | 480p / 720p / 1080p / 4k | 720p | Sets the per-second rate. |
generate_audio | boolean | true | Native dialogue, music, and effects. Same price on or off. |
seed | integer -1–4294967295 | random | Fix it to compare prompt changes; -1 is random. |
Without reference videos you pay for output seconds: $0.12 at 480p, $0.24 at 720p, $0.60 at 1080p, $1.20 at 4k. With reference videos, the input video seconds (at least 2) are added to the output length and billed at a lower rate: $0.075 at 480p, $0.15 at 720p, $0.375 at 1080p, $0.75 at 4k. With duration: "auto" the quote assumes 15 seconds and the final charge uses the generated length.
| Output | 480p | 720p | 1080p | 4k |
|---|---|---|---|---|
| 5s, images only | $0.60 | $1.20 | $3.00 | $6.00 |
| 10s, images only | $1.20 | $2.40 | $6.00 | $12.00 |
| 5s + 5s reference video | $0.75 | $1.50 | $3.75 | $7.50 |
| 10s + 10s reference video | $1.50 | $3.00 | $7.50 | $15.00 |
Failed runs are not charged.
Other Seedance 2.0 endpoints and tiers: bytedance/seedance/2.0/text-to-video, bytedance/seedance/2.0/image-to-video, bytedance/seedance/2.5/reference-to-video, bytedance/seedance/2.0/fast/reference-to-video, bytedance/seedance/2.0/mini/reference-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": "bytedance/seedance/2.0/reference-to-video",
"images": [
"https://static.sandbase.ai/examples/bytedance/seedance/2.0/reference-to-video/input_image_safe_ocean_0.jpg"
],
"prompt": "Use Image1 as the visual reference and Video1 as the motion reference. Create a peaceful cinematic shoreline scene with rolling ocean waves at golden hour, soft foam, natural water movement, and no people.",
"videos": [
"https://static.sandbase.ai/examples/pixverse/sound-effects/input_video_0.mp4"
],
"duration": 5,
"resolution": "720p",
"generate_audio": true
}
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.
seedintegerRandom seed for reproducible results. Omit or use -1 for a random seed.
Minimum: -1
Maximum: 4294967295
audiosarrayThe URLs of reference audio files to guide video generation.
imagesarrayThe URLs of reference images to guide video generation.
promptstringerforderlichThe text prompt to generate a video from.
Standard: "Use Image1 as the visual reference and Video1 as the motion reference. Create a peaceful cinematic shoreline scene with rolling ocean waves at golden hour, soft foam, natural water movement, and no people."
videosarrayThe URLs of reference videos to guide video generation. Up to 3 MP4 or MOV files, 2-15 seconds combined duration, under 50 MB total.
durationWertOutput duration in seconds (4-15), or `auto` to let the model pick a length from the prompt and inputs. `auto` is pre-authorized at 15 seconds and billed on the actual output length. When a reference video is edited or extended, use `auto` with `adaptive` aspect ratio so the output follows the source clip.
Standard: 5
Mögliche Werte: "auto", 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
resolutionstringThe resolution of the video to generate.
Standard: "720p"
Mögliche Werte: "480p", "720p", "1080p", "4k"
aspect_ratiostringOutput aspect ratio. Omit to let the model choose from the prompt and reference inputs.
Mögliche Werte: "16:9", "9:16", "1:1", "4:3", "3:4", "21:9"
generate_audiobooleanGenerate a synchronized audio track. Pricing is the same either way.
Standard: true
{
"model": "bytedance/seedance/2.0/reference-to-video",
"images": [
"https://static.sandbase.ai/examples/bytedance/seedance/2.0/reference-to-video/input_image_safe_ocean_0.jpg"
],
"prompt": "Use Image1 as the visual reference and Video1 as the motion reference. Create a peaceful cinematic shoreline scene with rolling ocean waves at golden hour, soft foam, natural water movement, and no people.",
"videos": [
"https://static.sandbase.ai/examples/pixverse/sound-effects/input_video_0.mp4"
],
"duration": 5,
"resolution": "720p",
"generate_audio": true
}Ein abgeschlossener Run stellt sein Ergebnis in der Ausgabe bereit. Das Folgende ist das gespeicherte Beispiel des Modells, keine neue Generierung.
[
{
"poster": "https://static.sandbase.ai/examples/posters/e57c708511358a3eebeb.jpg",
"source": "ByteDance/Volcengine schema mirror",
"source_url": "https://docs.volcengine.com/docs/ark/seedance-2-0",
"url": "https://static.sandbase.ai/examples/1520530e-6cbd-4bc5-acb8-48352e43608f/output/cbf70b14-17be-4363-a58f-7c2a78b287dd.mp4"
}
]