POST
javascript
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); } })();
RESPONSE
image/jpeg
HTTP Response Codes
200 - OKImage Generated
401 - UnauthorizedUser authentication failed
404 - Not FoundThe requested URL does not exist
405 - Method Not AllowedThe requested HTTP method is not allowed
406 - Not AcceptableNot enough credits
500 - Server ErrorServer had some issue with processing

Attributes


video_urlstr *

Provide the video URL for background removal. Use high-quality videos for best results.


background_colorenum:str ( default: Transparent )

Set the output background color. Choose "Transparent" for clear backgrounds, or "Black" for dramatic effect.

Allowed values:


output_container_and_codecenum:str ( default: mp4_h264 )

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.

Bria Video AI: Professional Video Enhancement Models

Edited by Segmind Team

What is Bria Video AI?

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.

Key Features of Bria Video AI

  • Advanced Resolution Enhancement: It works well to upscale videos up to 8K quality while maintaining their originality and essence
  • Intelligent Background Removal: It can precisely isolate the subjects while providing customizable background options
  • Format Flexibility: It support multiple video containers and codecs, including MP4, MOV, MKV, WebM
  • Asynchronous Processing: It efficiently handles multiple workflows to support video transformations at scale
  • Quality Preservation: It can maintain original frame rates, audio, and color depth throughout the editing process
  • Customizable Output: There are multiple options to choose from - different background colors and transparency options

Best Use Cases

  • Content Creation: YouTubers and social media creators can use it to create high-quality videos
  • Film Production: Post-production teams will find it quite useful while working on footage enhancement
  • Marketing: It can create impactful professional video content with custom backgrounds
  • Virtual Production: It can be an excellent alternative to green screen and virtual set integration
  • E-learning: It can be used to create high-quality educational content with clean backgrounds
  • Live Streaming: It can boost the live streaming quality and create dynamic backgrounds

Prompt Tips and Output Quality

  • Video Input Quality: Use the highest quality source video available for best results
  • Format Selection: Choose mp4_h264 for maximum compatibility across platforms
  • Background Options: Use "Transparent" for versatile post-processing. Select solid colors like "Black" or "White" for specific creative effects
  • Processing Time: The processing time may take longer for lengthy videos with higher resolution

FAQs

Q: 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.