seedinteger
Random seed for reproducible results. Omit or use -1 for a random seed.
ขั้นต่ำ: -1
สูงสุด: 4294967295
bytedance/seedance/2.5/flash/text-to-videoByteDance's Seedance 2.5 Flash text-to-video model, a faster and lower-cost tier of Seedance 2.5 that generates native single-shot clips up to 30 seconds at 480p or 720p with coherent motion, native audio, and camera control.
ลองใช้โมเดล
ต้องการทำอะไรต่อ
เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
{
"aspect_ratio": "16:9",
"prompt": "Photorealistic style: Under a clear blue sky, a vast expanse of white daisy fields stretches out. The camera gradually zooms in and finally fixates on a close-up of a single daisy, with several glistening dewdrops resting on its petals."
}{
"aspect_ratio": "16:9",
"prompt": "A small dog runs across a sunny grassy field toward the camera, ears flapping. Tracking shot at ground level, warm afternoon light. Sound: playful barking, wind rustling the grass."
}Seedance 2.5 Flash text-to-video is the faster, lower-cost tier of Seedance 2.5: coherent single-shot clips up to 30 seconds with native audio and camera control, at 480p or 720p. Write the scene, including dialogue and sound, and get back a 4–30 second clip.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 50,000 characters. |
duration | auto / 4–30 | 5 | Output length in seconds (4–30), or auto to let the model choose. |
aspect_ratio | 16:9 / 9:16 / 1:1 / 4:3 / 3:4 / 21:9 | 16:9 | 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.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/text-to-video.Other Seedance 2.5 endpoints and tiers: bytedance/seedance/2.5/flash/image-to-video, bytedance/seedance/2.5/flash/reference-to-video, bytedance/seedance/2.5/text-to-video, bytedance/seedance/2.0/fast/text-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/text-to-video",
"prompt": "Photorealistic style: Under a clear blue sky, a vast expanse of white daisy fields stretches out. The camera gradually zooms in and finally fixates on a close-up of a single daisy, with several glistening dewdrops resting on its petals.",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"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 key และตั้งค่าไว้ในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอทั้งหมดใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์หรือคอมมิตลง repository
POST ไปที่ /v1/run ด้วย model ID นี้และอินพุตของมัน ตัวอย่างคำขอด้านบนมีทั้งการส่งและการ polling
ใช้ run ID ที่ส่งกลับมาเพื่อ polling จนกว่าสถานะจะเป็น completed, failed หรือ timeout ให้อ่าน output หลังจาก completed เท่านั้น
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"ส่ง URL ไฟล์ที่เข้าถึงได้สาธารณะในช่อง image, video หรือ audio ของโมเดล รูปแบบและข้อจำกัดที่รองรับแสดงอยู่ข้างแต่ละอินพุตใน Playground
ใช้ตัวควบคุม upload หรือ replace ในช่องรูปภาพที่รองรับใน Playground ช่อง URL ของวิดีโอรองรับวิดีโอ driving ที่โฮสต์ไว้; ไม่ได้หมายความว่าสามารถอัปโหลดวิดีโอได้
seedintegerRandom seed for reproducible results. Omit or use -1 for a random seed.
ขั้นต่ำ: -1
สูงสุด: 4294967295
promptstringจำเป็นThe text prompt to generate a video from.
ค่าเริ่มต้น: "Photorealistic style: Under a clear blue sky, a vast expanse of white daisy fields stretches out. The camera gradually zooms in and finally fixates on a close-up of a single daisy, with several glistening dewdrops resting on its petals."
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
resolutionstringThe resolution of the video to generate.
ค่าเริ่มต้น: "720p"
ค่าที่เป็นไปได้: "480p", "720p"
aspect_ratiostringOutput aspect ratio. Defaults to 16:9.
ค่าเริ่มต้น: "16:9"
ค่าที่เป็นไปได้: "16:9", "9:16", "1:1", "4:3", "3:4", "21:9"
generate_audiobooleanWhether to generate synchronized audio (voice, SFX, BGM) for the video.
ค่าเริ่มต้น: true
{
"model": "bytedance/seedance/2.5/flash/text-to-video",
"prompt": "Photorealistic style: Under a clear blue sky, a vast expanse of white daisy fields stretches out. The camera gradually zooms in and finally fixates on a close-up of a single daisy, with several glistening dewdrops resting on its petals.",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": true
}run ที่เสร็จสมบูรณ์จะแสดงผลลัพธ์ใน output ต่อไปนี้เป็นตัวอย่างที่บันทึกไว้ของโมเดล ไม่ใช่การสร้างใหม่
[
{
"url": "https://static.sandbase.ai/examples/ac40c0f6-80a9-4762-b78f-3804142abe65/output/ef7ebca8-966d-4735-a2bd-03bf870fc5ea.mp4"
}
]