seedinteger
Random seed for reproducible results. Omit or use -1 for a random seed.
Minimum: -1
Maximum: 4294967295
bytedance/seedance/2.5/image-to-videoByteDance's next-generation image-to-video model, animating a single still into a native clip up to 30 seconds at 720p with continuous, coherent motion, native audio, and director-level camera control.
Modell testen
PNG, JPEG, WebP oder GIF · maximal 20 MiB
PNG, JPEG, WebP oder GIF · maximal 20 MiB
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.
{
"duration": 4,
"generate_audio": false,
"image": "https://static.sandbase.ai/examples/b6874082-35a0-47e4-8a3e-335b93f08c49/input/97cca825-cf32-47a2-8cf8-b53016742e54.png",
"prompt": "The lantern sways in the wind",
"resolution": "480p",
"seed": 3
}Seedance 2.5 image-to-video: image becomes the first frame and the prompt directs motion, camera, and sound. Add end_image to set the final frame.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 50,000 characters. |
image | image URL, required | — | First frame. JPEG, PNG, or WebP URL. |
end_image | image URL | — | Optional last frame. |
duration | auto / 4 / 5 / 6 / 7 / 8 / 9 / 10 / 11 / 12 / 13 / 14 / 15 / 16 / 17 / 18 / 19 / 20 / 21 / 22 / 23 / 24 / 25 / 26 / 27 / 28 / 29 / 30 | 5 | Output length in seconds (4–30), or auto to let the model choose. |
resolution | 480p / 720p / 1080p | 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. |
You pay for output seconds: $0.18 at 480p, $0.36 at 720p, $0.90 at 1080p. Audio is included. With duration: "auto" the quote assumes 30 seconds and the final charge uses the generated length.
| Output | 480p | 720p | 1080p |
|---|---|---|---|
| 4s | $0.72 | $1.44 | $3.60 |
| 5s (default) | $0.90 | $1.80 | $4.50 |
| 10s | $1.80 | $3.60 | $9.00 |
| 15s | $2.70 | $5.40 | $13.50 |
| 30s | $5.40 | $10.80 | $27.00 |
Failed runs are not charged.
Draft mode is two calls to this same model:
"draft": true. The output is a 480p preview billed at the 480p rate, and outputs[0].draft_id identifies it.{"draft_id": "<outputs[0].draft_id>"} (optionally watermark). The same shot is rendered at 1080p and billed at the 1080p output rate for the actual output length.The final reuses the draft's prompt, media, duration, aspect ratio, seed and audio setting; those fields are ignored when draft_id is set. A draft can be finalized within 7 days, only with the model that created it.
{"prompt": "Slow 360-degree orbit around the subject.", "image": "https://example.com/first-frame.png", "duration": 5, "draft": true}
{"draft_id": "<outputs[0].draft_id from the draft>"}
Other Seedance 2.5 endpoints and tiers: bytedance/seedance/2.5/text-to-video, bytedance/seedance/2.5/reference-to-video, bytedance/seedance/2.0/image-to-video, bytedance/seedance/2.0/fast/image-to-video, bytedance/seedance/2.0/mini/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": "bytedance/seedance/2.5/image-to-video",
"draft": false,
"image": "https://p9-arcosite.byteimg.com/tos-cn-i-goo7wpa0wc/f8fc1008f23a4908b7c897e8b7eb87df~tplv-goo7wpa0wc-image.image",
"prompt": "Create a 360-degree orbiting camera shot based on this photo.",
"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
draftbooleanDraft mode step 1: render a fast, low-cost 480p draft (overrides `resolution`, billed at the 480p rate). Pass the result's `outputs[0].draft_id` back as `draft_id` within 7 days to render the same shot at 1080p.
Standard: false
imagestringThe URL of the starting image for video generation.
promptstringThe text prompt to generate a video from.
Standard: "Create a 360-degree orbiting camera shot based on this photo."
draft_idstringDraft mode step 2: the `outputs[0].draft_id` of a succeeded draft from this same model (created with `draft: true` in the last 7 days). Renders the same shot at 1080p, billed at the 1080p rate for the actual output length. The prompt, media, duration, aspect ratio, seed, audio setting and task type are reused from the draft; any such fields sent with `draft_id` are ignored.
durationWertOutput duration in seconds (4-30), or `auto` to let the model pick a length from the prompt and inputs. `auto` is pre-authorized at 30 seconds and billed on the actual output length.
Standard: 5
Mögliche Werte: "auto", 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
end_imagestringThe URL of the ending image for video generation.
resolutionstringThe resolution of the video to generate.
Standard: "720p"
Mögliche Werte: "480p", "720p", "1080p"
generate_audiobooleanWhether to generate synchronized audio (voice, SFX, BGM) for the video.
Standard: true
{
"model": "bytedance/seedance/2.5/image-to-video",
"draft": false,
"image": "https://p9-arcosite.byteimg.com/tos-cn-i-goo7wpa0wc/f8fc1008f23a4908b7c897e8b7eb87df~tplv-goo7wpa0wc-image.image",
"prompt": "Create a 360-degree orbiting camera shot based on this photo.",
"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/51843db67698f6a1143b.jpg",
"source": "Self organization completed prediction",
"source_url": "https://www.sandbase.ai",
"url": "https://static.sandbase.ai/examples/b6874082-35a0-47e4-8a3e-335b93f08c49/output/912941bc-cbd5-40cc-b879-5d0fdb9a4f38.mp4"
}
]