Luma Ray2
Luma
Luma Ray2
POST
Luma Ray2
Luma Dream Machine Ray2 for text-to-video and image-to-video.
Authorizations
API Key for API endpoints
Body
Text prompt for video generation
Initial image to start the video from.
Final image to end the video with.
The aspect ratio of the generated video
Available options:
16:9, 9:16, 4:3, 3:4, 21:9, 9:21 Whether the video should loop
The resolution of the generated video
Available options:
540p, 720p, 1080p Duration of the video in seconds.
Number of results to generate (1-4)
Required range:
1 <= x <= 4Response
Generation submission accepted
Generation id.
Queue status
Available options:
IN_QUEUE, IN_PROGRESS, COMPLETED, FAILED, CANCELED Normalized input payload for the generation task.
Credit usage breakdown for the request
Machine-readable generation error code. Present when status is FAILED.
Sanitized human-readable failure message. Present when status is FAILED.