LU

Model profile

Ray 2

Built by Luma AI

Ray 2 is a Luma video-generation model exposed by the Dream Machine API. The generation endpoint accepts a prompt, optional keyframes and looping, and supports multiple aspect ratios, resolutions, and five- or nine-second durations.[1]

CategoryVideo Generation
Directory statusCatalogued
Official model cardVisit source โ†—

Developer snapshot

Key specifications

Verified Jul 18, 2026

Modality
Prompt/keyframes to video[1]
API model ID
ray-2[1]
Durations
5s or 9s[1]
Resolution options
540p to 4K[1]
Aspect ratios
7 documented options[1]
Completion delivery
Polling or callback[1]

Technical profile

What developers should know

01

Generation contract

The Dream Machine video endpoint defaults to ray-2 and also lists ray-flash-2. A request can include a text prompt, aspect ratio, loop setting, keyframes, resolution, duration, concepts, and a callback URL.[1]

02

Resolution and duration are separate controls

The documented request schema lists 540p, 720p, 1080p, and 4K resolution values, plus five- and nine-second durations. Availability or cost for a particular combination should be checked at request time rather than inferred from the enum alone.[1]

03

Asynchronous workflow

Creating a generation returns a generation object, while callback delivery can report dreaming, completed, or failed states. Integrations should make callbacks idempotent and preserve failure details for retry decisions.[1]

Choose the artifact

Official checkpoints

Use the exact documented model or endpoint identifier and record input assets, parameters, output metadata, and failure states for reproducible media workflows.[1]

Deployment note

Validate the requested resolution and duration combination with the current API, use an authenticated callback endpoint, and make completion handling idempotent because status delivery can be retried.[1]