[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [FILM Video Interpolation](https://spiral.ai/integrations/codex/film-video-interpolation)

# How to Use FILM Video Interpolation in Codex

FILM Video Interpolation fills gaps between existing video frames for smoother playback or slow-motion edits. It targets large changes in motion, though extreme movement can still produce unnatural shapes.

|  |  |
| --- | --- |
| Model | FILM Video Interpolation |
| Available through | fal |
| Category | Video |
| Price | Up to $0.1014 per run at the default inputs for 60 seconds of input. |
| Returns | video |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with FILM Video Interpolation in Codex

- Use FILM Video Interpolation on assets/product-turntable.mp4 with one generated frame between input frames. Save a separate preview and prepare a side-by-side comparison with the original.
- Use FILM Video Interpolation to compare one versus two generated frames between input frames in assets/animation-preview.mp4. Keep both results for a motion review.
- Use FILM Video Interpolation on assets/montage.mp4 with scene detection enabled. Extract comparison frames around each cut so I can check for smearing.
- Use FILM Video Interpolation to prepare a slow-motion preview of assets/skateboard.mp4. Include the original in the review page so I can inspect the fastest movement.
- Use FILM Video Interpolation on assets/camera-pan.mp4. Build a local comparison player that lets me switch between the original and interpolated preview.

## How to set up FILM Video Interpolation in Codex

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
codex mcp add spiral --url https://api.spiral.ai/mcp
```

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run FILM Video Interpolation**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "fal-ai/film/video",
    "input": {
      "video_url": "https://storage.googleapis.com/falserverless/example_inputs/interpolation-video-input.mp4"
    }
  }'
```

Then paste one of the prompts above: Codex finds FILM Video Interpolation on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/codex

## FILM Video Interpolation tools and prices

- [FILM · Video Interpolation](https://spiral.ai/tools/fal/fal-ai/film/video) (fal): $0.00169 per second.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| num_frames | 1 to 4 | 1 | The number of frames to generate between the input video frames. |
| use_scene_detection |  | false | If True, the input video will be split into scenes before interpolation. This removes smear frames between scenes, but can result in false positives if the scene detection is not accurate. If False, the entire video will be treated as a single scene. |
| use_calculated_fps |  | true | If True, the function will use the calculated FPS of the input video multiplied by the number of frames to determine the output FPS. If False, the passed FPS will be used. |
| fps | 1 to 60 | 8 | Frames per second for the output video. Only applicable if use_calculated_fps is False. |
| loop |  | false | If True, the final frame will be looped back to the first frame to create a seamless loop. If False, the final frame will not loop back. |
| video_quality | low, medium, high, maximum | high | The quality of the output video. Only applicable if output_type is 'video'. |

## What can you do with FILM Video Interpolation in Codex?

Turn project video assets into interpolation previews for motion review. A coding agent can prepare clips, run FILM, and organize comparisons with the originals.

### Product rotation clips

Try interpolation on an existing product turntable video, then inspect the outline as the product rotates.

### Slow-motion sports edits

Prepare a slow-motion preview from an existing sports clip. Review the fastest movement for unnatural deformation before using it in an edit.

### Animation previews

Compare an existing animation with an interpolated version to decide whether added motion suits the intended style.

### Camera pan previews

Test smoother playback on a continuous camera pan and compare moving edges against the original.

### Generated video finishing

Add intermediate frames to an existing AI-generated clip, then check whether motion improves without introducing new shape distortions.

### Edited montage processing

Try interpolation on a montage with scene detection enabled. Review every cut for smearing and check for false scene boundaries.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Codex guides](https://spiral.ai/integrations/codex)

## FILM Video Interpolation in other agents

- [Amp](https://spiral.ai/integrations/amp/film-video-interpolation)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/film-video-interpolation)
- [Claude](https://spiral.ai/integrations/claude-desktop/film-video-interpolation)
- [Claude Code](https://spiral.ai/integrations/claude-code/film-video-interpolation)
- [Cline](https://spiral.ai/integrations/cline/film-video-interpolation)
- [Cursor](https://spiral.ai/integrations/cursor/film-video-interpolation)
- [Devin](https://spiral.ai/integrations/devin/film-video-interpolation)
- [dots](https://spiral.ai/integrations/dots/film-video-interpolation)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/film-video-interpolation)
- [Gemini](https://spiral.ai/integrations/gemini/film-video-interpolation)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/film-video-interpolation)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/film-video-interpolation)
- [goose](https://spiral.ai/integrations/goose/film-video-interpolation)
- [Grok](https://spiral.ai/integrations/grok/film-video-interpolation)
- [Grok Build](https://spiral.ai/integrations/grok-build/film-video-interpolation)
- [Hermes](https://spiral.ai/integrations/hermes/film-video-interpolation)
- [Instinct](https://spiral.ai/integrations/instinct/film-video-interpolation)
- [Manus](https://spiral.ai/integrations/manus/film-video-interpolation)
- [Muse](https://spiral.ai/integrations/muse/film-video-interpolation)
- [Muse Code](https://spiral.ai/integrations/muse-code/film-video-interpolation)
- [n8n](https://spiral.ai/integrations/n8n/film-video-interpolation)
- [Notion](https://spiral.ai/integrations/notion/film-video-interpolation)
- [OpenClaw](https://spiral.ai/integrations/openclaw/film-video-interpolation)
- [opencode](https://spiral.ai/integrations/opencode/film-video-interpolation)
- [Perplexity](https://spiral.ai/integrations/perplexity/film-video-interpolation)
- [Raycast](https://spiral.ai/integrations/raycast/film-video-interpolation)
- [VS Code](https://spiral.ai/integrations/vscode/film-video-interpolation)
- [Windsurf](https://spiral.ai/integrations/windsurf/film-video-interpolation)
- [Zapier](https://spiral.ai/integrations/zapier/film-video-interpolation)

## More Codex guides

- [FFmpeg](https://spiral.ai/integrations/codex/ffmpeg)
- [FLUX 3 Draft Enhance](https://spiral.ai/integrations/codex/flux-3-draft-enhance)
- [ElevenLabs Dubbing](https://spiral.ai/integrations/codex/elevenlabs-dubbing)
- [FLUX 3 Extend Video](https://spiral.ai/integrations/codex/flux-3-extend-video)
- [DreamActor V2](https://spiral.ai/integrations/codex/dreamactor-v2)
- [FLUX 3 Extend Video Draft](https://spiral.ai/integrations/codex/flux-3-extend-video-draft)

## Questions about FILM Video Interpolation in Codex

**Can Codex use FILM Video Interpolation?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run FILM Video Interpolation like any built-in tool.

**How much does FILM Video Interpolation cost in Codex?**

Up to $0.1014 per run at the default inputs for 60 seconds of input. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

**Do I need a fal account to use FILM Video Interpolation in Codex?**

No. Spiral runs FILM Video Interpolation on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up FILM Video Interpolation in Codex?**

About two minutes: add the hosted server, then sign in.

**Does Codex wait while FILM Video Interpolation runs?**

FILM Video Interpolation runs in the background. Codex starts the run, checks on it and gives you the video when it's ready.

**What does FILM do to a video?**

FILM synthesizes frames between existing frames. Use it to try smoother playback or prepare a slow-motion edit.

**What should I ask an agent to do with FILM?**

Identify the video and describe the editing goal: smoother playback or slow motion. Ask for a short comparison with the original before processing the full edit.

**How well does FILM handle fast movement?**

FILM was designed to handle large changes in motion between images. Extreme movement can still distort shapes, so inspect the busiest sections before keeping a result.

**Why can scene changes look smeared?**

Interpolation across a cut can blend unrelated scenes. Try scene detection, then check that it has not mistaken movement within a shot for a cut.

**Are smoother playback and slow motion the same result?**

They are different editing goals that can both use generated intermediate frames. Specify whether you want the action to keep its original timing or play more slowly.

