videostring必填
The URL of the video to upscale.
bytedance/upscaler/videoBytedance Video Upscaler upscales videos to 4K resolution with AI-powered enhancement. Supports multiple quality tiers (fast, standard, pro), frame rate interpolation to 60fps, and presets optimized for UGC, short series, AIGC, and old film restoration.
试用该模型
下一步想做什么?
选择一个示例,将其输入和结果加载到 playground 中。
{
"video": "https://static.sandbase.ai/examples/519bb19f-f235-4c5c-bff2-ba45eaaa714d/input/a36e41d0-65b7-4499-810b-1e7d2f89b885.mp4"
}ByteDance Video Upscaler enlarges videos to 1080p, 2K, or 4K with three enhancement tiers, optional 60fps interpolation, and presets for UGC, short drama, AI-generated, and old-film footage.
| Field | Type | Default | Notes |
|---|---|---|---|
video | video URL, required | — | Video to upscale. |
enhancement_preset | general / ugc / short_series / aigc / old_film | general | Tune restoration to the footage type. |
scale_ratio | number 1.1–10 | — | Optional explicit scale factor. |
target_resolution | 1080p / 2k / 4k | 1080p | Output tier; sets the rate. |
target_fps | 30fps / 60fps | 30fps | 60fps interpolates frames and doubles the rate. |
enhancement_tier | fast / standard / pro | standard | fast, standard, or pro (10× the standard rate). |
fidelity | high / medium | high | high stays closer to the source. |
$0.0072 per second at 1080p, standard tier, 30fps. 2K is 2× and 4K is 4×; pro is 10×; 60fps is 2×. Seconds are rounded up.
| Video | 1080p | 2k | 4k |
|---|---|---|---|
| 10s, standard, 30fps | $0.072 | $0.144 | $0.288 |
| 10s, standard, 60fps | $0.144 | $0.288 | $0.576 |
| 10s, pro, 30fps | $0.72 | $1.44 | $2.88 |
Failed runs are not charged.
Related: bytedance/seedvr/upscale/video, alibaba/flashvsr.
开始构建
通过 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/upscaler/video",
"video": "https://static.sandbase.ai/examples/bytedance/upscaler/video/input_video_0.mp4",
"fidelity": "high",
"bit_depth": 8,
"target_fps": "30fps",
"enhancement_tier": "standard",
"target_resolution": "1080p",
"enhancement_preset": "general"
}
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;这并不表示支持视频上传。
videostring必填The URL of the video to upscale.
fidelitystringThe enhancement intensity. 'high' applies mild enhancement while keeping visual texture close to the source video. 'medium' provides a balanced image quality enhancement.
默认值:"high"
可选值:"high", "medium"
bit_depthintegerThe color bit depth of the output video. 10-bit and 12-bit output require the Pro enhancement tier.
默认值:8
可选值:8, 10, 12
target_fpsstringThe target FPS of the video to upscale. Use 24fps to keep the frame rate of 24fps sources such as Seedance output.
默认值:"30fps"
可选值:"24fps", "30fps", "60fps"
scale_rationumberThe scaling ratio for the output video resolution. When set, overrides target_resolution and scales the input resolution by this factor (e.g., 2.0 doubles the resolution). Range: 1.1 to 10.0. Please note that this is valid only up to 4k resolution, and trying to scale beyond 4k will result in an error. (4k is defined as having atotal pixel count of 3840x2160).
最小值:1.1
最大值:10
enhancement_tierstringThe enhancement quality tier. 'fast' provides essential upscaling with good speed, 'standard' uses adaptive algorithms for better visual texture, 'pro' uses large-model restoration for cinematic quality (longer processing time), and 10 times the cost of `standard` and `fast`.
默认值:"standard"
可选值:"fast", "standard", "pro"
target_resolutionstringThe target resolution of the video to upscale.
默认值:"1080p"
可选值:"1080p", "2k", "4k"
enhancement_presetstringThe enhancement preset optimized for specific video scenarios. 'general' is a general-purpose template, 'ugc' targets user-generated short videos, 'short_series' is for short dramas, 'aigc' is for AI-generated content, and 'old_film' is for classic film restoration.
默认值:"general"
可选值:"general", "ugc", "short_series", "aigc", "old_film"
{
"model": "bytedance/upscaler/video",
"video": "https://static.sandbase.ai/examples/bytedance/upscaler/video/input_video_0.mp4",
"fidelity": "high",
"bit_depth": 8,
"target_fps": "30fps",
"enhancement_tier": "standard",
"target_resolution": "1080p",
"enhancement_preset": "general"
}已完成的运行会在输出中展示结果。以下内容是该模型保存的示例,而不是新的生成结果。
[
{
"poster": "https://static.sandbase.ai/examples/posters/7ac39d68a6a63b7b74d0.jpg",
"source": "ByteDance/Volcengine schema mirror",
"source_url": "https://docs.volcengine.com/docs/ark/seedance-2-0",
"url": "https://static.sandbase.ai/examples/519bb19f-f235-4c5c-bff2-ba45eaaa714d/output/47319d72-d379-4648-8c3b-3b126d70331f.mp4"
}
]