For the complete documentation index, see llms.txt. This page is also available as Markdown.

Luma Ray-3.2

This documentation is valid for the following list of our models:

  • luma/ray-3.2

Model Overview

Luma Ray-3.2 generates, edits, and reframes videos from text or images with HDR output, multi-keyframe control, and seamless looping.

Setup your API Key

If you don't have an API key yet, use our Quickstart guide.

How to Make a Call

Step-by-Step Instructions

Generating a video involves sequentially calling two endpoints:

  • Create and submit a video generation task. The response contains a generation ID.

  • Poll the retrieval endpoint with that generation ID until the status is completed.

API Schemas

Create a video generation task and send it to the server

post
Body
modelstring · enumRequiredPossible values:
promptstringRequired

Text description of the video to generate.

typestring · enumOptional

Generation kind: "video" (generate / extend), "video_edit", or "video_reframe".

Default: videoPossible values:
resolutionstring · enumOptional

Output resolution.

Default: 720pPossible values:
durationinteger · enumOptional

Clip duration in seconds.

Default: 5Possible values:
aspect_ratiostring · enumOptional

Output aspect ratio.

Default: 16:9Possible values:
loopbooleanOptional

Seamlessly loop the video (creation only).

Default: false
hdrbooleanOptional

Generate HDR output (5s, 720p/1080p only).

Default: false
exr_exportbooleanOptional

Export EXR frames (requires hdr).

Default: false
image_urlstring · uriOptional

Start-frame image URL for image-to-video / extend.

last_image_urlstring · uriOptional

End-frame image URL (first-last-frame).

video_urlstring · uriOptional

Source video URL for editing or reframing.

Responses
200

Successful response.

application/json
idstringRequired

The ID of the generated video.

Example: 60ac7c34-3224-4b14-8e7d-0aa0db708325
statusstring · enumRequired

The current status of the generation task.

Example: completedPossible values:
post/v2/video/generations
200

Successful response.

Retrieve the generated video from the server

Poll this endpoint with the generation_id returned by the submit request. When the status is completed, the response includes the generated video URL.

get
Authorizations
AuthorizationstringRequired

Bearer key

Query parameters
generation_idstringRequiredExample: <REPLACE_WITH_YOUR_GENERATION_ID>
Responses
200Success
application/json
idstringRequired

The ID of the generated video.

Example: 60ac7c34-3224-4b14-8e7d-0aa0db708325
statusstring · enumRequired

The current status of the generation task.

Example: completedPossible values:
get/v2/video/generations
200Success

Code Example

The examples submit a generation task and poll every 15 seconds until the final result is available.

Response

Last updated

Was this helpful?