seedinteger
Random seed for reproducible results. Omit or use -1 for a random seed.
最小值:-1
最大值:4294967295
bytedance/seedance/2.0/mini/image-to-videoSeedance 2.0 Mini by Bytedance - animate still images into dynamic videos with AI. Transform photos into cinematic clips with natural motion, camera movement, and optional audio generation.
试用该模型
PNG、JPEG、WebP 或 GIF · 最大 20 MiB
PNG、JPEG、WebP 或 GIF · 最大 20 MiB
下一步想做什么?
选择一个示例,将其输入和结果加载到 playground 中。
{
"image": "https://static.sandbase.ai/examples/9161af31-743e-4b3a-b842-a2665cfb2110/input/164d994b-ff24-411e-88a5-9bdfbfe723b5.jpg",
"prompt": "An octopus finds a football in the ocean and excitedly calls its octopus friends to come and play. Cut scene to an octopus football game under the sea."
}{
"duration": 6,
"end_image": "https://static.sandbase.ai/examples/ca8746bf-4ed6-4099-9594-1977ffcba385/input/966b6275-8729-47da-841f-fab5c5de88b6.png",
"generate_audio": false,
"image": "https://static.sandbase.ai/examples/ca8746bf-4ed6-4099-9594-1977ffcba385/input/59f413c3-08d4-4f6d-a92d-a2d52163168c.png",
"prompt": "Static locked-off camera, the background never changes. The character keeps the same calm expression and the shoulders and body stay perfectly still. Only the head turns, smoothly and slowly, in ONE single continuous circle that lasts almost the whole video: first the head turns to look toward the left side of the frame, then tilts up to look at the top left, the top, the top right, turns to look toward the right side, then down to the bottom right, the bottom, the bottom left, and back to the left, the eyes always looking in the same direction the face points; in the last half second the head returns to face the viewer and looks straight into the camera. Constant gentle speed, no blinking, no talking.",
"resolution": "720p"
}{
"duration": 6,
"end_image": "https://static.sandbase.ai/examples/48ed5b2f-52e7-4de8-b643-b03b40a9c9cd/input/6b792ccc-1215-4459-bd0b-6d34db9572e7.png",
"generate_audio": false,
"image": "https://static.sandbase.ai/examples/48ed5b2f-52e7-4de8-b643-b03b40a9c9cd/input/23a1f401-1b94-4b3a-a134-54b631d47010.png",
"prompt": "Locked-off static camera, a smooth time-lapse of the same scene from bright day to night. Nothing in the scene moves: no people, no cars, no camera motion. Only the light changes, gradually and evenly over the whole clip: the sky turns golden, then dusk purple, then deep blue; the windows, signs and street lamps switch on one by one and glow warmly. Continuous, no cuts.",
"resolution": "720p"
}Seedance 2.0 Mini 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 | — | Text instruction. |
image | image URL, required | — | First frame. JPEG, PNG, or WebP URL. |
end_image | image URL | — | Optional last frame. |
resolution | 480p / 720p | 720p | Sets the per-second rate. |
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. |
generate_audio | boolean | true | Native dialogue, music, and effects. Same price on or off. |
aspect_ratio | 21:9 / 16:9 / 3:2 / 4:3 / 5:4 / 1:1 / 4:5 / 3:4 / 2:3 / 9:16 | — | Output frame shape. |
seed | integer -1–4294967295 | random | Fix it to compare prompt changes; -1 is random. |
You pay for output seconds: $0.06 at 480p, $0.12 at 720p. Audio is included. With duration: "auto" the quote assumes 15 seconds and the final charge uses the generated length.
| Output | 480p | 720p |
|---|---|---|
| 4s | $0.24 | $0.48 |
| 5s (default) | $0.30 | $0.60 |
| 10s | $0.60 | $1.20 |
| 15s | $0.90 | $1.80 |
Failed runs are not charged.
Other Seedance 2.0 Mini endpoints and tiers: bytedance/seedance/2.0/mini/text-to-video, bytedance/seedance/2.0/mini/reference-to-video, bytedance/seedance/2.5/image-to-video, bytedance/seedance/2.0/image-to-video, bytedance/seedance/2.0/fast/image-to-video.
开始构建
通过 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/mini/image-to-video",
"image": "https://v3b.fal.media/files/b/0a8eba37/Cqg-4Uwzyz4DELfceT1CF_a17e588773ec45b1a9e6f100a787b80b.jpg",
"prompt": "An octopus finds a football in the ocean and excitedly calls its octopus friends to come and play. Cut scene to an octopus football game under the sea.",
"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"创建一个 SandBase API 密钥,并将其设置到服务器环境中。所有请求都使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它,也不要提交到仓库。
使用此模型 ID 及其输入向 /v1/run 发送 POST 请求。上方的请求示例包含提交和轮询。
使用返回的运行 ID 轮询,直到状态为 completed、failed 或 timeout。仅在 completed 后读取输出。
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"在模型的 image、video 或 audio 字段中传入一个可公开访问的文件 URL。支持的格式和限制显示在每个 Playground 输入项旁边。
在 Playground 中支持的图片字段上使用上传或替换控件。视频 URL 字段接受托管的 driving video;这并不表示支持视频上传。
seedintegerRandom seed for reproducible results. Omit or use -1 for a random seed.
最小值:-1
最大值:4294967295
imagestring必填The URL of the starting frame image to animate. Supported formats: JPEG, PNG, WebP. Max 30 MB.
promptstring必填The text prompt describing the desired motion and action for the video.
duration值Output 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.
默认值:5
可选值:"auto", 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
end_imagestringThe URL of the image to use as the last frame of the video. When provided, the generated video will transition from the starting image to this ending image. Supported formats: JPEG, PNG, WebP. Max 30 MB.
resolutionstringVideo resolution - 480p for faster generation, 720p for balance.
默认值:"720p"
可选值:"480p", "720p"
aspect_ratiostringOutput aspect ratio. Omit to match the input image.
可选值:"21:9", "16:9", "3:2", "4:3", "5:4", "1:1", "4:5", "3:4", "2:3", "9:16"
generate_audiobooleanWhether to generate synchronized audio for the video, including sound effects, ambient sounds, and lip-synced speech. The cost of video generation is the same regardless of whether audio is generated or not.
默认值:true
{
"model": "bytedance/seedance/2.0/mini/image-to-video",
"image": "https://v3b.fal.media/files/b/0a8eba37/Cqg-4Uwzyz4DELfceT1CF_a17e588773ec45b1a9e6f100a787b80b.jpg",
"prompt": "An octopus finds a football in the ocean and excitedly calls its octopus friends to come and play. Cut scene to an octopus football game under the sea.",
"duration": 5,
"resolution": "720p",
"generate_audio": true
}已完成的运行会在输出中展示结果。以下内容是该模型保存的示例,而不是新的生成结果。
[
{
"poster": "https://static.sandbase.ai/examples/posters/8c713e156c30b55f062e.jpg",
"source": "ByteDance/Volcengine schema mirror",
"source_url": "https://docs.volcengine.com/docs/ark/seedance-2-0",
"url": "https://static.sandbase.ai/examples/9161af31-743e-4b3a-b842-a2665cfb2110/output/88605b93-8809-4fd8-926e-b4b4d34585a5.mp4"
}
]