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.
{ "model": "sand-ai/magi-2/image-to-video", "image": "https://.../start.webp", "last_image": "https://.../end.webp", "duration": 6 }Related glossary terms
Shot-brief prompting replaces vague single-sentence prompts with structured, timestamped director scripts specifying six concrete production layers per beat: subject identity, physical environment, concrete action physics, lighting and lens optics, explicit camera movement verbs, and isolated audio or no-music rules.
Aspect ratio safe zones define the unobstructed central region of a 1080p video frame where eyes, lip-sync mouths, and product packaging stay completely readable after social apps overlay action rails, captions, status chrome, or widescreen crops.
The 4-second audition workflow is a disciplined MAGI-2 production method where directors validate casting, Omni-Reference likeness, tungsten lighting, and vocal timbre using a minimum 4-second clip (40 credits / $0.32 wholesale) before committing budget to a full 15–30 second master.