Overview
Ray Flash 2 by Luma AI
Its optimized architecture supports fast iteration, preview, and production workflows for professional video, VFX, and multimedia applications.
Ray Flash 2 API Overview
Ray Flash 2 is a cutting-edge video generation model built on Luma’s multi-modal architecture. The model offers accelerated workflows with rapid iterations, real-time previews, and high-fidelity output, making it ideal for professional content creators and developers seeking fast, detailed, and realistic video synthesis.
Technical Specifications
- Output Resolution: Supports up to 720p with high detail preservation.
- Supported Lengths: Generates videos of 5 or 9 seconds duration, suitable for short clips and social media content.
- Input Mode: Text prompts combined with optional start frames or sketches for guided generation.
- Processing Speed: Significantly optimized for rapid iterations, enabling faster preview cycles and production workflows.
- Architecture: Built on a scaled-up multi-modal architecture, with a focus on motion coherence and visual quality.
Key Features
- Fast Iterations & Previews: Designed for accelerated workflows, allowing users to generate previews swiftly during the creative process.
- Realistic, Coherent Motion: Maintains logical and natural motion sequences with physics-based simulations and camera techniques.
- High Fidelity Detailing: Produces photorealistic and visually rich videos with accurate lighting, shadows, and textures.
- Multi-Modal Input: Supports text prompts, start frames, and sketches for flexible content control.
- Scene Complexity Handling: Capable of rendering complex scenes with multiple interacting objects, dynamic environments, and atmospheric effects.
Code Sample
Comparison with Other Models
vs Luma Ray 2: Ray Flash 2 is a distilled, faster variant of Luma Ray 2, offering up to three times faster video generation and costing less while retaining strong video realism. Ray 2 provides higher fidelity and supports more complex animations, but at slower speeds and higher resource usage.
vs Luma Ray 1.6: Compared to Luma Ray 1.6, Ray Flash 2 offers improved speed, much higher resolution (up to 720p), and better motion coherence. Ray 1.6 produces shorter, lower-resolution videos with less natural motion.
vs Synthesia: Ray Flash 2 excels in photorealistic video content creation with coherent scene dynamics, while Synthesia focuses on real-time avatar animations and lip-sync for interactive video content. Ray Flash 2 is more suitable for cinematic and complex video generation.
Pricing
| Usage | Price | Unit |
|---|---|---|
| Usage | $0.0274 | per 1M pixels |
Quick start
View docs (opens in a new tab)Build with your agent
Give your agent the model details, code and documentation.
1Get your API key
Create API key (opens in a new tab)export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"2Make your first request
curl 'https://api.aimlapi.com/v2/video/generations' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "luma/ray-flash-2",
"prompt": "A slow dolly shot through a sunlit greenhouse full of ferns, light dust in the air, natural camera motion"
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "luma/ray-flash-2",
"prompt": "A slow dolly shot through a sunlit greenhouse full of ferns, light dust in the air, natural camera motion"
}
response = requests.post("https://api.aimlapi.com/v2/video/generations", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v2/video/generations", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "luma/ray-flash-2",
"prompt": "A slow dolly shot through a sunlit greenhouse full of ferns, light dust in the air, natural camera motion"
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());The request returns a generation id. Poll GET https://api.aimlapi.com/v2/video/generations?generation_id=<id> until the status is completed.
Frequently asked questions
What inputs and outputs does Ray Flash 2 support?
Ray Flash 2 takes image, text as input and returns video.
When was Ray Flash 2 released?
Ray Flash 2 became available on December 2, 2025.
How is Ray Flash 2 billed?
Ray Flash 2 is billed per generation, a fixed charge per output rather than by prompt length.
Can Ray Flash 2 take an existing image as input?
Yes, Ray Flash 2 accepts image input as well as a text prompt.
Who created Ray Flash 2?
Ray Flash 2 was built by Luma AI.
How do I call Ray Flash 2 on AI/ML API?
Send a request to v2/video/generations with luma/ray-flash-2 as the model id.
Is Ray Flash 2 available through a single API key?
Yes. Ray Flash 2 is served through AI/ML API, so the same key and endpoint format used for other models applies.
What is Luma Ray Flash 2?
Ray Flash 2 is a video generation model from Luma AI, designed to be faster and more cost-effective than other Luma models.