seedinteger
The random seed used for the generation process.
openimaginglab/flashvsr-plusFlashvsr Plus is openimaginglab's video-to-video AI model. Transform, enhance, and edit video content using text prompts - from style changes to object manipulation and scene modification.
モデルを試す
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
開発を始める
このモデルを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": "turbo",
"video": "https://storage.googleapis.com/falserverless/example_inputs/birefnet-video-input.mp4",
"color_fix": false,
"video_quality": "high",
"preserve_audio": true,
"upscale_factor": 2,
"video_write_mode": "balanced",
"video_output_type": "X264 (.mp4)",
"temporal_compression": 4
}
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フィールドはホストされたドライビング動画を受け付けますが、動画アップロード対応を意味するものではありません。
seedintegerThe random seed used for the generation process.
modelstringturbo: fastest (hybrid sliding attention). base: highest quality. v1: FlashVSR v1.1 weights with the base configuration.
デフォルト: "turbo"
指定可能な値: "turbo", "base", "v1"
videostringThe input video to upscale.
color_fixbooleanApply low-frequency wavelet color correction.
デフォルト: false
video_qualitystringOutput encoding quality.
デフォルト: "high"
指定可能な値: "low", "medium", "high", "maximum"
preserve_audiobooleanCopy the input audio track into the output.
デフォルト: true
upscale_factornumberSpatial upscaling factor. Output is capped at about 4K.
デフォルト: 2
最小: 1
最大: 4
video_write_modestringOutput write mode.
デフォルト: "balanced"
指定可能な値: "fast", "balanced", "small"
video_output_typestringOutput container/codec.
デフォルト: "X264 (.mp4)"
指定可能な値: "X264 (.mp4)", "VP9 (.webm)", "PRORES4444 (.mov)", "GIF (.gif)"
temporal_compressionintegerInput frames per latent frame. Use 2 or 1 for large motion; inference cost rises about 2x or 4x.
デフォルト: 4
指定可能な値: 1, 2, 4
{
"model": "turbo",
"video": "https://storage.googleapis.com/falserverless/example_inputs/birefnet-video-input.mp4",
"color_fix": false,
"video_quality": "high",
"preserve_audio": true,
"upscale_factor": 2,
"video_write_mode": "balanced",
"video_output_type": "X264 (.mp4)",
"temporal_compression": 4
}完了したrunの結果は出力に表示されます。以下はモデルに保存されたサンプルであり、新規生成ではありません。
まだ例の出力は公開されていません。完了したrunのレスポンスを確認するには、Playground → Result → JSON を使用してください。