Ray Flash 2 API

Luma Ray-Flash-2 is a faster, more cost-effective model for video generation.

Modalities
Text, Image, VideoVideo
Price
$0.0274per 1M pixels
Clip length
5 to 9 s
Released
Dec 2, 2025

Ray Flash 2 overview

Duration
Resolution
Aspect ratio

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 specs

Model ID
luma/ray-flash-2
Developer
Luma AI
Input
Text, Image, Video
Output
Video
Endpoint
POST https://api.aimlapi.com/v2/video/generations

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.

Performance Benchmarks

  • Compute Scale: 10x increase in computational capacity over previous versions, ensuring high-quality outputs in reduced times.​
  • Generation Speed: Rapid synthesis with multiple frames per second, supporting quick iteration cycles for professional workflows.​
  • Visual Quality: Near-photorealistic results with advanced motion coherence and scene understanding, surpassing many industry-standard models.

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.

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.

Use cases

  • Film & Video Production: Rapid prototyping of cinematic scenes, environmental simulations, and character animation.​
  • Advertising & Marketing: Creation of short, engaging promotional videos with realistic motion effects.​
  • Visual Effects (VFX): Integration of realistic visual effects and surrealist sequences.​
  • Educational Content: Generating illustrative videos with complex dynamics and physics simulations.

Ray Flash 2 API pricing

Ray Flash 2 pricing in US dollars
UsagePriceUnit
Video generation$0.0274per 1M pixels

Prices from the AI/ML API price list, checked on Nov 4, 2026.

Ray Flash 2 vs other video models: prices

AI/ML API rates for 3 models, per 1M pixels.

AI/ML API prices in USD per 1M pixels
ModelPer 1M pixels
Ray Flash 2$0.0274
Ray 3.2$0.06
Ray 2$0.0796

How to use the Ray Flash 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-flash-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.

Related articles

All posts

Ray Flash 2 FAQ

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 much does Ray Flash 2 cost?

Ray Flash 2 costs $0.0274 per 1M pixels on AI/ML API, billed as you go with no subscription.

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.

What is the Ray Flash 2 model ID?

Use luma/ray-flash-2 as the model parameter. Requests go to https://api.aimlapi.com/v2/video/generations with your AI/ML API key.

Start building with Ray Flash 2

Ray Flash 2 API

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