Description Initiates an asynchronous object erasure job. Removes objects defined by the mask input and reconstructs the background.
Mask Input
This endpoint requires a mask definition object. You can provide a direct mask_url, or use one of our masking endpoints (mask_by_prompt, mask_by_key_points) to define the mask area.
Response behavior:
Returns HTTP 202 with
request_idandstatus_urlCheck job status by polling
status_urlor by calling the Status Service with therequest_iduntil a terminal status is returned
Constraints & Limits:
Max Duration: 5 seconds. Videos longer than 5s will be truncated if
auto_trimis true, or rejected if false.Max Resolution: 750p. Inputs higher than 750p will be automatically downscaled.
Frame Rate: Recommended 24 FPS (preserved in output).
Preservation Rules:
Aspect Ratio (within 16:9 constraint)
Frame Rate
Audio (preserved by default)
If true, videos longer than 5 seconds are trimmed to the first 5 seconds.
Output container and codec preset.
Optional URL for receiving the result via webhook when the async job completes. See Webhooks.
curl -i -X POST \
https://engine.prod.bria-api.com/v2/video/edit/erase \
-H 'Content-Type: application/json' \
-H 'api_token: string' \
-d '{
"video": "https://bria-test-images.s3.us-east-1.amazonaws.com/videos/eraser/video1_video.mp4",
"mask": "https://bria-test-images.s3.us-east-1.amazonaws.com/videos/eraser/video1_mask.mp4",
"output_container_and_codec": "mp4_h264"
}'{ "request_id": "string", "status_url": "string" }