1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const axios = require('axios');
const api_key = "YOUR API-KEY";
const url = "https://api.segmind.com/v1/flashvsr";
const data = {
"video": "https://segmind-resources.s3.amazonaws.com/input/da981ec9-cb58-4a1d-b56f-49f4e0f38ac7-flash_720.mp4",
"mode": "tiny",
"scale": 2,
"color_fix": true,
"local_range": 12,
"seed": 42
};
(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);
}
})();Input video to upscale. Supports URL or video file; max duration: 60 secs.
Choose quality or speed. 'full' is high quality; 'tiny' is faster.
Allowed values:
Set upscaling level. 4 for max detail, 2 for balance.
Allowed values:
Enable color correction for video consistency. Recommended for natural visuals.
Set frame attention range. Higher for temporal accuracy.
min : 5,
max : 15
Set seed for reproducibility. Use -1 for random.
min : -1,
max : 99999999
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 on October 24, 2025.
FlashVSR is an advanced AI model for real-time video quality enhancement. It utilizes sophisticated diffusion approaches to seamlessly boost video resolution even when it is being streamed live. FlashVSR with its integrated one-step diffusion and locality-constrained sparse attention that enables it to handle high-resolution videos at 17 frames per second on a single GPU, making it eons ahead of other models. The model is capable of rendering high-quality results due to its robust training, based on the vast VSR-120K dataset of 120,000 videos and 180,000 images, making it ideal for various platforms that need high-resolution videos in real-time.
For optimal results, follow these prompt tips:
How does FlashVSR compare to other VSR models? FlashVSR offers up to 12x faster processing while maintaining high quality, utilizing its integrated diffusion framework and optimized attention mechanism.
What video formats and lengths are supported? The model supports standard video formats via URL or file upload, with a maximum duration of 60 seconds per processing session.
Should I use full or tiny mode? Use 'full' mode when you want high-quality results and processing time isn't critical. Choose 'tiny' mode for real-time applications and speedy processing.
How does the local_range parameter affect output? Local_range determines how many adjacent frames influence each frame's enhancement. Higher values (up to 15) provide better temporal consistency but result in increased processing time.
Can I process high-resolution videos in real-time? Yes, FlashVSR can process high-resolution videos in real-time, achieving approximately 17 FPS on a single GPU, making it suitable for live applications.