luma
/
ray-flash-2-720p
Generate 5s and 9s 720p videos, faster and cheaper than Ray 2
- Public
- 4.4K runs
-
$0.06 per second of video
-
Commercial use
- License
Prediction
luma/ray-flash-2-720pOfficial modelIDf5nnc0aq65rmc0cnjgjbrv5ftcStatusSucceededSourceWebTotal durationCreatedInput
- loop
- prompt
- A cinematic anime character intimate closeup, she is sitting at a cafe on a busy city street in the morning, it is cold
- duration
- 5
- aspect_ratio
- 16:9
{ "loop": false, "prompt": "A cinematic anime character intimate closeup, she is sitting at a cafe on a busy city street in the morning, it is cold", "duration": 5, "aspect_ratio": "16:9" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run luma/ray-flash-2-720p using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { loop: false, prompt: "A cinematic anime character intimate closeup, she is sitting at a cafe on a busy city street in the morning, it is cold", duration: 5, aspect_ratio: "16:9" }; const output = await replicate.run("luma/ray-flash-2-720p", { input }); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run luma/ray-flash-2-720p using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "luma/ray-flash-2-720p", input={ "loop": False, "prompt": "A cinematic anime character intimate closeup, she is sitting at a cafe on a busy city street in the morning, it is cold", "duration": 5, "aspect_ratio": "16:9" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run luma/ray-flash-2-720p using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "input": { "loop": false, "prompt": "A cinematic anime character intimate closeup, she is sitting at a cafe on a busy city street in the morning, it is cold", "duration": 5, "aspect_ratio": "16:9" } }' \ https://api.replicate.com/v1/models/luma/ray-flash-2-720p/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-03-14T10:13:16.575014Z", "created_at": "2025-03-14T10:12:44.465000Z", "data_removed": false, "error": null, "id": "f5nnc0aq65rmc0cnjgjbrv5ftc", "input": { "loop": false, "prompt": "A cinematic anime character intimate closeup, she is sitting at a cafe on a busy city street in the morning, it is cold", "duration": 5, "aspect_ratio": "16:9" }, "logs": "Using ray-flash-2 with resolution 720p\nModerating content...\nModeration complete in 0.20sec\nRunning prediction...\nGenerating video...\nGeneration parameters:\n- prompt: A cinematic anime character intimate closeup, she is sitting at a cafe on a busy city street in the morning, it is cold\n- aspect_ratio: 16:9\n- loop: False\n- model: ray-flash-2\n- duration: 5s\n- resolution: 720p\nCompleted...\nGenerated video in 31.53sec\nVIDEO_GENERATION_ID: fbd233d2-0fc1-43c7-b022-7264abfaac28\nDownloading 842683 bytes\nDownloaded 0.80MB in 0.36sec", "metrics": { "predict_time": 32.101484231, "total_time": 32.110014 }, "output": "https://replicate.delivery/xezq/xexTDQWeTTtwy0ghRl7YVWKSj4WYYzTBEbrP939Q6Qn8MbYUA/tmp_a397eyu.mp4", "started_at": "2025-03-14T10:12:44.473529Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-76nf7f6nqxj2htndupsxw2vgtj2acyxhk6olg3tsdgf4ubr4otra", "get": "https://api.replicate.com/v1/predictions/f5nnc0aq65rmc0cnjgjbrv5ftc", "cancel": "https://api.replicate.com/v1/predictions/f5nnc0aq65rmc0cnjgjbrv5ftc/cancel" }, "version": "hidden" }
Generated inUsing ray-flash-2 with resolution 720p Moderating content... Moderation complete in 0.20sec 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, it is cold - aspect_ratio: 16:9 - loop: False - model: ray-flash-2 - duration: 5s - resolution: 720p Completed... Generated video in 31.53sec VIDEO_GENERATION_ID: fbd233d2-0fc1-43c7-b022-7264abfaac28 Downloading 842683 bytes Downloaded 0.80MB in 0.36sec
Prediction
luma/ray-flash-2-720pOfficial modelID12j1d9xejsrme0cnjgkbfea0mmStatusSucceededSourceWebTotal durationCreatedInput
- loop
- prompt
- A snow leopard crouched on a rocky ledge, staring directly at camera, snowflakes falling around it
- duration
- 5
- aspect_ratio
- 16:9
{ "loop": false, "prompt": "A snow leopard crouched on a rocky ledge, staring directly at camera, snowflakes falling around it", "duration": 5, "aspect_ratio": "16:9" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run luma/ray-flash-2-720p using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { loop: false, prompt: "A snow leopard crouched on a rocky ledge, staring directly at camera, snowflakes falling around it", duration: 5, aspect_ratio: "16:9" }; const output = await replicate.run("luma/ray-flash-2-720p", { input }); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run luma/ray-flash-2-720p using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "luma/ray-flash-2-720p", input={ "loop": False, "prompt": "A snow leopard crouched on a rocky ledge, staring directly at camera, snowflakes falling around it", "duration": 5, "aspect_ratio": "16:9" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run luma/ray-flash-2-720p using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "input": { "loop": false, "prompt": "A snow leopard crouched on a rocky ledge, staring directly at camera, snowflakes falling around it", "duration": 5, "aspect_ratio": "16:9" } }' \ https://api.replicate.com/v1/models/luma/ray-flash-2-720p/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-03-14T10:15:49.388330Z", "created_at": "2025-03-14T10:15:17.910000Z", "data_removed": false, "error": null, "id": "12j1d9xejsrme0cnjgkbfea0mm", "input": { "loop": false, "prompt": "A snow leopard crouched on a rocky ledge, staring directly at camera, snowflakes falling around it", "duration": 5, "aspect_ratio": "16:9" }, "logs": "Using ray-flash-2 with resolution 720p\nModerating content...\nModeration complete in 0.17sec\nRunning prediction...\nGenerating video...\nGeneration parameters:\n- prompt: A snow leopard crouched on a rocky ledge, staring directly at camera, snowflakes falling around it\n- aspect_ratio: 16:9\n- loop: False\n- model: ray-flash-2\n- duration: 5s\n- resolution: 720p\nCompleted...\nGenerated video in 31.08sec\nVIDEO_GENERATION_ID: 061bb5b5-65e1-4052-b0ad-f7594a84a516\nDownloading 1400137 bytes\nDownloaded 1.34MB in 0.20sec", "metrics": { "predict_time": 31.469483949, "total_time": 31.47833 }, "output": "https://replicate.delivery/xezq/M9an0UVPbhIfC6d8kTFC1Wb0gQcXY0VH2IHpsWfJprYVPbYUA/tmp63xpvaa6.mp4", "started_at": "2025-03-14T10:15:17.918846Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-n46vewdsizcvociggv5shntnrmvzeyezkoh4dj6r6scn3ssqbnhq", "get": "https://api.replicate.com/v1/predictions/12j1d9xejsrme0cnjgkbfea0mm", "cancel": "https://api.replicate.com/v1/predictions/12j1d9xejsrme0cnjgkbfea0mm/cancel" }, "version": "hidden" }
Generated inUsing ray-flash-2 with resolution 720p Moderating content... Moderation complete in 0.17sec Running prediction... Generating video... Generation parameters: - prompt: A snow leopard crouched on a rocky ledge, staring directly at camera, snowflakes falling around it - aspect_ratio: 16:9 - loop: False - model: ray-flash-2 - duration: 5s - resolution: 720p Completed... Generated video in 31.08sec VIDEO_GENERATION_ID: 061bb5b5-65e1-4052-b0ad-f7594a84a516 Downloading 1400137 bytes Downloaded 1.34MB in 0.20sec
Prediction
luma/ray-flash-2-720pOfficial modelIDbgy8s1fg79rma0cnjgnt9psmhgStatusSucceededSourceWebTotal durationCreatedInput
- loop
- prompt
- A polar bear swimming underwater
- duration
- 5
- aspect_ratio
- 16:9
{ "loop": false, "prompt": "A polar bear swimming underwater", "duration": 5, "aspect_ratio": "16:9" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run luma/ray-flash-2-720p using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { loop: false, prompt: "A polar bear swimming underwater", duration: 5, aspect_ratio: "16:9" }; const output = await replicate.run("luma/ray-flash-2-720p", { input }); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run luma/ray-flash-2-720p using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "luma/ray-flash-2-720p", input={ "loop": False, "prompt": "A polar bear swimming underwater", "duration": 5, "aspect_ratio": "16:9" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run luma/ray-flash-2-720p using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "input": { "loop": false, "prompt": "A polar bear swimming underwater", "duration": 5, "aspect_ratio": "16:9" } }' \ https://api.replicate.com/v1/models/luma/ray-flash-2-720p/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-03-14T10:21:33.640745Z", "created_at": "2025-03-14T10:21:02.394000Z", "data_removed": false, "error": null, "id": "bgy8s1fg79rma0cnjgnt9psmhg", "input": { "loop": false, "prompt": "A polar bear swimming underwater", "duration": 5, "aspect_ratio": "16:9" }, "logs": "Using ray-flash-2 with resolution 720p\nModerating content...\nModeration complete in 0.15sec\nRunning prediction...\nGenerating video...\nGeneration parameters:\n- prompt: A polar bear swimming underwater\n- aspect_ratio: 16:9\n- loop: False\n- model: ray-flash-2\n- duration: 5s\n- resolution: 720p\nCompleted...\nGenerated video in 30.80sec\nVIDEO_GENERATION_ID: 6bab9919-ce99-470c-9838-9e4062f02641\nDownloading 3555361 bytes\nDownloaded 3.39MB in 0.28sec", "metrics": { "predict_time": 31.239155795, "total_time": 31.246745 }, "output": "https://replicate.delivery/xezq/ESnNsqooCLqnGZIe8zxsIE8TpHcZVrWC7xkIdDEWeWOtUbYUA/tmpvneiyc44.mp4", "started_at": "2025-03-14T10:21:02.401590Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-tspzjwtuq24ernqfzpwpwwseeuok7thmfej4l6sd4t6yuetj6qbq", "get": "https://api.replicate.com/v1/predictions/bgy8s1fg79rma0cnjgnt9psmhg", "cancel": "https://api.replicate.com/v1/predictions/bgy8s1fg79rma0cnjgnt9psmhg/cancel" }, "version": "hidden" }
Generated inUsing ray-flash-2 with resolution 720p Moderating content... Moderation complete in 0.15sec Running prediction... Generating video... Generation parameters: - prompt: A polar bear swimming underwater - aspect_ratio: 16:9 - loop: False - model: ray-flash-2 - duration: 5s - resolution: 720p Completed... Generated video in 30.80sec VIDEO_GENERATION_ID: 6bab9919-ce99-470c-9838-9e4062f02641 Downloading 3555361 bytes Downloaded 3.39MB in 0.28sec
Want to make some of these yourself?
Run this model