Skip to main content
MAGIAI
Directing & Prompting|Verified as of 2026-12-02|DefinedTerm

First / Last Frame Interpolation

First and last frame interpolation constrains an image-to-video render at both temporal boundaries—supplying a required opening keyframe (image) and an optional closing keyframe (last_image)—so the model synthesizes coherent camera motion, lighting shifts, and synchronized foley bridging both compositions.

Technical definition

Animating solely from an opening keyframe gives strong visual fidelity on frame zero but leaves the ending mark unconstrained, creating headaches when editors need a camera push to land squarely on a readable product packshot, title plate, or match-cut silhouette. Dual-keyframe conditioning anchors both temporal endpoints before inference begins. The video transformer computes plausible 3D parallax, subject blocking, occlusion recovery, and shadow progression across the requested duration so motion eases cleanly into the closing composition rather than morphing abruptly at the final second.

How it works in flagship MAGI-2

On MAGI-2’s image-to-video API schema, `image` is required and `last_image` is optional, accepting public HTTPS URLs or Base64 data URIs across 4–30 second integer steps at flat 10 credits/second ($0.08/s wholesale baseline). One frequently missed constraint: image-to-video omits the `aspect_ratio` parameter entirely because MAGI-2 automatically inherits the exact aspect ratio of the opening `image`. Supplying start and end keyframes with matching aspect ratios, compatible focal perspectives, and realistic intermediate physics prevents stretching artifacts or impossible teleportation jumps.

Production application & example

For a 6-second specialty coffee hero shot, pass a locked close-up of the dry bottomless portafilter as `image` and a finished stoneware demitasse topped with dense tiger-striped crema as `last_image`, both exported at exact 1920x1080 dimensions under matching tungsten side-light. Prompt a smooth vertical tilt-down with 9-bar pump hum, viscous espresso pour, and "no music" so motion eases into frame 150 with zero stretch.

Canonical syntax snippet
{ "model": "sand-ai/magi-2/image-to-video", "image": "https://.../start.webp", "last_image": "https://.../end.webp", "duration": 6 }

Related glossary terms

What Is First & Last Frame Interpolation? — Glossary