videostring必須
Input video to increase resolution. Size should be less than 7680,4320 and duration less than 30s.
bria/video/increase-resolutionVideo Increase Resolution by Bria enlarges a video under 30 seconds by 2× or 4×, optionally keeping its audio, and exports to MP4, MOV, MKV, WebM, or GIF with H.264, H.265, VP9, or ProRes.
モデルを試す
例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
{
"desired_increase": "4",
"output_container_and_codec": "mp4_h264",
"video": "https://static.sandbase.ai/examples/5ca0be1c-f675-4476-b60f-7d19128444ab/input/95fe8c25-1194-4804-b701-7b0fc16a4c1b.mp4"
}{
"desired_increase": "2",
"output_container_and_codec": "mp4_h264",
"preserve_audio": true,
"video": "https://static.sandbase.ai/examples/a53e4aa0-e86e-49c2-8bf5-d498f1a062d8/input/885a4db0-7cea-48e4-babd-12bbf0a0f7fd.mp4"
}Bria Video Increase Resolution enlarges a video by 2× or 4×, optionally keeping its audio track, and exports it in the container and codec you choose.
| Field | Type | Default | Notes |
|---|---|---|---|
video | video URL, required | — | Video to enlarge. Must be under 30 seconds and smaller than 7680×4320. |
desired_increase | 2 / 4 | 2 | Enlargement factor. |
preserve_audio | boolean | true | Keep the input audio in the output. |
output_container_and_codec | mp4_h264mp4_h265webm_vp9mov_h265mov_proresksmkv_h264mkv_h265mkv_vp9gif | mp4_h264 | Output container and codec. |
$0.14 per second of video.
| Output | Price |
|---|---|
| 5s | $0.70 |
| 10s | $1.40 |
| 30s | $4.20 |
Failed runs are not charged.
Other video upscalers:
topaz/ upscale/ videobytedance/ seedvr/ upscale/ videolightricks/ ltx-2.5/ upscale開発を始める
このモデルを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": "bria/video/increase-resolution",
"video": "https://bria-datasets.s3.us-east-1.amazonaws.com/video_increase_res/3446608-sd_426_240_25fps.mp4",
"preserve_audio": true,
"desired_increase": "2",
"output_container_and_codec": "mp4_h264"
}
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フィールドはホストされたドライビング動画を受け付けますが、動画アップロード対応を意味するものではありません。
videostring必須Input video to increase resolution. Size should be less than 7680,4320 and duration less than 30s.
preserve_audiobooleanIf true, audio will be preserved in the output video.
デフォルト: true
desired_increasestringdesired_increase factor. Options: 2x, 4x.
デフォルト: "2"
指定可能な値: "2", "4"
output_container_and_codecstringOutput container and codec. Options: mp4_h265, mp4_h264, webm_vp9, mov_h265, mov_proresks, mkv_h265, mkv_h264, mkv_vp9, gif.
デフォルト: "mp4_h264"
指定可能な値: "mp4_h265", "mp4_h264", "webm_vp9", "mov_h265", "mov_proresks", "mkv_h265", "mkv_h264", "mkv_vp9", "gif"
{
"model": "bria/video/increase-resolution",
"video": "https://bria-datasets.s3.us-east-1.amazonaws.com/video_increase_res/3446608-sd_426_240_25fps.mp4",
"preserve_audio": true,
"desired_increase": "2",
"output_container_and_codec": "mp4_h264"
}完了したrunの結果は出力に表示されます。以下はモデルに保存されたサンプルであり、新規生成ではありません。
[
{
"url": "https://static.sandbase.ai/examples/5ca0be1c-f675-4476-b60f-7d19128444ab/output/ab077700-a94c-4600-8a00-02d184f620db.mp4"
}
]