Skip to content

Luma Ray 3.2

Animates an image into a video, from a first frame and optionally a last frame.

Model ID luma-ray-3.2-image-to-video
Task image-to-video
Output video
Family Luma
Status Active

Prices are live, so this page does not show them. GET /v1/models/luma-ray-3.2-image-to-video returns the published price (price), and POST /v1/quotes returns the binding maximum for one request, with the processor that will run it. You are never charged more than the quoted maximum, and failed work is free. See Pricing and quotes.

Send these in input. Omitted parameters take their default; unknown parameters are refused with 422 parameter_unknown. The same schema is input_schema in GET /v1/models/luma-ray-3.2-image-to-video.

Name Type Default Allowed Required Description
prompt string 1 to 6000 characters Yes Describe how the start frame moves, or what happens between the keyframes. A second image is the end frame.
duration integer 5 5 to 5 No Length of the video. Longer videos cost more. In seconds.
resolution string 720p 540p, 720p, 1080p No Output resolution. Higher resolutions cost more.
loop boolean false No The last frame flows back into the first. Not with an end frame, HDR or 10 seconds.
dynamic_range string sdr sdr, hdr No HDR makes a 10-bit HDR10 video (720p or 1080p, 5 s) and costs more.

Each media input takes an asset ID (asset_…), a generation ID (gen_…, its first output), a public HTTPS URL or a small data: URI. URLs and data URIs are imported into the project first; see Uploading media.

Name Accepts How many Required Notes
first_frame image 1 No
last_frame image 1 No
keyframes image 0 to 64 No Each item is { "media": …, "at": seconds }: when the keyframe appears. Keyframes pin images to moments in the video, in place of a start and end frame. Up to 64, each at its own time.

Price the request first. A quote is free and starts nothing:

Quote
curl https://api.halationlab.ai/v1/quotes \
-H "Authorization: Bearer $HALATIONLAB_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d @- <<'JSON'
{
"model": "luma-ray-3.2-image-to-video",
"input": {
"prompt": "The ball rolls slowly to the right, soft studio light",
"duration": 5
}
}
JSON

Then start it, paying at most MAX_COST tokens. If the price is higher, nothing starts and the 402 max_cost_exceeded answer carries the quote:

Generate
MAX_COST=${MAX_COST:?Set MAX_COST to the most you will pay, in tokens}
curl https://api.halationlab.ai/v1/generations \
-H "Authorization: Bearer $HALATIONLAB_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Prefer: wait=60" \
-H "Content-Type: application/json" \
-d @- <<JSON
{
"model": "luma-ray-3.2-image-to-video",
"input": {
"prompt": "The ball rolls slowly to the right, soft studio light",
"duration": 5
},
"max_cost": $MAX_COST
}
JSON