Video Background Removal · Video to Video
bria/video/background-removalEdit and transform video with Video Background Removal · Video to Video from fal through one Spiral API key. It runs in the background and returns video. Pay as you go, with no subscription.
Pricing
$0.182 per second.
Limits
- Runs
- In the background
- Returns
- video
- Longest queue wait
- 1 hour
- Run deadline
- 30 minutes
- Longest run, end to end
- 930 minutes
- Largest inline input
- 1 MB
- Largest input file
- 2 GB
- Largest output
- 5 GB
Input
| Field | Kind | Default | Description |
|---|---|---|---|
output_container_and_codec | one of mp4_h265, mp4_h264, webm_vp9, mov_h265, mov_proresks, mkv_h265, mkv_h264, mkv_vp9, gif | webm_vp9 | Output container and codec. Options: mp4_h265, mp4_h264, webm_vp9, mov_h265, mov_proresks, mkv_h265, mkv_h264, mkv_vp9, gif. |
preserve_audio | true or false | true | If true, audio will be preserved in the output video. |
video_url required | URL or file | — | Input video to remove background from. Size should be less than 4000x4000 and duration less than 30s. |
background_color | one of Transparent, Black, White, Gray, Red, Green, Blue, Yellow, Cyan, Magenta, Orange | Black | Background color. Options: Transparent, Black, White, Gray, Red, Green, Blue, Yellow, Cyan, Magenta, Orange. |
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": "bria/video/background-removal",
"input": {
"video_url": "https://bria-datasets.s3.us-east-1.amazonaws.com/rmbg_tests/videos/5586521-uhd_3840_2160_25fps_original.mp4"
}
}'Frequently asked questions
How much does Video Background Removal · Video to Video cost?
$0.182 per second. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.
How do I use Video Background Removal · Video to Video through an API?
Send `POST /v1/runs` with `"provider": "fal"`, `"model": "bria/video/background-removal"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.
Do I need an account with fal to use Video Background Removal · Video to Video?
No. Spiral runs it on its own fal account and charges your Spiral balance.
Can my AI agent use Video Background Removal · Video to Video?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.