Luma Dream Machine Ray-2 overview
Luma Dream Machine Ray-2 specs
- Model ID
luma/ray-2- Developer
- Luma AI
- Input
- Image, Text
- Output
- Video
- Endpoint
POST https://api.aimlapi.com/v2/video/generations
What is Luma Dream Machine Ray-2 API?
Luma Ray-2 generates high-quality videos from text prompts or images with advanced AI techniques.
Luma Dream Machine Ray-2 API Pricing
- Pricing on request
Where to Use Luma Dream Machine Ray-2
Use cases
Product ideation and early concept visualization are documented use cases for Ray2, including rapidly creating video mockups of product ideas to speed decision-making and iteration.
Product promotion and brand storytelling are also listed uses, with Ray2 described as suitable for generating video clip content to showcase products or services.
Previsualization for film and entertainment workflows is another documented use case, including creating initial versions of special effects sequences, realistic green-screen backgrounds, and concept footage.
Luma Dream Machine Ray-2 API pricing
| Usage | Price | Unit |
|---|---|---|
| Video generation | $0.0796 | per second |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
Luma Dream Machine Ray-2 vs other video models: prices
AI/ML API rates for 5 models, per second.
| Model | Per second |
|---|---|
| $0.0796 | |
| $0.08 | |
| $0.08 | |
| $0.08 | |
| $0.084 |
How to use the Luma Dream Machine Ray-2 API
View docsBuild with your agent
Give your agent the model details, code and documentation.
1Get your API key
Create API keyexport 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-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-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-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.
Luma Dream Machine Ray-2 FAQ
What inputs and outputs does Luma Dream Machine Ray-2 support?
Luma Dream Machine Ray-2 takes image, text as input and returns video.
When was Luma Dream Machine Ray-2 released?
Luma Dream Machine Ray-2 became available on December 2, 2025.
How much does Luma Dream Machine Ray-2 cost?
Luma Dream Machine Ray-2 costs $0.0796 per second on AI/ML API, billed as you go with no subscription.
How is Luma Dream Machine Ray-2 billed?
Luma Dream Machine Ray-2 costs $0.0796 per second on AI/ML API, billed as you go with no subscription.
Can Luma Dream Machine Ray-2 take an existing image as input?
Yes, Luma Dream Machine Ray-2 accepts image input as well as a text prompt.
Who created Luma Dream Machine Ray-2?
Luma Dream Machine Ray-2 was built by Luma AI.
How do I call Luma Dream Machine Ray-2 on AI/ML API?
Use luma/ray-2 as the model id on AI/ML API.
Is Luma Dream Machine Ray-2 available through a single API key?
Yes. Luma Dream Machine Ray-2 is served through AI/ML API, so the same key and endpoint format used for other models applies.
What is the Luma Dream Machine Ray-2 model ID?
Use luma/ray-2 as the model parameter. Requests go to https://api.aimlapi.com/v2/video/generations with your AI/ML API key.