seedinteger
Random seed for reproducible results. Omit or use -1 for a random seed.
Mínimo: -1
Máximo: 4294967295
bytedance/seedance/2.0/image-to-videoByteDance's most advanced image-to-video model transforming still images into cinematic video with native audio, multi-shot editing, and director-level camera control for professional-grade video creation.
Testar o modelo
PNG, JPEG, WebP ou GIF · máximo de 20 MiB
PNG, JPEG, WebP ou GIF · máximo de 20 MiB
O que você gostaria de fazer em seguida?
Selecione um exemplo para carregar as entradas e o resultado no playground.
{
"duration": 5,
"generate_audio": true,
"image": "https://static.sandbase.ai/examples/7aa12455-c708-4706-a529-31b889a399f7/input/e3b7d79f-44fa-4fd9-9a74-8ca918199a97.jpg",
"prompt": "Ultra high-end commercial product shot, photorealistic, 8K, cinematic lighting, macro detail, shallow depth of field, premium advertising aesthetic, VR headset suspended by invisible wires against a deep navy backdrop, slow vertical tilt down across the visor, magenta and cyan accent lighting, studio-grade color grading, immaculate reflections, subtle camera motion",
"resolution": "720p"
}Seedance 2.0 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 | 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. |
You pay for output seconds: $0.12 at 480p, $0.24 at 720p, $0.60 at 1080p, $1.20 at 4k. Audio is included. With duration: "auto" the quote assumes 15 seconds and the final charge uses the generated length.
| Output | 480p | 720p | 1080p | 4k |
|---|---|---|---|---|
| 4s | $0.48 | $0.96 | $2.40 | $4.80 |
| 5s (default) | $0.60 | $1.20 | $3.00 | $6.00 |
| 10s | $1.20 | $2.40 | $6.00 | $12.00 |
| 15s | $1.80 | $3.60 | $9.00 | $18.00 |
Failed runs are not charged.
Other Seedance 2.0 endpoints and tiers: bytedance/seedance/2.0/text-to-video, bytedance/seedance/2.0/reference-to-video, bytedance/seedance/2.5/image-to-video, bytedance/seedance/2.0/fast/image-to-video, bytedance/seedance/2.0/mini/image-to-video.
Comece a construir
Envie este modelo pela 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/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"Crie uma chave da API SandBase e defina-a no ambiente do seu servidor. Todas as requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha a chave no servidor. Não a exponha em código do navegador nem a comite em um repositório.
Faça POST para /v1/run com este ID de modelo e suas entradas. O exemplo de requisição acima inclui envio e polling.
Use o ID de execução retornado para fazer polling até que o status seja completed, failed ou timeout. Leia a saída somente após completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Passe uma URL de arquivo acessível publicamente no campo de imagem, vídeo ou áudio do modelo. Os formatos e limites suportados são mostrados ao lado de cada entrada do Playground.
Use o controle de upload ou substituição nos campos de imagem suportados no Playground. Campos de URL de vídeo aceitam um vídeo de condução hospedado; isso não implica suporte a upload de vídeo.
seedintegerRandom seed for reproducible results. Omit or use -1 for a random seed.
Mínimo: -1
Máximo: 4294967295
imagestringobrigatórioThe URL of the starting image for video generation.
promptstringobrigatórioThe text prompt to generate a video from.
Padrão: "Create a 360-degree orbiting camera shot based on this photo."
durationvalorOutput 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.
Padrão: 5
Valores possíveis: "auto", 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
end_imagestringThe URL of the ending image for video generation.
resolutionstringThe resolution of the video to generate.
Padrão: "720p"
Valores possíveis: "480p", "720p", "1080p", "4k"
aspect_ratiostringOutput aspect ratio. Omit to match the input image.
Valores possíveis: "16:9", "9:16", "1:1", "4:3", "3:4", "21:9"
generate_audiobooleanWhether to generate synchronized audio (voice, SFX, BGM) for the video.
Padrão: true
{
"model": "bytedance/seedance/2.0/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
}Uma execução concluída expõe seu resultado em output. O texto a seguir é o exemplo salvo do modelo, não uma nova geração.
[
{
"poster": "https://static.sandbase.ai/examples/posters/fbbf41dd24fc187a7c50.jpg",
"source": "Self organization completed prediction",
"source_url": "https://www.sandbase.ai/model/bytedance/seedance/2.0/image-to-video",
"url": "https://static.sandbase.ai/examples/7aa12455-c708-4706-a529-31b889a399f7/output/a3a874f8-da88-4d1b-ae98-63dd2bb1a6e6.mp4"
}
]