POST
javascript
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); } })();
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


input_videostr *

Input video URL for processing


frame_multiplierint *

Frame multiplier for video processing

min : 1,

max : 10


output_fpsint *

Output frames per second for the processed video

min : 1,

max : 120


preserve_audiobool ( default: true )

Whether to preserve audio from the input video


base64bool ( default: 1 )

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.

Video Frame Interpolation

Edited by Segmind Team on October 6, 2025.

What is FILM?

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.

Key Features of FILM

  • It employs a scale-agnostic feature pyramid for handling both small and large movements
  • It has a bi-directional motion estimator with shared weights across scales
  • It can perform high-quality frame synthesis with temporal consistency
  • It can do intelligent inpainting of occluded regions
  • It supports various output frame rates - up to 120 FPS
  • It can execute flexible frame multiplication (1-10x) for customizable smoothness
  • It includes the optional audio preservation in processed videos

Best Use Cases

  • It can be utilized to create professional slow-motion footage from standard videos
  • It can create smooth time-lapse photography sequences
  • It can improve gaming and sports replay footage
  • It can convert low frame rate content to high frame rate
  • It can improve motion clarity in security camera footage
  • It can generate smooth transitions for animation and VFX

Prompt Tips and Output Quality

For optimal results with FILM:

  • Use short video clips for faster processing and better quality
  • Choose frame multiplier based on desired effect:
    • 2-3x for natural slow motion
    • 4x+ for ultra-smooth, dramatic effects
  • Select appropriate output FPS:
    • 24 FPS for cinematic feel
    • 60 FPS for smooth gaming/ sports content
    • 120 FPS for maximum fluidity
  • Preserving audio when maintaining original timing is important

FAQs

What makes FILM different from other frame interpolation models?

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.

What is the recommended input video length?

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.

Can FILM handle any type of video content?

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.

How do I choose between different frame multiplier settings?

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.