← All models
Video background removal version of bilateral reference framework (BiRefNet) for high-resolution dichotomous image segmentation (DIS)
Example
Details
- Accepts
- video
Pricing
- Price
- 0.100 cr / second
Prices in credits (1 credit = $0.01).
Data schema
Input
| Field | Type | Description |
|---|---|---|
| model | stringenum: General Use (Light), General Use (Light 2K), General Use (Heavy), Matting, Portrait, General Use (Dynamic) | 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 'Gener… |
| sync_mode | boolean | If `True`, the media will be returned as a data URI and the output data won't be available in the request history. |
| video_urlrequired | string | URL of the video to remove background from |
| output_mask | boolean | Whether to output the mask used to remove the background |
| video_quality | stringenum: low, medium, high, maximum | The quality of the generated video. |
| video_write_mode | stringenum: fast, balanced, small | The write mode of the generated video. |
| refine_foreground | boolean | Whether to refine the foreground using the estimated mask |
| video_output_type | stringenum: X264 (.mp4), VP9 (.webm), PRORES4444 (.mov), GIF (.gif) | The output type of the generated video. |
| operating_resolution | stringenum: 1024x1024, 2048x2048, 2304x2304 | 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
| Field | Type | Description |
|---|---|---|
| video | — | Video with background removed |
| mask_video | — | Mask used to remove the background |