seedinteger
Random seed for reproducible results. Omit or use -1 for a random seed.
最小: -1
最大: 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.
モデルを試す
PNG、JPEG、WebP、GIF · 最大 20 MiB
PNG、JPEG、WebP、GIF · 最大 20 MiB
次に何をしますか?
例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
{
"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.
開発を始める
このモデルを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.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"SandBaseのAPIキーを作成し、サーバー環境に設定してください。すべてのリクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開したり、リポジトリにコミットしたりしないでください。
このモデルIDと入力を使って /v1/run にPOSTしてください。上のリクエスト例には送信とポーリングが含まれています。
返されたrun 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の対応する画像フィールドでアップロードまたは置換を使用してください。video URLフィールドはホストされたドライビング動画を受け付けますが、動画アップロード対応を意味するものではありません。
seedintegerRandom seed for reproducible results. Omit or use -1 for a random seed.
最小: -1
最大: 4294967295
imagestring必須The URL of the starting image for video generation.
promptstring必須The text prompt to generate a video from.
デフォルト: "Create a 360-degree orbiting camera shot based on this photo."
duration値Output 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.
デフォルト: 5
指定可能な値: "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.
デフォルト: "720p"
指定可能な値: "480p", "720p"
generate_audiobooleanWhether to generate synchronized audio (voice, SFX, BGM) for the video.
デフォルト: 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
}完了したrunの結果は出力に表示されます。以下はモデルに保存されたサンプルであり、新規生成ではありません。
[
{
"url": "https://static.sandbase.ai/examples/8f3371d9-f08d-4e79-afc9-d2ca972a7fb9/output/e5bbd936-2a45-4a5d-af61-1aac8eb073c6.mp4"
}
]