falVideo to videoComing soon
fal-ai/birefnet/v2/video
fal-ai/birefnet/v2/video is a video to video tool from fal that runs in the background and returns video. Coming soon: listed with its price, not yet open to runs.
This tool is listed but not yet available to run.
Price pendingPricing
Price pending.
Limits
- Runs
- In the background
- Returns
- video
- Longest queue wait
- 3600s
- Run deadline
- 1800s
- Largest inline input
- 1024 KB
- Largest input file
- 500 MB
- Largest output
- 4768 MB
- Outputs per run
- 16
Input
| Field | Kind | Default | Description |
|---|---|---|---|
model | one of General Use (Light), General Use (Light 2K), General Use (Heavy), Matting, Portrait, General Use (Dynamic) | General Use (Light) | Model to use for background removal. The 'General Use (Light)' model is the original model used in the BiRefNet repository. The 'General Use (Light 2K)' model is the original model used in the BiRefNet repository but trained with 2K images. The 'General Use (Heavy)' model is a slower but more accurate model. The 'Matting' model is a model trained specifically for matting images. The 'Portrait' model is a model trained specifically for portrait images. The 'General Use (Dynamic)' model supports dynamic resolutions from 256x256 to 2304x2304. The 'General Use (Light)' model is recommended for most use cases. The corresponding models are as follows: - 'General Use (Light)': BiRefNet - 'General Use (Light 2K)': BiRefNet_lite-2K - 'General Use (Heavy)': BiRefNet_lite - 'Matting': BiRefNet-matting - 'Portrait': BiRefNet-portrait - 'General Use (Dynamic)': BiRefNet_dynamic |
operating_resolution | one of 1024x1024, 2048x2048, 2304x2304 | 1024x1024 | The resolution to operate on. The higher the resolution, the more accurate the output will be for high res input images. The '2304x2304' option is only available for the 'General Use (Dynamic)' model. |
output_mask | true or false | false | Whether to output the mask used to remove the background |
refine_foreground | true or false | true | Whether to refine the foreground using the estimated mask |
video_url required | URL or file | — | URL of the video to remove background from |
video_output_type | one of X264 (.mp4), VP9 (.webm), PRORES4444 (.mov), GIF (.gif) | X264 (.mp4) | The output type of the generated video. |
video_quality | one of low, medium, high, maximum | high | The quality of the generated video. |
video_write_mode | one of fast, balanced, small | balanced | The write mode of the generated video. |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "fal",
"model": "fal-ai/birefnet/v2/video",
"input": {
"video_url": "https://storage.googleapis.com/falserverless/example_inputs/birefnet-video-input.mp4"
}
}'