seedinteger
Random seed for reproducible results. Omit or use -1 for a random seed.
Tối thiểu: -1
Tối đa: 4294967295
bytedance/seedance/2.0/fast/image-to-videoByteDance's most advanced image-to-video model in its fast tier delivering lower latency and cost without compromising on cinematic output, native audio, multi-shot editing, and director-level camera control for professional-grade video creation.
Thử model
PNG, JPEG, WebP hoặc GIF · tối đa 20 MiB
PNG, JPEG, WebP hoặc GIF · tối đa 20 MiB
Bạn muốn làm gì tiếp theo?
Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
{
"duration": 5,
"image": "https://static.sandbase.ai/examples/924d2603-eef0-4578-8308-ada94fba3a13/input/4181e8c1-0c70-417b-b0dc-ac704e4e82ed.jpg",
"prompt": "Ultra high-end commercial product shot, photorealistic, 8K, cinematic lighting, macro detail, shallow depth of field, premium advertising aesthetic, crystal-cut perfume bottle catching prismatic light beams, slow orbit, hard sunlight through venetian blinds, warm sandstone wall background, studio-grade color grading, immaculate reflections, subtle camera motion",
"resolution": "720p"
}Seedance 2.0 Fast 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 | — | Output frame shape. |
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.10 at 480p, $0.20 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.40 | $0.80 |
| 5s (default) | $0.50 | $1.00 |
| 10s | $1.00 | $2.00 |
| 15s | $1.50 | $3.00 |
Failed runs are not charged.
Other Seedance 2.0 Fast endpoints and tiers: bytedance/seedance/2.0/fast/text-to-video, bytedance/seedance/2.0/fast/reference-to-video, bytedance/seedance/2.5/image-to-video, bytedance/seedance/2.0/image-to-video, bytedance/seedance/2.0/mini/image-to-video.
Bắt đầu xây dựng
Gửi model này qua 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/fast/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"Tạo một SandBase API key và đặt nó trong môi trường máy chủ của bạn. Tất cả request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key trên máy chủ. Không hiển thị trong mã trình duyệt hoặc commit vào repository.
POST tới /v1/run với model ID này và các đầu vào của nó. Ví dụ request ở trên bao gồm cả bước gửi và polling.
Dùng run ID được trả về để poll cho đến khi trạng thái là completed, failed hoặc timeout. Chỉ đọc đầu ra sau khi completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Cung cấp một URL tệp có thể truy cập công khai trong trường image, video hoặc audio của model. Các định dạng và giới hạn được hỗ trợ hiển thị bên cạnh từng input trong Playground.
Dùng điều khiển upload hoặc replace trên các trường image được hỗ trợ trong Playground. Trường URL video chấp nhận một video driving được host; điều này không đồng nghĩa hỗ trợ tải lên video.
seedintegerRandom seed for reproducible results. Omit or use -1 for a random seed.
Tối thiểu: -1
Tối đa: 4294967295
imagestringbắt buộcThe URL of the starting image for video generation.
promptstringbắt buộcThe text prompt to generate a video from.
Mặc định: "Create a 360-degree orbiting camera shot based on this photo."
durationgiá trị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.
Mặc định: 5
Giá trị có thể dùng: "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.
Mặc định: "720p"
Giá trị có thể dùng: "480p", "720p"
aspect_ratiostringOutput aspect ratio. Omit to match the input image.
Giá trị có thể dùng: "16:9", "9:16", "1:1", "4:3", "3:4"
generate_audiobooleanGenerate a synchronized audio track. Pricing is the same either way.
Mặc định: true
{
"model": "bytedance/seedance/2.0/fast/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
}Một run đã hoàn tất sẽ hiển thị kết quả trong output. Phần sau là ví dụ đã lưu của model, không phải một lần tạo mới.
[
{
"poster": "https://static.sandbase.ai/examples/posters/5eb436344921ceaf30ad.jpg",
"source": "Self organization completed prediction",
"source_url": "https://www.sandbase.ai/model/bytedance/seedance/2.0/fast/image-to-video",
"url": "https://static.sandbase.ai/examples/924d2603-eef0-4578-8308-ada94fba3a13/output/c28e1241-8d7d-4de1-9fe8-53c48b480933.mp4"
}
]