Luma Dream Machine Ray-2 API

Luma Ray-2 generates high-quality videos from text prompts or images with advanced AI techniques.

Modalities
Image, TextVideo
Price
$0.0796per second
Clip length
5 to 9 s
Released
Dec 2, 2025

Luma Dream Machine Ray-2 overview

Duration
Resolution
Aspect ratio

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

Luma Dream Machine Ray-2 pricing in US dollars
UsagePriceUnit
Video generation$0.0796per 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.

AI/ML API prices in USD per second
ModelPer second
Luma Dream Machine Ray-2$0.0796
Grok Imagine Video 1.5 Preview$0.08
VEED Fabric 1.0$0.08
Veo 3.1 Fast$0.08
Kling 3.0 Standard Image to Video$0.084

How to use the Luma Dream Machine Ray-2 API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
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-2",
  "prompt": "A slow dolly shot through a sunlit greenhouse full of ferns, light dust in the air, natural camera motion"
}'

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.

Start building with Luma Dream Machine Ray-2

Luma Dream Machine Ray-2 API

luma/ray-2

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
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-2",
  "prompt": "A slow dolly shot through a sunlit greenhouse full of ferns, light dust in the air, natural camera motion"
}'