videostring必須
Input video URL (HTTPS, publicly accessible).
alibaba/flashvsrFlashVSR is a video super-resolution model that upscales videos to higher resolutions (720p / 1080p / 2K / 4K) with fast inference.
モデルを試す
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Upscale an existing video to 720p, 1080p, 2K, or 4K with FlashVSR's fast video super-resolution, which restores detail while keeping motion stable.
| Field | Type | Default | Notes |
|---|---|---|---|
video | video URL, required | — | Video to upscale. |
resolution | 720p / 1080p / 2k / 4k, required | 1080p | Target resolution; sets the per-second rate. |
You pay per second of output video: $0.014 at 720p, $0.031 at 1080p, $0.055 at 2K, and $0.124 at 4K. The quote before submission assumes 5 seconds; the final charge uses the measured length.
| Video length | 720p | 1080p | 2k | 4k |
|---|---|---|---|---|
| 5s | $0.07 | $0.155 | $0.275 | $0.62 |
| 10s | $0.14 | $0.31 | $0.55 | $1.24 |
| 30s | $0.42 | $0.93 | $1.65 | $3.72 |
Failed runs are not charged.
Related: bytedance/upscaler/video (ByteDance video upscaler).
開発を始める
このモデルを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": "alibaba/flashvsr",
"resolution": "1080p"
}
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 URL (HTTPS, publicly accessible).
resolutionstring必須Target output resolution.
デフォルト: "1080p"
指定可能な値: "720p", "1080p", "2k", "4k"
{
"model": "alibaba/flashvsr",
"resolution": "1080p"
}完了したrunの結果は出力に表示されます。以下はモデルに保存されたサンプルであり、新規生成ではありません。
まだ例の出力は公開されていません。完了したrunのレスポンスを確認するには、Playground → Result → JSON を使用してください。