WaveSpeedAI APIWavespeed AIVideo Background Remover

Video Background Remover

Video Background Remover

Playground

Try it on WavespeedAI!

WaveSpeed Video Background Remover replaces or removes video backgrounds with a custom image. Upload or paste a link to your video, then provide a background image by URL or file—clean matting, edge-aware blending, and natural compositing keep subjects realistic. Built for creator workflows and batch jobs. Ready-to-use REST inference API with fast response, no cold starts, and predictable pricing.

Features

WaveSpeed Video Background Remover

Video Background Remover is an AI-powered tool that automatically detects and removes backgrounds from videos, with the option to replace them with custom background images. Perfect for content creators, video editors, and marketers who need clean, professional video compositing without manual masking.


Key capabilities

  • Automatic background detection and removal Intelligently separates foreground subjects from backgrounds in video content without manual masking or green screens.

  • Custom background replacement Replace the original background with your own image for branded content, virtual backgrounds, or creative compositing.

  • Transparent background support Generate videos with transparent backgrounds when no replacement image is provided, ready for further editing or overlay.

  • Production-ready quality High-quality edge detection and matting for professional-looking results suitable for marketing, social media, and presentations.


Parameters and how to use

  • video: (required): URL of the input video to process
  • background_image: URL of the replacement background image

How to use

  1. video – (required) Provide the URL of your input video. The video should clearly show the subject you want to keep in the foreground. Best results with videos where the subject is distinct from the background.

  2. background_image – (optional) Provide the URL of an image to use as the new background. If omitted, the output will have a transparent background. The image will be automatically scaled and positioned to fit the video dimensions.

After you finish configuring the parameters, click Run, preview the result, and iterate if needed.


Pricing

Pricing is based on video duration:

Video DurationCost per run
≤ 5 seconds$0.05
10 seconds$0.10

Rate: $0.01 per second (minimum $0.05 for ≤5s, capped at 600s / $6.00).


Notes

Tips for best results:

  • Use videos with clear subject-background separation for optimal edge detection
  • Ensure adequate lighting to help the model distinguish the foreground subject
  • For replacement backgrounds, use high-resolution images that match or exceed your video resolution
  • Better to use a landscape video which the ratio is 16:9.

Use cases:

  • Social Media Content – Create eye-catching videos with branded backgrounds
  • Product Videos – Showcase products on clean or custom backgrounds
  • Virtual Presentations – Replace home office backgrounds with professional settings
  • Green Screen Alternative – Process videos without needing physical green screens

  • Bria Video Eraser – AI-powered video object removal tool for erasing unwanted elements from videos.

Authentication

For authentication details, please refer to the Authentication Guide.

API Endpoints

Submit Task & Query Result


# Submit the task
curl --location --request POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/video-background-remover" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{}'

# Get the result
curl --location --request GET "https://api.wavespeed.ai/api/v3/predictions/${requestId}/result" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}"

Parameters

Task Submission Parameters

Request Parameters

ParameterTypeRequiredDefaultRangeDescription
videostringYes-URL of the input video to process for background removal or replacement
background_imagestringNo--URL of the background image to replace the original video background

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
data.idstringUnique identifier for the prediction, Task Id
data.modelstringModel ID used for the prediction
data.outputsarrayArray of URLs to the generated content (empty when status is not completed)
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.has_nsfw_contentsarrayArray of boolean values indicating NSFW detection for each output
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds

Result Request Parameters

ParameterTypeRequiredDefaultDescription
idstringYes-Task ID

Result Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
dataobjectThe prediction data object containing all details
data.idstringUnique identifier for the prediction, the ID of the prediction to get
data.modelstringModel ID used for the prediction
data.outputsstringArray of URLs to the generated content (empty when status is not completed).
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds
© 2025 WaveSpeedAI. All rights reserved.