luma/ray-flash-2-540p ✓📝❓🖼️ → 🖼️

⭐ Official ▶️ 53.6K runs 📅 Mar 2025 ⚙️ Cog 0.16.8 ⚖️ License
text-to-video

About

Generate 5s and 9s 540p videos, faster and cheaper than Ray 2

Example Output

Prompt:

"A cinematic anime character intimate closeup, she is sitting at a cafe on a busy city street in the morning, drinking coffee, it is cold, a dynamic scene"

Output

Performance Metrics

31.86s Prediction Time
31.87s Total Time
All Input Parameters
{
  "loop": false,
  "prompt": "A cinematic anime character intimate closeup, she is sitting at a cafe on a busy city street in the morning, drinking coffee, it is cold, a dynamic scene",
  "duration": 5,
  "aspect_ratio": "16:9"
}
Input Parameters
loop Type: booleanDefault: false
Whether the video should loop, with the last frame matching the first frame for smooth, continuous playback.
prompt (required) Type: string
Text prompt for video generation
concepts Type: array
List of camera concepts to apply to the video generation. Concepts include: truck_left, pan_right, pedestal_down, low_angle, pedestal_up, selfie, pan_left, roll_right, zoom_in, over_the_shoulder, orbit_right, orbit_left, static, tiny_planet, high_angle, bolt_cam, dolly_zoom, overhead, zoom_out, handheld, roll_left, pov, aerial_drone, push_in, crane_down, truck_right, tilt_down, elevator_doors, tilt_up, ground_level, pull_out, aerial, crane_up, eye_level
duration Default: 5
Duration of the video in seconds
end_image Type: string
An optional last frame of the video to use as the ending frame.
start_image Type: string
An optional first frame of the video to use as the starting frame.
aspect_ratio Default: 16:9
Aspect ratio of the generated video
end_image_url Type: string
Deprecated: Use end_image instead
start_image_url Type: string
Deprecated: Use start_image instead
Output Schema

Output

Type: stringFormat: uri

Example Execution Logs
Using ray-flash-2 with resolution 540p
Moderating content...
Moderation complete in 0.19sec
Running prediction...
Generating video...
Generation parameters:
- prompt: A cinematic anime character intimate closeup, she is sitting at a cafe on a busy city street in the morning, drinking coffee, it is cold, a dynamic scene
- aspect_ratio: 16:9
- loop: False
- model: ray-flash-2
- duration: 5s
- resolution: 540p
Completed...
Generated video in 31.41sec
VIDEO_GENERATION_ID: 8fd0697b-d4dc-40aa-aca5-4eec0ee3c6ad
Downloading 565344 bytes
Downloaded 0.54MB in 0.25sec
Version Details
Version ID
ec40f8287fd10ed686389bcd4595034d9ca24bde840a5f041e1760b718f742df
Version Created
October 13, 2025
Run on Replicate →