Luma Dream Machine's Modify Video tool restyles existing footage by using the source clip as a spatio-temporal geometric foundation, replacing visual textures, lighting, and environments while locking the original camera trajectory and subject motion timing. Rather than generating fresh video from scratch—which inevitably randomizes camera path and movement rhythm—Modify Video uses video-to-video diffusion conditioned on frame-by-frame optical progression and selectable adherence strength presets.
For visual effects artists, commercial editors, and cinematographers, this capability solves a persistent production headache: reshooting or rebuilding camera rigs is expensive, while standard text-to-video tools destroy real-world camera choreography. With Modify Video, live-action tracking shots, drone sweeps, handheld tilts, and complex dollies remain structurally identical while their aesthetic transforms completely.
Why Standard Text-to-Video Drifts and How Modify Video Locks Motion
In traditional text-to-video generation, the AI diffusion model samples noise vectors in unconstrained latent space. Even when descriptive camera terms like "slow cinematic dolly" or "orbit left" are specified, the model generates an arbitrary interpretation of that path. If you attempt to re-generate an existing live-action take, the actor's cadence, facial micro-expressions, and precise camera-to-subject distance shift unpredictably.
Modify Video alters this architecture through three specific mechanisms:
- Continuous Motion & Optical Field Conditioning: The uploaded source video provides the temporal prior. The model tracks pixel flow, relative parallax, and frame-to-frame velocity vectors, ensuring that foreground-background depth relationships follow the camera's original movement.
- First-Frame Anchoring (
first_frame): Users can supply a stylized first frame as a visual guide. This pins down the aesthetic, color grading, and texture scheme at time zero, allowing subsequent frames to diffuse along the established camera path without drift. - Calibrated Adherence Modes: Instead of an all-or-nothing generation, the tool offers a granular 9-step slider divided into three distinct behavioral tiers: Adhere, Flex, and Reimagine.
Adherence Modes: Balancing Style Freedom Against Camera Geometry
Choosing the correct adherence preset determines how faithfully the underlying camera motion and object boundaries survive the restyling process.
| Mode Family | API Values | Structural Behavior | Best Use Cases |
|---|---|---|---|
| Adhere | adhere_1, adhere_2, adhere_3 | Locks tight geometric boundaries, edge maps, and camera path; modifies surface textures, lighting, and color. | Relighting a scene; day-to-night conversion; subtle material swaps (e.g., matte to metallic); commercial color grades. |
| Flex | flex_1, flex_2, flex_3 | Maintains subject choreography, performance timing, and camera sweeps; allows moderate transformation of clothing, props, and backgrounds. | Wardrobe replacement; changing contemporary city streets into cyberpunk alleys; converting live action into 3D animation while keeping lip sync and gestures intact. |
| Reimagine | reimagine_1, reimagine_2, reimagine_3 | Maximizes generative freedom; alters character anatomy and environment architecture while preserving overall camera dynamics and temporal cadence. | Radical sci-fi or fantasy world replacement; transforming humans into stone statues or cyborgs; surreal scene transformations. |
Step-by-Step Workflow: Restyling Footage in Dream Machine
Whether using the Dream Machine web workspace or direct API requests, the production pipeline follows a structured five-step path.
Step 1: Prepare and Trim the Source Footage
- Keep clips focused and continuous without hard cuts or edits.
- Maximize motion clarity: stable camera sweeps (dolly, tracking, pedestal, pan, orbit) produce the cleanest parallax retention. Excessive motion blur or severe low-light compression noise can create artifacting.
- Ensure duration meets engine constraints (up to 10 seconds on
ray-2, up to 15 seconds onray-flash-2; file sizes within 100 MB).
Step 2: Set Up the Generation Request
In the Luma Dream Machine interface, open a new board and select the Modify tab. Upload your prepared .mp4 or .mov clip.
For API integrations, configure the modify_video generation payload:
{
"generation_type": "modify_video",
"media": {
"url": "https://assets.yourstudio.com/raw_footage/dolly_shot.mp4"
},
"first_frame": {
"url": "https://assets.yourstudio.com/guides/dolly_shot_stylized_frame0.png"
},
"mode": "flex_2",
"model": "ray-2",
"prompt": "A futuristic cyborg operative walking through a rain-slicked neo-Tokyo alley, neon reflections on wet asphalt, volumetric mist, cinematic 35mm lighting"
}
Step 3: Use First-Frame Visual Anchoring
While the first_frame parameter is optional, providing a stylized still of your opening frame drastically improves visual stability.
- Export frame 0 from your editing timeline.
- Restyle that single frame using an image generation model or manual Photoshop paintover.
- Upload it as
first_frame.url. The diffusion pipeline uses this frame as a deterministic starting target, preventing color flicker across the initial frames.
Step 4: Craft Targeted Prompts
Modify Video responds best to declarative instructions that separate the static elements being altered from the dynamic elements being preserved:
- Focus on Replacement: State what to replace and what to introduce (e.g., "replace business suit with combat armor; convert office corridor into concrete bunker").
- Omit Redundant Camera Instructions: Do not add text commands like "pan left" or "crane shot" to the Modify prompt. The model already inherits those dynamics from the video file. Adding conflicting text camera cues creates algorithmic competition and instability.
- Define Environmental Lighting: Specify how light interacts with the moving camera (e.g., "dappled sunlight moving across the lens", "specular puddle reflections").
Step 5: Evaluate, Iterate, and Upscale
Review the generated preview. If the style change is too timid, bump the mode from flex_1 to flex_3. If camera tracking wobbles around complex foreground elements, drop back into the adhere tier. Once satisfied, export at target resolution or pass to upscale workflows.
Model Selection and Budget Optimization
Luma Dream Machine provides two primary models for video modification, balancing speed against visual fidelity:
- ray-2 ($0.01582 per million pixels): The flagship production model. It delivers superior temporal consistency, crisp fine-texture handling, and robust depth-layer separation. Ideal for commercial delivery, cinematic shots, and complex character interactions (typically ~$1.75 for a 5-second 720p 16:9 clip).
- ray-flash-2 ($0.00544 per million pixels): A fast, lightweight iteration engine. It processes requests quickly and cost-effectively (~$0.60 for a 5-second 720p 16:9 clip), making it well-suited for rapid style exploration, mode testing, and social media deliverables.
Practical Constraints and Pro Tips for VFX Artists
- Avoid Extreme Parallax Occlusion: If an actor walks directly in front of the lens and completely obscures the frame for a split second,
reimaginemodes may re-hallucinate a different background once the subject clears. Useadhere_3orflex_1for shots with heavy foreground occlusions. - Match Aspect Ratios: Upload source footage in the exact aspect ratio you plan to generate (16:9, 9:16, 21:9, etc.). Letterboxing or non-standard aspect ratios may trigger automatic edge scaling.
- Element Isolation Over Whole-Scene Destruction: When replacing specific props or wardrobe items, describe the surrounding environment as stable to avoid unintended background warping.
- Post-Production Composite Integration: Because camera motion is preserved 1:1, VFX teams can composite the original sound track, clean plate graphics, or typography back onto the modified render without re-tracking keyframes in DaVinci Resolve or After Effects.