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.
Thử model
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Bắt đầu xây dựng
Gửi model này qua 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"Tạo một SandBase API key và đặt nó trong môi trường máy chủ của bạn. Tất cả request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key trên máy chủ. Không hiển thị trong mã trình duyệt hoặc commit vào repository.
POST tới /v1/run với model ID này và các đầu vào của nó. Ví dụ request ở trên bao gồm cả bước gửi và polling.
Dùng run ID được trả về để poll cho đến khi trạng thái là completed, failed hoặc timeout. Chỉ đọc đầu ra sau khi completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Cung cấp một URL tệp có thể truy cập công khai trong trường image, video hoặc audio của model. Các định dạng và giới hạn được hỗ trợ hiển thị bên cạnh từng input trong Playground.
Dùng điều khiển upload hoặc replace trên các trường image được hỗ trợ trong Playground. Trường URL video chấp nhận một video driving được host; điều này không đồng nghĩa hỗ trợ tải lên video.
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.
Mặc định: "turbo"
Giá trị có thể dùng: "turbo", "base", "v1"
videostringThe input video to upscale.
color_fixbooleanApply low-frequency wavelet color correction.
Mặc định: false
video_qualitystringOutput encoding quality.
Mặc định: "high"
Giá trị có thể dùng: "low", "medium", "high", "maximum"
preserve_audiobooleanCopy the input audio track into the output.
Mặc định: true
upscale_factornumberSpatial upscaling factor. Output is capped at about 4K.
Mặc định: 2
Tối thiểu: 1
Tối đa: 4
video_write_modestringOutput write mode.
Mặc định: "balanced"
Giá trị có thể dùng: "fast", "balanced", "small"
video_output_typestringOutput container/codec.
Mặc định: "X264 (.mp4)"
Giá trị có thể dùng: "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.
Mặc định: 4
Giá trị có thể dùng: 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
}Một run đã hoàn tất sẽ hiển thị kết quả trong output. Phần sau là ví dụ đã lưu của model, không phải một lần tạo mới.
Chưa có đầu ra ví dụ nào được công bố. Dùng Playground → Result → JSON sau khi run hoàn tất để xem phản hồi của bạn.