Luma Ray Flash 2 API
by Luma
Fast Luma Ray for previewing.
- 9s
- Max clip length
- ~60s
- Avg. generation
- 51 credits
- From
luma-ray-flash-2
Video model
Playground
Try Luma Ray Flash 2 right here.
Your output lands here. Hit generate to run this request in Studio.
Pricing
Simple per-generation pricing.
51–92 credits per generation ≈ $0.51–$0.92
The rate depends on the resolution and options you pick.
- You only pay for successful generations. Failed jobs are refunded automatically.
- One credit balance across every model on Apiframe, no per-model plans.
- Start with free credits. No subscription required.
- Volume discounts on larger plans.
Specs
At a glance.
Quickstart
How to call the Luma Ray Flash 2 API.
Send one POST /v2/videos/generate request with your API key. The call returns a jobId you can poll, or pass a webhook_url and the result is pushed to you the moment it's ready.
Swap luma-ray-flash-2 for any other model and nothing else changes.
const response = await fetch("https://api.apiframe.ai/v2/videos/generate", {
method: "POST",
headers: {
"X-API-Key": "afk_your_api_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
"prompt": "a cinematic sunrise over a futuristic cityscape, smooth camera push-in",
"model": "luma-ray-flash-2",
"lumaParams": {
"start_image": "https://example.com/input.jpg",
"end_image": "https://example.com/input.jpg",
"loop": false
}
}),
});
const { jobId } = await response.json();
console.log(jobId); Input schema
Every field Luma Ray Flash 2 accepts, with types and defaults. The full reference lives in the docs.
| Field | Type | Description |
|---|---|---|
| prompt required | string | Text description of what to generate. |
| model required | string | The model identifier for this endpoint. Default:"luma-ray-flash-2" · "luma-ray-flash-2" |
| lumaParams.start_image | string (URL) | Use a still as the first frame of the clip. |
| lumaParams.end_image | string (URL) | Optional last frame to control the ending. |
| lumaParams.loop | boolean | Make the clip loop seamlessly. Default:false |
The Luma flagship
Luma Ray Flash 2 is one of 2 Luma video models on Apiframe. The full editorial page (showcase, comparison, and use cases) lives on the flagship.
Dream Machine cinematography, with keyframes and loops.
Explore Luma Ray 2 All video modelsLuma Ray Flash 2 questions
What teams ask before shipping with Luma Ray Flash 2. Everything else lives in the docs.
Is there an API for Luma Ray Flash 2?
Yes. Apiframe exposes Luma Ray Flash 2 through a single REST endpoint (POST /v2/videos/generate with model: "luma-ray-flash-2"). You get one unified API, key, and billing across every supported model, with no separate Luma account required.
How much does the Luma Ray Flash 2 API cost?
Luma Ray Flash 2 uses simple pay-as-you-go pricing on Apiframe. You only pay for successful generations. See the pricing page for plans and volume discounts.
How do I call the Luma Ray Flash 2 API?
Send a POST request to /v2/videos/generate with your X-API-Key and a JSON body containing model: "luma-ray-flash-2". The call returns a jobId; poll GET /v2/jobs/{id} or use a webhook to receive the result.
What parameters does Luma Ray Flash 2 support?
Luma Ray Flash 2 accepts 3 model-specific parameters (nested under lumaParams) plus the common prompt and webhook_url fields. See the input schema above for the full list with types and defaults.
Related models
All video modelsFlux 3
by Black Forest Labs
Black Forest Labs' multimodal model — up to 20s of video with synchronized audio from text, images, or a clip.
View modelVeo 3.1
by Google
Google's flagship cinematic video model with audio.
View modelSora 2 Pro
by OpenAI
Highest-quality Sora 2 tier with HD option.
View modelKling 3.0
by Kuaishou
Latest Kling — per-second pricing, optional audio.
View model9,800+
developers & companies
Official partner of
Power your next AI product with Apiframe.
Instant access to 70+ media models through a single API. Start free and scale when you're ready.