Luma Ray-3.2
Model Overview
Setup your API Key
How to Make a Call
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 · enumOptionalDefault:
Generation kind: "video" (generate / extend), "video_edit", or "video_reframe".
videoPossible values: resolutionstring · enumOptionalDefault:
Output resolution.
720pPossible values: durationinteger · enumOptionalDefault:
Clip duration in seconds.
5Possible values: aspect_ratiostring · enumOptionalDefault:
Output aspect ratio.
16:9Possible values: loopbooleanOptionalDefault:
Seamlessly loop the video (creation only).
falsehdrbooleanOptionalDefault:
Generate HDR output (5s, 720p/1080p only).
falseexr_exportbooleanOptionalDefault:
Export EXR frames (requires hdr).
falseimage_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
idstringRequiredExample:
The ID of the generated video.
60ac7c34-3224-4b14-8e7d-0aa0db708325statusstring · enumRequiredExample:
The current status of the generation task.
completedPossible values: post/v2/video/generations
200
Successful response.
Retrieve the generated video from the server
get
Authorizations
AuthorizationstringRequired
Bearer key
Query parameters
generation_idstringRequiredExample:
<REPLACE_WITH_YOUR_GENERATION_ID>Responses
200Success
application/json
idstringRequiredExample:
The ID of the generated video.
60ac7c34-3224-4b14-8e7d-0aa0db708325statusstring · enumRequiredExample:
The current status of the generation task.
completedPossible values: get/v2/video/generations
200Success
Code Example
Last updated
Was this helpful?