Bria Remove Video Background
Bria Video AI enhances videos up to 8K while seamlessly removing backgrounds for professional quality content.
~34.01s
~$3.389
1import requests
2import json
3
4url = "https://api.segmind.com/v1/bria-remove-video-background"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "video_url": "https://segmind-resources.s3.amazonaws.com/input/650fd563-ca86-4c29-8bce-165b6e23bd41-couple_dance.mp4",
12 "background_color": "Green",
13 "output_container_and_codec": "mp4_h264"
14}
15
16response = requests.post(url, headers=headers, json=data)
17
18if response.status_code == 200:
19 result = response.json()
20 print(json.dumps(result, indent=2))
21else:
22 print(f"Error: {response.status_code}")
23 print(response.text) 1import requests
2import json
3
4url = "https://api.segmind.com/v1/bria-remove-video-background"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "video_url": "https://segmind-resources.s3.amazonaws.com/input/650fd563-ca86-4c29-8bce-165b6e23bd41-couple_dance.mp4",
12 "background_color": "Green",
13 "output_container_and_codec": "mp4_h264"
14}
15
16response = requests.post(url, headers=headers, json=data)
17
18if response.status_code == 200:
19 result = response.json()
20 print(json.dumps(result, indent=2))
21else:
22 print(f"Error: {response.status_code}")
23 print(response.text)API Endpoint
POST
https://api.segmind.com/v1/bria-remove-video-backgroundParameters
video_urlrequiredstring (uri)Provide the video URL for background removal. Use high-quality videos for best results.
background_coloroptionalstringSet the output background color. Choose "Transparent" for clear backgrounds, or "Black" for dramatic effect.
Default:
"Transparent"Allowed values (11 total):
"Transparent""Black""White""Gray""Red""Green""Blue""Yellow""Cyan""Magenta"+1 moreoutput_container_and_codecoptionalstringSelect output format and codec. "mp4_h264" is optimal for compatibility.
Default:
"mp4_h264"Allowed values :
"mp4_h264""mp4_h265""webm_vp9""mov_h265""mov_proresks""mkv_h264""mkv_h265""mkv_vp9""gif"Response Type
Returns: Video
Common Error Codes
The API returns standard HTTP status codes. Detailed error messages are provided in the response body.
400
Bad Request
Invalid parameters or request format
401
Unauthorized
Missing or invalid API key
403
Forbidden
Insufficient permissions
404
Not Found
Model or endpoint not found
406
Insufficient Credits
Not enough credits to process request
429
Rate Limited
Too many requests
500
Server Error
Internal server error
502
Bad Gateway
Service temporarily unavailable
504
Timeout
Request timed out