seedinteger
Random seed for reproducible results. Omit or use -1 for a random seed.
Minimum : -1
Maximum : 4294967295
bytedance/seedance/2.5/flash/image-to-videoByteDance's Seedance 2.5 Flash image-to-video model, a faster and lower-cost tier of Seedance 2.5 that animates a still (with an optional end frame) into a native clip up to 30 seconds at 480p or 720p with native audio.
Essayer le modèle
PNG, JPEG, WebP ou GIF · 20 MiB maximum
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.
{
"image": "https://static.sandbase.ai/examples/8f3371d9-f08d-4e79-afc9-d2ca972a7fb9/input/d9f737cf-fd70-4bc1-bc99-d15f0d8dcd9d.png",
"prompt": "She slowly turns her head toward the camera and gives a soft smile as warm sunlight drifts across her face. Gentle push-in. Sound: quiet room tone and a soft exhale."
}{
"image": "https://static.sandbase.ai/examples/2eb08153-0243-42bd-8a07-c631c07e745f/input/2d3bfa82-6317-4e53-987a-2766111b88eb.jpg",
"prompt": "Waves roll gently onto the shore as the camera slowly pushes in toward the horizon. Sound: soft surf and distant seagulls."
}Seedance 2.5 Flash image-to-video is the faster, lower-cost tier of Seedance 2.5: image becomes the first frame and the prompt directs motion, camera, and sound. Add end_image to set the final frame. Output is 480p or 720p.
| 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–30 | 5 | Output length in seconds (4–30), or auto to let the model choose. |
resolution | 480p / 720p | 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.12 at 480p, $0.24 at 720p. Audio is included. With duration: "auto" the quote assumes 30 seconds and the final charge uses the generated length.
| Output | 480p | 720p |
|---|---|---|
| 4s | $0.48 | $0.96 |
| 5s (default) | $0.60 | $1.20 |
| 10s | $1.20 | $2.40 |
| 15s | $1.80 | $3.60 |
| 30s | $3.60 | $7.20 |
Failed runs are not charged.
bytedance/seedance/2.5/image-to-video.Other Seedance 2.5 endpoints and tiers: bytedance/seedance/2.5/flash/text-to-video, bytedance/seedance/2.5/flash/reference-to-video, bytedance/seedance/2.5/image-to-video, bytedance/seedance/2.0/fast/image-to-video.
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": "bytedance/seedance/2.5/flash/image-to-video",
"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"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.
seedintegerRandom seed for reproducible results. Omit or use -1 for a random seed.
Minimum : -1
Maximum : 4294967295
imagestringobligatoireThe URL of the starting image for video generation.
promptstringobligatoireThe text prompt to generate a video from.
Par défaut : "Create a 360-degree orbiting camera shot based on this photo."
durationvaleurOutput 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.
Par défaut : 5
Valeurs possibles : "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.
Par défaut : "720p"
Valeurs possibles : "480p", "720p"
generate_audiobooleanWhether to generate synchronized audio (voice, SFX, BGM) for the video.
Par défaut : true
{
"model": "bytedance/seedance/2.5/flash/image-to-video",
"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
}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/8f3371d9-f08d-4e79-afc9-d2ca972a7fb9/output/e5bbd936-2a45-4a5d-af61-1aac8eb073c6.mp4"
}
]