1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const axios = require('axios');
const api_key = "YOUR API-KEY";
const url = "https://api.segmind.com/v1/bria-remove-video-background";
const data = {
"video_url": "https://segmind-resources.s3.amazonaws.com/input/650fd563-ca86-4c29-8bce-165b6e23bd41-couple_dance.mp4",
"background_color": "Green",
"output_container_and_codec": "mp4_h264"
};
(async function() {
try {
const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } });
console.log(response.data);
} catch (error) {
console.error('Error:', error.response.data);
}
})();
Provide the video URL for background removal. Use high-quality videos for best results.
Set the output background color. Choose "Transparent" for clear backgrounds, or "Black" for dramatic effect.
Allowed values:
Select output format and codec. "mp4_h264" is optimal for compatibility.
Allowed values:
To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.
Edited by Segmind Team
Bria Video AI is the latest addition to Bria's suite of comprehensive video enhancement models. It supports an automated video production workflow for professional editing and content creation. Bria Video AI powers high-end core capabilities, which include - intelligent upscaling and advanced background removal. The model works flawlessly to generate high-fidelity videos while ensuring that its innate properties, including aspect ratio, frame rate, and audio quality, remain intact or are further improved.
mp4_h264
for maximum compatibility across platformsQ: What video formats does Bria Video AI support? A: Bria supports major formats including MP4, MOV, MKV, WebM, and GIF, with various codec options including H.264, H.265, VP9, and ProRes.
Q: How does the background removal maintain quality? A: The model uses advanced AI segmentation to preserve edge details while maintaining original resolution and frame rate.
Q: What's the maximum resolution for upscaling? A: Videos can be upscaled up to 8K resolution while preserving original video properties.
Q: Can I process videos in batch? A: Yes, the asynchronous processing system allows for efficient batch processing of multiple videos.
Q: How do I choose the best output format?
A: For general use, mp4_h264
offers the best balance of quality and compatibility. Choose mov_proresks
for professional editing workflows.