1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const axios = require('axios');
const api_key = "YOUR API-KEY";
const url = "https://api.segmind.com/v1/video-frame-interpolation";
const data = {
"input_video": "https://segmind-resources.s3.amazonaws.com/output/568d37fa-1691-4ea5-aeb7-a904310a84df-2d5e91ed-66d2-4880-aa66-6aee09ad56f6.mp4",
"frame_multiplier": 2,
"output_fps": 30,
"preserve_audio": true,
"base64": false
};
(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 URL for processing
Frame multiplier for video processing
min : 1,
max : 10
Output frames per second for the processed video
min : 1,
max : 120
Whether to preserve audio from the input video
Output as base64 encoded string
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 6, 2025.
FILM (Frame Interpolation for Large Motion), by Google Research, is a state-of-the-art AI model that is designed to perform frame interpolation for image and video sequences. It can generate professional-level intermediate frames between images that are widely spaced, producing smooth results even with considerable motion between each frame. FILM can effectively perform better than the conventional interpolation techniques to render fluid and life-like motion by making use of a highly advanced scale-agnostic feature pyramid and bi-directional motion estimation.
For optimal results with FILM:
The unique scale-agnostic architecture of Frame Interpolation for Large Motion (FILM) makes it possible to effectively manage much larger motions than commonly available models to deliver sharper and more accurate results even when there are considerably high number of movements between frames.
To achieve high-end results, consider going with shorter clips (under 30 seconds) as they produce the best results and process more quickly. On the other hand, longer videos can be processed in segments if needed.
FILM is designed to work well with most of the content, but it performs best with clear, well-lit footage. If you need to process assets with fast-moving objects and complex scenes, then use lower frame multiplication settings for optimal results.
It is quite simple to toggle between different frame multiplier settings: start with 2-3x for natural-looking results, increase to 4x or higher for more dramatic slow-motion effects; higher multipliers may introduce more artifacts in challenging scenes.