seedinteger
Random seed for reproducible results. Omit or use -1 for a random seed.
最小值:-1
最大值:4294967295
bytedance/seedance/2.0/text-to-videoByteDance's most advanced text-to-video model delivering cinematic output, native audio, multi-shot editing, and director-level camera control for professional-grade video creation.
试用该模型
您的输出将显示在这里
完成输入,然后点击运行。
人类偏好
基于盲测两两对比投票的 Elo 评分,与其他图像和视频模型进行比较。
文生视频 arena(无声):在不看到模型名称的情况下,用户从同一提示词生成的两段视频中选出更优的一段;不评判音频。
Seedance 2.0 text-to-video, ByteDance's flagship video model with native audio, multi-shot storytelling, and precise camera control. Write the scene, including dialogue and sound, and get back a 4–15 second clip.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 50,000 characters. |
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 / 21:9 | 16:9 | Output frame shape. |
resolution | 480p / 720p / 1080p / 4k | 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, $0.60 at 1080p, $1.20 at 4k. Audio is included. With duration: "auto" the quote assumes 15 seconds and the final charge uses the generated length.
| Output | 480p | 720p | 1080p | 4k |
|---|---|---|---|---|
| 4s | $0.48 | $0.96 | $2.40 | $4.80 |
| 5s (default) | $0.60 | $1.20 | $3.00 | $6.00 |
| 10s | $1.20 | $2.40 | $6.00 | $12.00 |
| 15s | $1.80 | $3.60 | $9.00 | $18.00 |
Failed runs are not charged.
Other Seedance 2.0 endpoints and tiers: bytedance/seedance/2.0/image-to-video, bytedance/seedance/2.0/reference-to-video, bytedance/seedance/2.5/text-to-video, bytedance/seedance/2.0/fast/text-to-video, bytedance/seedance/2.0/mini/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.0/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 密钥,并将其设置到服务器环境中。所有请求都使用 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
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-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
resolutionstringThe resolution of the video to generate.
默认值:"720p"
可选值:"480p", "720p", "1080p", "4k"
aspect_ratiostringOutput aspect ratio. Defaults to 16:9.
默认值:"16:9"
可选值:"16:9", "9:16", "1:1", "4:3", "3:4", "21:9"
generate_audiobooleanGenerate a synchronized audio track. Pricing is the same either way.
默认值:true
{
"model": "bytedance/seedance/2.0/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
}已完成的运行会在输出中展示结果。以下内容是该模型保存的示例,而不是新的生成结果。
尚未发布示例输出。请在运行完成后使用 Playground → Result → JSON 查看响应。