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-increase-video-resolution";
const data = {
"video_url": "https://segmind-resources.s3.amazonaws.com/output/0e8d42ea-6116-4a18-9ae7-85cfd7bc917f-9cb5c6e8-9742-4d03-811a-cc86a1ba873c.mp4",
"desired_increase": 2,
"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);
}
})();
The URL where the video is hosted. Ensure the link is accessible and direct.
Choose the scale factor for video upscaling. Use '2' for moderate and '4' for high quality enhancement.
Allowed values:
Select output format and compression. Use 'mp4_h264' for compatibility, 'webm_vp9' for web optimization.
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 Segmend Team
Bria AI Video Enhancement is the latest suite of advanced video processing APIs that simplify video editing tasks while improving their overall quality. Designed for developers and content creators, it works at a high level of expertise to upscale videos and remove the undesired background with precision. Bria AI's video enhancement suite's two core models - Resolution Increase, which is supported by intuitive AI to increase the video quality, preserve the details, along with motion consistency; the other is Background Removal, capable of isolating elements. These extensive features boost the overall video editing quality and speed for a professional-level workflow.
Q: What's the maximum resolution increase possible? A: Bria AI Video Enhancement model supports up to 8K output resolution, with scaling factors of 2x or 4x available.
Q: Which video formats are supported for input? A: The model accepts most common video formats, with output options including MP4, WebM, MOV, MKV, and GIF.
Q: How does the asynchronous processing work? A: When you submit a video for editing, you receive a Job ID and Status URL to track your video processing progress.
Q: Can I preserve transparency in processed videos? A: Yes, the model maintains alpha channels and transparency in the video upscaling and background removal processes.
Q: What's the recommended codec for web delivery? A: WebM with VP9 codec is recommended for web delivery, while H.264 offers the best general compatibility.