Overview

Bria's Video Editing API empowers builders with powerful tools for programmatically transforming video content while maintaining original quality.

The first feature, Background Removal, enables developers to seamlessly remove backgrounds from videos while preserving the source video's resolution and framerate. The API supports a wide range of common video formats including MP4, AVI, MOV, GIF, and WEBM, offering builders flexibility for various video processing implementations.

Processing is asynchronous, meaning the API returns a video URL immediately, but results are available only after processing is complete. A 10-second video typically takes ~5 minutes, with longer videos scaling proportionally.

Download OpenAPI description
Languages
Servers
https://engine.prod.bria-api.com/v1/

Endpoints

Operations

Remove Background from Video

Request

Description

This endpoint allows users to remove the background from videos. It supports various video file formats and retains the original video's framerate and resolution in the output.

Supported Inputs:

  • File types: mp4, avi, mov, gif, webm
  • Framerate: All framerates are supported; the original video's framerate is preserved in the output.
  • Resolutions: No limit; the output resolution matches the input resolution.

Output: - File type: webm

  • Framerate: Matches the original video.
  • Resolution: Matches the original video.
Headers
api_tokenstringrequired

API token associated with the organization.

Bodyapplication/jsonrequired
video_urlstring

A publicly accessible URL of the video to process. The input video time limit is up to 1 minute.

curl -i -X POST \
  https://engine.prod.bria-api.com/v1/video/background/remove \
  -H 'Content-Type: application/json' \
  -H 'api_token: string' \
  -d '{
    "video_url": "https://example.com/input_video.mp4"
  }'

Responses

Background successfully removed.

Bodyapplication/json
result_urlstring

URL of the video with the background removed.

Response
application/json
{ "result_url": "https://example.com/processed_video.webm" }