seedinteger
Random seed for reproducible results. Omit or use -1 for a random seed.
最小值:-1
最大值:4294967295
bytedance/seedance/2.0/mini/reference-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, or GIF · 20 MiB maximum each
下一步想做什么?
选择一个示例,将其输入和结果加载到 playground 中。
{
"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."
}Seedance 2.0 Mini 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 | — | Text instruction. |
images | image URL[] | — | Reference images, Image 1, Image 2, … |
videos | video URL[] | — | Reference clips (up to 3), Video 1, Video 2, … |
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. |
audios | audio URL[] | — | Reference audio, Audio 1, Audio 2, … |
seed | integer -1–4294967295 | random | Fix it to compare prompt changes; -1 is random. |
Without reference videos you pay for output seconds: $0.06 at 480p, $0.12 at 720p. With reference videos, the input video seconds (at least 2) are added to the output length and billed at a lower rate: $0.0375 at 480p, $0.075 at 720p. With duration: "auto" the quote assumes 15 seconds and the final charge uses the generated length.
| Output | 480p | 720p |
|---|---|---|
| 5s, images only | $0.30 | $0.60 |
| 10s, images only | $0.60 | $1.20 |
| 5s + 5s reference video | $0.375 | $0.75 |
| 10s + 10s reference video | $0.75 | $1.50 |
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/image-to-video, bytedance/seedance/2.5/reference-to-video, bytedance/seedance/2.0/reference-to-video, bytedance/seedance/2.0/fast/reference-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/reference-to-video",
"images": [
"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
audiosarrayReference audio URLs (voice or music) for the generated video.
imagesarrayReference images to guide video generation. Refer to them in the prompt as @Image1, @Image2, etc. Supported formats: JPEG, PNG, WebP. Max 30 MB per image. Up to 9 images. Total files across all modalities must not exceed 12.
promptstring必填The text prompt used to generate the video.
videosarrayReference videos to guide video generation. Refer to them in the prompt as @Video1, @Video2, etc. Supported formats: MP4, MOV. Up to 3 videos, combined duration must be between 2 and 15 seconds, total size under 50 MB. Each video must be between ~480p (640x640) and ~720p (834x1112) in resolution.
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. When a reference video is edited or extended, use `auto` with `adaptive` aspect ratio so the output follows the source clip.
默认值:5
可选值:"auto", 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
resolutionstringVideo resolution - 480p for faster generation, 720p for balance.
默认值:"720p"
可选值:"480p", "720p"
aspect_ratiostringOutput aspect ratio. Omit to let the model choose from the prompt and reference inputs.
可选值:"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/reference-to-video",
"images": [
"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/c47e64e5-ff3d-42aa-b2d6-a6168c64775f/output/c83506bb-01c5-4433-88e7-f8f4c86ae3f6.mp4"
}
]