MeduxMedux

Process > Create Video Background Removal

Create Video Background Removal

Create a video processing task that removes the background from an uploaded video.

POST/api/app/v1/process/video/background_removal

Examples

curl -X POST https://api.medux.io/api/app/v1/process/video/background_removal \
  -H 'Authorization: Bearer $MEDUX_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"file_id":"FILE_ID","region":{"height":1,"width":1,"x":1,"y":1},"title":"Demo title"}'

Media Samples

Approved examples for understanding request inputs, response shape, and official example output.

Official video background removal

This example uses video-background-removal-standard.

Sample request

Remove the background from an official portrait video.

file_id{file_id}sourceOfficial sample video for testingmodel_idvideo-background-removal-standardmodel_idvideo-background-removal-standard

Sample response

Official example output for preview only. It is not a user Media Result.

output_urlOfficial example video output

Example output

Auth Requirements

Authentication is required via Authorization header.

Preconditions

Requires a previously uploaded video asset.

Requires an existing video file_id.

Request

Body

application/json
Authorizationstringrequired

Bearer token or API key.

Location: HEADER

file_idstringrequired

No description provided.

Location: BODY

region.heightint32optional

No description provided.

Location: BODY

region.widthint32optional

No description provided.

Location: BODY

region.xint32optional

X coordinate of the region's top-left corner in pixels.

Location: BODY

region.yint32optional

Y coordinate of the region's top-left corner in pixels.

Location: BODY

titlestringoptional

No description provided.

Location: BODY

Response

Response

application/json
codeint32optional

Application response code.

CodeMeaning
0OK
12Invalid input
1401Insufficient credits
1404Provider returned an error
1405Provider request timed out
13Authentication is required
16Rate limit exceeded
99Server error

Available options: 0 12 1401 1404 1405 13 16 99

Location: RESPONSE

data.assetobjectoptional

No description provided.

Location: RESPONSE

data.paid_plan_requiredobjectoptional

No description provided.

Location: RESPONSE

data.taskobjectoptional

No description provided.

Location: RESPONSE

messagestringoptional

No description provided.

Available options: ok invalid input insufficient credits provider error provider timeout unauthenticated rate limit server error

Location: RESPONSE

MCP Tool

This endpoint is also available through the Medux-hosted remote MCP service.

Video / Background Removal

Remove the background from an uploaded video file.

Invocation Example

Remove the background from the uploaded source video {file_id}.

medux_video_remove_backgroundResult: video
file_id{file_id}