SandBase is live — $1 in free credits on signupStart free ›
Use in agentLuma models

Luma modelsvideo generation api

luma/ray-2/image-to-video

Ray 2 by Luma - animate still images into dynamic videos with AI. Transform photos into cinematic clips with natural motion, camera movement, and optional audio generation.

Input

PNG, JPEG, WebP, or GIF · 20 MiB maximum

Initial image to start the video from. Can be used together with end_image_url.

PNG, JPEG, WebP, or GIF · 20 MiB maximum

Final image to end the video with. Can be used together with image_url.
The resolution of the generated video (720p costs 2x more, 1080p costs 4x more) Allowed values: 540p, 720p, 1080p.
The duration of the generated video Allowed values: 5s, 9s.
The aspect ratio of the generated image. Allowed values: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16.
Idle

Example output — click Run to generate your own

API README

Luma Ray 2 Image to Video

Luma Ray 2 Image to Video is a Luma route built for image-to-video generation. It turns a source image and motion direction into a moving sequence that develops the supplied frame, giving creators a focused endpoint instead of forcing one generic workflow across materially different production tasks. The route belongs to a family known for natural motion, strong prompt interpretation, and cinematic camera behavior, so it is best evaluated as a creative system for intentional shots and assets rather than as a one-click novelty generator.

Use this endpoint when the input contract and deliverable match that job exactly. Its documented controls include duration choices (5s, 9s); end_image (Final image to end the video with. Can be used together with image_url); resolution choices (540p, 720p, 1080p); aspect_ratio choices (21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16). Together, these controls help teams plan predictable iterations, compare outputs under stable settings, and connect generation to concept films, campaign visuals, and rapid shot exploration without hiding the operational choices that shape the result.

Highlights

  • Luma Ray 2 Image to Video: dedicated reference-frame animation. This exact route centers on reference-frame animation; it uses prompt, image to separate its job from neighboring endpoints in the same family.
  • image control. Initial image to start the video from. Can be used together with end_image_url; this setting provides a concrete lever for route-specific output planning.
  • duration control. options 5s, 9s; use it to build controlled comparisons without changing the rest of the request.
  • end_image control. Final image to end the video with. Can be used together with image_url; together with the other documented fields, it supports repeatable review of this model path.

Pricing

ConfigurationPrice
Standard request$0.500000

When to Use

ScenarioWhy this model fits
Create the exact route outputChoose it when you need image-to-video generation and already have a source image and motion direction.
Develop controlled variationsKeep the main brief fixed while changing one documented setting at a time to compare motion, framing, quality, or asset behavior.
Build repeatable batchesUse a consistent request shape for catalog, campaign, storyboard, game-asset, or social-content production.
Preserve source intentPrefer this route when the supplied reference material must remain the foundation of a moving sequence that develops the supplied frame.
Connect a media pipelineUse asynchronous results in an automated review, approval, post-production, or asset-management workflow.

Prompt Guide

Start with the desired result, then describe the source relationship, subject action, composition or camera behavior, lighting, style, and timing. For image-to-video generation, state what must remain stable as clearly as what should change. Use only fields exposed by the schema; the example below is structurally valid for this route.

{
  "prompt": "A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage.",
  "image": "https://static.sandbase.ai/examples/luma/ray-2/image-to-video/input_image_0.jpeg",
  "duration": "5s",
  "end_image": "https://example.com/reference.jpg",
  "resolution": "540p"
}

Technical Specs

SpecificationValue
Model IDluma/ray-2/image-to-video
WorkflowImage-to-video generation
Required inputsprompt, image
imagestring
promptstring
durationstring; options: 5s, 9s
end_imagestring
resolutionstring; options: 540p, 720p, 1080p
aspect_ratiostring; options: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16

Related Models

Related Models

luma/ray-2/modifyRay 2 Modify by Luma - AI-powered video editing and transformation. Apply style transfer, motion control, lip-sync, and visual effects to existing videos with natural language instructions.luma/ray-2/reframeRay 2 Reframe is Luma's video-to-video AI model. Transform, enhance, and edit video content using text prompts - from style changes to object manipulation and scene modification.luma/ray-2/text-to-videoRay 2 is Luma's text-to-video AI model. Turn written scripts and prompts into professional-quality video clips with realistic motion, lighting, and scene composition.luma/agent/ray/3.2/video-to-videoAgent Ray 3.2 by Luma - AI-powered video editing and transformation. Apply style transfer, motion control, lip-sync, and visual effects to existing videos with natural language instructions.luma/agent/ray/3.2/image-to-videoAgent Ray 3.2 by Luma - animate still images into dynamic videos with AI. Transform photos into cinematic clips with natural motion, camera movement, and optional audio generation.luma/agent/ray/3.2/reframeAgent Ray 3.2 is Luma's video-to-video AI model. Transform, enhance, and edit video content using text prompts - from style changes to object manipulation and scene modification.luma/agent/ray/3.2/text-to-videoAgent Ray 3.2 is Luma's text-to-video AI model. Turn written scripts and prompts into professional-quality video clips with realistic motion, lighting, and scene composition.luma/ray-flash-2/image-to-videoRay Flash 2 by Luma - animate still images into dynamic videos with AI. Transform photos into cinematic clips with natural motion, camera movement, and optional audio generation.