Video Editing
/- Generate Mask by Prompt
Generate Mask by Key Points
Foreground Mask
Generate Mask by Prompt
Generates a segmentation mask video based on a text prompt.
Response behavior:
- Returns HTTP 202 with
request_idandstatus_url - The final result (via Status Service) will contain a
mask_url.
Constraints:
- Max Duration: 5 seconds (Truncated if
auto_trim=true). - Max Resolution: 750p.
Default:"mp4_h264"
Enum:"mp4_h264""mp4_h265""webm_vp9""mov_h265""mov_proresks""mkv_h264""mkv_h265""mkv_vp9""gif"
Optional URL for receiving the result via webhook when the async job completes. See Webhooks.
POST
curl -i -X POST \
https://engine.prod.bria-api.com/v2/video/segment/mask_by_prompt \
-H 'Content-Type: application/json' \
-H 'api_token: string' \
-d '{
"video": "example",
"prompt": "example"
}'Response
{ "request_id": "string", "status_url": "string" }