LTX 2.5
ltx-2.5/compositing
A video compositing model released by Lightricks that turns a rough composite with already-placed elements and motion into a coherent shot, unifying edges, lighting, color, and contact shadows while preserving the original motion as much as possible; input videos can be up to 20 seconds long, making it suitable for re-compositing and reimagining existing footage
Try ltx-2.5/compositing
Input
The video to be synthesized; must be a direct HTTPS link. Limits: ≤100MB, ≤20 seconds, 20–60fps, long side 448–3840, short side 256–2176.
Showcases
View all showcasesOutput
Pricing
ltx-2.5/compositing $0.2858 per second
Overview
This is a visual compositing-fusion model for the video post-production and compositing stage. Its input is a publicly accessible HTTPS direct video link of a rough composite in which object positions and motion timing have already been set. Its output reinforces the overall visual cohesion of the frame while preserving the source shot's timing. It suits production teams that need to preserve the original editing rhythm and compositional relationships, and it is also easy to integrate into batch-processing pipelines. Each request must supply video_url; an MP4 that can be read directly is recommended. The optional boolean parameter enable_safety_checker controls whether content safety checking is enabled, and it is on by default.
Key Highlights
- Contact surfaces and shadows verified step by step — mark the contact points between props and the ground before submission, then check frame by frame after output whether contact shadows are continuous and whether there is any floating look, and only then decide whether to resubmit.
- Timing preserved for before-and-after comparison — the output does not change the source frame order or motion timing, so the original and the finished version can be compared side by side segment by segment to quickly locate intervals where occlusion or reflections are not blended in.
- Specifications checked before submission — assets must be no longer than 20 seconds, no larger than 100 MB, at a constant 20–60 fps, with a long side of 448–3840 and a short side of 256–2176 pixels; also note the resolution-dependent frame count limit.
Capability Description
- Prop grounding and contact shadows: for input rough-composite video in which props have already been placed on the ground or a tabletop, the model blends the contact shadows and color transitions between the bottom of the prop and the supporting surface. After output, check frame by frame whether the bottom edge of the prop appears to float and whether the shadows change with the direction of motion; if some segment still looks floating, extract that time range and resubmit it separately. This way of working, with a video in which positions are already set as input, suits pre-delivery checks on product-placement shots.
- Glass reflection and transmission blending: when glass, mirror, or screen elements have already been placed in the rough-composite video, the model harmonizes their edges, lighting, and color so that reflections are more consistent with the surrounding environment. Because no prompt or resolution control is provided, the form of the reflection cannot be specified in text; before delivery, check segment by segment whether the reflection obscures key information about the subject, and if necessary go back to the rough-composite stage to adjust the glass position before resubmitting.
- Motion occlusion and people passing through the foreground: for composited shots in which moving objects occlude the subject or people pass through the foreground, the model preserves the source timing and blends the boundary edges. When using it, first confirm that the occlusion relationships were set correctly at the rough-composite stage; after output, check frame by frame whether the edges jitter or show outlines at the moment of passage, and record the problematic time ranges as acceptance criteria so it is easy to tell whether the issue is composite placement or blending.
- Ambient audio carried over with the source: when the input video has its own audio, the output preserves the original sound from the source input, and the model does not generate new voiceover. Therefore, before delivery, check in the editing software whether the ambient sound is aligned with the picture cut points, especially whether the sound transitions are natural at moments such as people passing through the foreground or props landing. If the sound does not match, go back to the rough-composite stage to adjust the source audio before resubmitting.
Use Cases
- Grounding acceptance for shots where props land — the post-production team submits a rough-composite clip in which props have already been placed on a table, focusing on where the bottom edge of the prop meets the table. Before submission, confirm in the rough composite that the prop positions and motion timing are fixed, and check whether the asset duration, size, frame rate, and resolution are within the allowed range; after output, compare the original and the finished version frame by frame to check whether the contact shadows change continuously as the prop moves and whether there is floating or missing shadow, and note the problematic time ranges in the acceptance checklist. If a segment's shadow is still stiff, extract that time range and resubmit it rather than rerunning the whole clip.
- Blending check for reflections on glass display windows — the advertising production staff submits a rough-composite video in which glass display window elements have been placed, hoping the reflections will be better harmonized with the street lighting. Before submission, confirm that the glass position is already set in the rough composite and ensure the video is a publicly readable direct link; after output, compare with the original segment by segment to check whether the glass edges show bright rims, whether the reflections obscure the product subject, and whether the color is consistent with the surrounding environment. If the reflection is too strong or obscures key information, go back to the rough-composite stage to adjust the glass position or angle before resubmitting, because the model does not accept text descriptions to specify the form of the reflection.
- Occlusion verification for people passing through the foreground — the short-film editor submits composited shots in which a person passes from the foreground across the frame, focusing on the edges and occlusion relationships at the moment of passage. Before submission, confirm that the person's motion timing has been fully set and that the occlusion layers were checked in the rough composite; after output, view the moment of passage frame by frame, check whether the person's edges jitter, whether occluded objects show outlines or flicker, and check whether the footsteps and ambient sound in the source audio are aligned with the picture action. Record problematic frames in the acceptance notes; if the edges are still unstable, extract that time range and submit it separately to narrow down the investigation.
- Segment-by-segment comparison of moving-object occlusion — the visual effects previsualization staff submits rough-composite clips in which moving objects occlude the subject, to evaluate the overall look. Before submission, confirm that the object's motion trajectory and occlusion layers have been set in the rough composite, and check that the asset meets the duration, size, frame rate, and resolution constraints; after output, compare the original and the finished version side by side by time range to check whether edge jitter, lighting jumps, or color shifts appear at the occlusion boundaries, and also confirm that the ambient sound transitions naturally before and after the occlusion occurs. After compiling the problematic time ranges into a list, go back to the rough composite to adjust the object positions, then resubmit individual segments.
Limitations and Selection Advice
The input must be a publicly accessible HTTPS direct video link, at most 20 seconds long, at most 100 MB, with a constant frame rate of 20–60 fps, a long side of 448–3840 and a short side of 256–2176 pixels, and there is a resolution-dependent frame count limit; anything beyond the specifications cannot be processed. The model does not provide a prompt, character parameters, or resolution control, so the form of reflections or occlusion relationships cannot be specified in text; these must be set at the rough-composite stage. The output preserves the source shot's timing, and when audio is present it is carried over from the source input; no voiceover is generated. Billing units are calculated based on the short side and duration of the input video. 720p costs 1 unit per second, 1080p costs 2 units per second, 1440p costs 4 units per second, and 4K costs 8 units per second.
What's new
View changelog →- Parameter change ltx-2.5/compositing parameter update: new properties and x-hiapi-estimated-seconds
- New model New model launch: ltx-2.5/compositing
Frequently asked questions
View all FAQs →-
How is it different from LTX 2.5 Pro image-to-video?
The two differ in input and task: LTX 2.5 Pro image-to-video generates motion from a single image, while LTX 2.5 compositing performs shot integration on existing footage that has already been filmed. If your material already has a shot and you only need to blend visual elements into the scene, use this model; if you only have a static image and want to generate motion, you should choose image-to-video. It does not generate new video from scratch out of text or a single image.
-
What is the maximum length in seconds for an input video?
Clips can be up to 20 seconds long and files up to 100 MB. MP4 files that can be read directly are recommended, and the frame rate must be constant between 20 and 60 fps; there is also a resolution-dependent frame-count limit — the higher the resolution, the fewer frames are available, so for long videos at high resolution, reduce the long side in advance.
-
Does it support 60fps footage?
Yes. The constant frame rate can be up to 60 fps, with a minimum of 20 fps; footage outside this range or with a variable frame rate cannot be guaranteed to be processed. For resolution, the upper limit is 3840 on the long side and 2176 on the short side, and the lower limit is 448 on the long side and 256 on the short side. Check your footage against both of these dimensions at the same time.
-
Is billing per frame or per second?
Billing units are calculated based on the input video's duration and short side. 720p costs 1 unit per second, 1080p costs 2 units per second, 1440p costs 4 units per second, and 4K costs 8 units per second. For example, a 2-second 1080p video is billed at 4 units.
Create a generation task
https://api.hiapi.sh/v1/tasks Headers
AuthorizationstringRequiredAccount API key. Required on every request. Example: Bearer YOUR_HIAPI_API_KEY. Get your API key
Content-TypestringOptionalThe request body is always parsed as JSON; when sent, only application/json (optionally with charset) is accepted — any other value returns 415. Example: application/json.
Idempotency-KeystringOptionalIdempotency key, up to 255 bytes. Retries with the same key from the same account create the task only once; replays return the original taskId.
On network timeouts or client retries, the same key creates the task only once — no double charges (scope: the API key's account). Use a business-unique identifier as the key (e.g. "order-42"); replays return the original taskId, and keys expire 24 hours after the first request. See the Unified Async API overview for the full scenario matrix.
Body
modelstringRequiredCurrent fixed value: ltx-2.5/compositing
routestringOptionalCurrent fixed value: default
inputobjectRequired
Business parameters for ltx-2.5/compositing and route default — see the parameter table below.
video_urlstringRequiredpattern ^https://Required. A publicly accessible HTTPS direct link to the input video; MP4 is recommended. Maximum duration 20 seconds, maximum file size 100 MB, constant frame rate 20–60 fps. Priced at 1080p; it is recommended that the input video not exceed 1080p.
enable_safety_checkerbooleanOptionalDefault: trueWhether to enable content safety checking. Boolean, optional, default true.
callbackobjectOptional
Terminal-state notification config. When omitted, no callback is delivered — poll the task yourself. See the callback note below.
Provide callback.url when creating a task and HiAPI POSTs to your service once the task reaches a terminal state — no polling needed. The callback payload mirrors the task detail structure; signature verification, delivery retries and idempotency are documented on the Unified Async API overview page.
urlstringRequiredRequired when callback is present. A POST is sent to this URL once the task reaches a terminal state; must be a valid http(s) URL.
whenstringOptionalDefault: "final"Only final is supported today — notified on both success and fail.
finalstoragestringOptionalDefault: "temp"Artifact storage tier: temp (default, retained about 7 days) or persistent (long-term, billed by size). Insufficient balance or exceeding the storage cap silently downgrades to temp; the effective tier is shown in the task detail response.
temppersistentRequest examples
# Submit an async task; returns a taskId immediately (no waiting for generation)
curl -X POST "https://api.hiapi.sh/v1/tasks" \
-H "Authorization: Bearer $HIAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "ltx-2.5/compositing",
"input": {
"video_url": "…",
"enable_safety_checker": true
}
}' const res = await fetch("https://api.hiapi.sh/v1/tasks", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HIAPI_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "ltx-2.5/compositing",
input: {
"video_url": "…",
"enable_safety_checker": true
}
}),
});
const task = await res.json();
// { code: 200, message: "success", data: { taskId } } import os, requests
res = requests.post(
"https://api.hiapi.sh/v1/tasks",
headers={"Authorization": f"Bearer {os.environ['HIAPI_API_KEY']}"},
json={
"model": "ltx-2.5/compositing",
"input": {
"video_url": "…",
"enable_safety_checker": True
}
},
)
print(res.json()) # { code, message, data: { taskId } } 200 OK
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-01HZTQ8BX2N3GM3YFK4Z9D7VQR"
}
} 400 Bad Request
{
"code": 400,
"message": "invalid request",
"data": null,
"error_code": "INVALID_REQUEST"
} Get task detail
https://api.hiapi.sh/v1/tasks/:id Response fields
taskIdstringRequiredTask ID, always prefixed with tk-hiapi-.
modelstringRequiredResolved full model name. Tasks submitted with the route parameter return base@route (e.g. gpt-image-2/text-to-image@ext); otherwise identical to the name passed at creation.
routestringOptionalPresent only when the task was submitted with an explicit route parameter; echoes the submitted value.
statusstringRequiredTask status.
queued Queued, not started yet.
handling Being processed.
archiving Processing finished, artifacts being prepared.
success Terminal: completed, artifacts available (output returned).
fail Terminal: failed (error returned).
After submission, check status: success and fail are terminal, everything else is non-terminal. Poll every 1–3 seconds until terminal. On success, download artifacts from output[].url and transfer them before expireAt; pass storage: "persistent" at creation time when long-term retention is needed.
creatednumberRequiredTask creation time (Unix seconds).
completednumberRequiredUnix seconds when the task reached a terminal state; fixed to 0 while not terminal.
outputarrayOptional
Present only when status == success. Artifact list — always an array; a single task may return multiple types at once (e.g. video + first_frame).
Array [ object ]
Array items
urlstringRequiredArtifact URL, directly downloadable.
typestringRequiredCurrent possible values: video, image, audio, first_frame, last_frame, thumbnail; more may be added later.
expireAtnumberRequiredUnix seconds until which the artifact remains accessible; download or transfer before it expires.
errorobjectOptional
Present only when status == fail.
codestringRequiredBusiness error code.
messagestringRequiredError description.
Response examples
Success
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-01HZTQ8BX2N3GM3YFK4Z9D7VQR",
"model": "happyhorse-1-0",
"status": "success",
"created": 1777282033,
"completed": 1777282099,
"output": [
{
"url": "https://cdn.hiapi.ai/tasks/.../video.mp4",
"type": "video",
"expireAt": 1777886899
}
]
}
} Processing (non-terminal)
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-...",
"model": "happyhorse-1-0",
"status": "archiving",
"created": 1777282033,
"completed": 0
}
} Failed
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-...",
"model": "happyhorse-1-0",
"status": "fail",
"created": 1777282033,
"completed": 1777282099,
"error": {
"code": "TASK_FAILED",
"message": "task failed"
}
}
} Articles
View all articles →-
Tutorial
Integrating a Gallery Guide into Existing Footage: A Practical Guide to LTX 2.5 Compositing
-
Comparison
Existing-clip compositing, image-to-video, and manual post-production: how developers should choose
-
Guide
Getting Started with LTX 2.5 Video Compositing: The First Step to Sending Rough Composite Shots into the Model
From a readable video_url to output acceptance, a clear single-shot fusion path
Related Models
View all models →Same Type
-
Kling 2.5 Kuaishou $0.090 /second -
LTX 2.5 Pro Lightricks $0.172 /second -
P-Video 2 Pro Replace Pruna AI $0.036 /second -
Gemini Omni 1.2 Google $0.023 /second -
Wan 2.2 Animate Alibaba $0.043 /second -
HeyGen Avatar 6 Turbo HeyGen $0.071 /second -
PixVerse V6 PixVerse $0.036 /second -
Kling 4.0 Kuaishou $0.204 /second -
Veo 3.1 Google $0.290 /second -
MiniMax H3 MiniMax $0.072 /second -
Runway Aleph 2 Runway $0.480 /second -
Seedance 2.0 ByteDance $0.009 /second