typetext
{
"aspect_ratio": "match_input_image",
"conditioning_frames": 21,
"denoise_strength": 0.4,
"downscale_factor": 0.667,
"final_inference_steps": 10,
"fps": 24,
"go_fast": true,
"guidance_scale": 3,
"max_duration_seconds": 60,
"negative_prompt": "worst quality, inconsistent motion, blurry, jittery, distorted",
"num_frames": 257,
"num_inference_steps": 24,
"prompt": "A serene mountain landscape at sunrise. The camera slowly pans across snow-capped peaks as golden light spreads across the valleys. Morning mist rises from the forest below while eagles soar in the distance. The scene transitions from cool blue shadows to warm golden sunlight as the sun climbs higher in the sky",
"resolution": 480
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_IXS**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run lucataco/ltx-video-0.9.8-distilled using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"lucataco/ltx-video-0.9.8-distilled:6757cbcee0253dca9e6c4df0e026c009b58673bbaaf1d88d3f4058cfc692fba5",
{
input: {
aspect_ratio: "match_input_image",
conditioning_frames: 21,
denoise_strength: 0.4,
downscale_factor: 0.667,
final_inference_steps: 10,
fps: 24,
go_fast: true,
guidance_scale: 3,
max_duration_seconds: 60,
negative_prompt: "worst quality, inconsistent motion, blurry, jittery, distorted",
num_frames: 257,
num_inference_steps: 24,
prompt: "A serene mountain landscape at sunrise. The camera slowly pans across snow-capped peaks as golden light spreads across the valleys. Morning mist rises from the forest below while eagles soar in the distance. The scene transitions from cool blue shadows to warm golden sunlight as the sun climbs higher in the sky",
resolution: 480
}
}
);
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_IXS**********************************
This is your API token. Keep it to yourself.
import replicate
Run lucataco/ltx-video-0.9.8-distilled using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lucataco/ltx-video-0.9.8-distilled:6757cbcee0253dca9e6c4df0e026c009b58673bbaaf1d88d3f4058cfc692fba5",
input={
"aspect_ratio": "match_input_image",
"conditioning_frames": 21,
"denoise_strength": 0.4,
"downscale_factor": 0.667,
"final_inference_steps": 10,
"fps": 24,
"go_fast": True,
"guidance_scale": 3,
"max_duration_seconds": 60,
"negative_prompt": "worst quality, inconsistent motion, blurry, jittery, distorted",
"num_frames": 257,
"num_inference_steps": 24,
"prompt": "A serene mountain landscape at sunrise. The camera slowly pans across snow-capped peaks as golden light spreads across the valleys. Morning mist rises from the forest below while eagles soar in the distance. The scene transitions from cool blue shadows to warm golden sunlight as the sun climbs higher in the sky",
"resolution": 480
}
)
# To access the file URL:
print(output.url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_IXS**********************************
This is your API token. Keep it to yourself.
Run lucataco/ltx-video-0.9.8-distilled using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "lucataco/ltx-video-0.9.8-distilled:6757cbcee0253dca9e6c4df0e026c009b58673bbaaf1d88d3f4058cfc692fba5",
"input": {
"aspect_ratio": "match_input_image",
"conditioning_frames": 21,
"denoise_strength": 0.4,
"downscale_factor": 0.667,
"final_inference_steps": 10,
"fps": 24,
"go_fast": true,
"guidance_scale": 3,
"max_duration_seconds": 60,
"negative_prompt": "worst quality, inconsistent motion, blurry, jittery, distorted",
"num_frames": 257,
"num_inference_steps": 24,
"prompt": "A serene mountain landscape at sunrise. The camera slowly pans across snow-capped peaks as golden light spreads across the valleys. Morning mist rises from the forest below while eagles soar in the distance. The scene transitions from cool blue shadows to warm golden sunlight as the sun climbs higher in the sky",
"resolution": 480
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "rrtyt4yxyxrme0cr7rgaq67qjr",
"model": "lucataco/ltx-video-0.9.8-distilled",
"version": "6757cbcee0253dca9e6c4df0e026c009b58673bbaaf1d88d3f4058cfc692fba5",
"input": {
"aspect_ratio": "match_input_image",
"conditioning_frames": 21,
"denoise_strength": 0.4,
"downscale_factor": 0.667,
"final_inference_steps": 10,
"fps": 24,
"go_fast": true,
"guidance_scale": 3,
"max_duration_seconds": 60,
"negative_prompt": "worst quality, inconsistent motion, blurry, jittery, distorted",
"num_frames": 257,
"num_inference_steps": 24,
"prompt": "A serene mountain landscape at sunrise. The camera slowly pans across snow-capped peaks as golden light spreads across the valleys. Morning mist rises from the forest below while eagles soar in the distance. The scene transitions from cool blue shadows to warm golden sunlight as the sun climbs higher in the sky",
"resolution": 480
},
"logs": "Using seed: 39424\nLong video mode: 60s target, ~249 effective frames per segment\nStarting long video generation: 60s at 24fps\nUsing main prompt for all segments: A serene mountain landscape at sunrise. The camera slowly pans across snow-capped peaks as golden li...\nGenerated 6 segments\nGenerating segment 1/6 (0.0s - 10.4s)\n 0%| | 0/12 [00:00<?, ?it/s]\n 8%|▊ | 1/12 [00:00<00:09, 1.12it/s]\n 17%|█▋ | 2/12 [00:01<00:07, 1.27it/s]\n 25%|██▌ | 3/12 [00:02<00:07, 1.18it/s]\n 33%|███▎ | 4/12 [00:03<00:06, 1.15it/s]\n 42%|████▏ | 5/12 [00:04<00:06, 1.13it/s]\n 50%|█████ | 6/12 [00:05<00:05, 1.12it/s]\n 58%|█████▊ | 7/12 [00:06<00:04, 1.11it/s]\n 67%|██████▋ | 8/12 [00:07<00:03, 1.10it/s]\n 75%|███████▌ | 9/12 [00:08<00:02, 1.10it/s]\n 83%|████████▎ | 10/12 [00:08<00:01, 1.10it/s]\n 92%|█████████▏| 11/12 [00:09<00:00, 1.10it/s]\n100%|██████████| 12/12 [00:10<00:00, 1.09it/s]\n100%|██████████| 12/12 [00:10<00:00, 1.12it/s]\n 0%| | 0/2 [00:00<?, ?it/s]\n 50%|█████ | 1/2 [00:05<00:05, 5.53s/it]\n100%|██████████| 2/2 [00:09<00:00, 4.84s/it]\n100%|██████████| 2/2 [00:09<00:00, 4.94s/it]\nSegment 1 complete. Total frames: 249\nGenerating segment 2/6 (10.4s - 20.8s)\nUsing 8 frames from previous segment for conditioning\nIMAGEIO FFMPEG_WRITER WARNING: input image is not divisible by macro_block_size=16, resizing from (853, 480) to (864, 480) to ensure video compatibility with most codecs and players. To prevent resizing, make your input image divisible by the macro_block_size or set the macro_block_size to 1 (risking incompatibility).\n 0%| | 0/12 [00:00<?, ?it/s]\n 8%|▊ | 1/12 [00:00<00:10, 1.05it/s]\n 17%|█▋ | 2/12 [00:01<00:08, 1.20it/s]\n 25%|██▌ | 3/12 [00:02<00:08, 1.12it/s]\n 33%|███▎ | 4/12 [00:03<00:07, 1.09it/s]\n 42%|████▏ | 5/12 [00:04<00:06, 1.07it/s]\n 50%|█████ | 6/12 [00:05<00:05, 1.06it/s]\n 58%|█████▊ | 7/12 [00:06<00:04, 1.06it/s]\n 67%|██████▋ | 8/12 [00:07<00:03, 1.05it/s]\n 75%|███████▌ | 9/12 [00:08<00:02, 1.05it/s]\n 83%|████████▎ | 10/12 [00:09<00:01, 1.05it/s]\n 92%|█████████▏| 11/12 [00:10<00:00, 1.04it/s]\n100%|██████████| 12/12 [00:11<00:00, 1.04it/s]\n100%|██████████| 12/12 [00:11<00:00, 1.06it/s]\n 0%| | 0/2 [00:00<?, ?it/s]\n 50%|█████ | 1/2 [00:05<00:05, 5.71s/it]\n100%|██████████| 2/2 [00:10<00:00, 5.01s/it]\n100%|██████████| 2/2 [00:10<00:00, 5.11s/it]\nBlending 8 transition frames\nSegment 2 complete. Total frames: 498\nGenerating segment 3/6 (20.8s - 31.1s)\nUsing 8 frames from previous segment for conditioning\nIMAGEIO FFMPEG_WRITER WARNING: input image is not divisible by macro_block_size=16, resizing from (853, 480) to (864, 480) to ensure video compatibility with most codecs and players. To prevent resizing, make your input image divisible by the macro_block_size or set the macro_block_size to 1 (risking incompatibility).\n 0%| | 0/12 [00:00<?, ?it/s]\n 8%|▊ | 1/12 [00:00<00:10, 1.05it/s]\n 17%|█▋ | 2/12 [00:01<00:08, 1.20it/s]\n 25%|██▌ | 3/12 [00:02<00:08, 1.12it/s]\n 33%|███▎ | 4/12 [00:03<00:07, 1.09it/s]\n 42%|████▏ | 5/12 [00:04<00:06, 1.07it/s]\n 50%|█████ | 6/12 [00:05<00:05, 1.06it/s]\n 58%|█████▊ | 7/12 [00:06<00:04, 1.05it/s]\n 67%|██████▋ | 8/12 [00:07<00:03, 1.05it/s]\n 75%|███████▌ | 9/12 [00:08<00:02, 1.05it/s]\n 83%|████████▎ | 10/12 [00:09<00:01, 1.05it/s]\n 92%|█████████▏| 11/12 [00:10<00:00, 1.04it/s]\n100%|██████████| 12/12 [00:11<00:00, 1.04it/s]\n100%|██████████| 12/12 [00:11<00:00, 1.06it/s]\n 0%| | 0/2 [00:00<?, ?it/s]\n 50%|█████ | 1/2 [00:05<00:05, 5.72s/it]\n100%|██████████| 2/2 [00:10<00:00, 5.03s/it]\n100%|██████████| 2/2 [00:10<00:00, 5.13s/it]\nBlending 8 transition frames\nSegment 3 complete. Total frames: 747\nGenerating segment 4/6 (31.1s - 41.5s)\nUsing 8 frames from previous segment for conditioning\nIMAGEIO FFMPEG_WRITER WARNING: input image is not divisible by macro_block_size=16, resizing from (853, 480) to (864, 480) to ensure video compatibility with most codecs and players. To prevent resizing, make your input image divisible by the macro_block_size or set the macro_block_size to 1 (risking incompatibility).\n 0%| | 0/12 [00:00<?, ?it/s]\n 8%|▊ | 1/12 [00:00<00:10, 1.05it/s]\n 17%|█▋ | 2/12 [00:01<00:08, 1.20it/s]\n 25%|██▌ | 3/12 [00:02<00:08, 1.12it/s]\n 33%|███▎ | 4/12 [00:03<00:07, 1.09it/s]\n 42%|████▏ | 5/12 [00:04<00:06, 1.07it/s]\n 50%|█████ | 6/12 [00:05<00:05, 1.06it/s]\n 58%|█████▊ | 7/12 [00:06<00:04, 1.06it/s]\n 67%|██████▋ | 8/12 [00:07<00:03, 1.05it/s]\n 75%|███████▌ | 9/12 [00:08<00:02, 1.05it/s]\n 83%|████████▎ | 10/12 [00:09<00:01, 1.05it/s]\n 92%|█████████▏| 11/12 [00:10<00:00, 1.04it/s]\n100%|██████████| 12/12 [00:11<00:00, 1.04it/s]\n100%|██████████| 12/12 [00:11<00:00, 1.06it/s]\n 0%| | 0/2 [00:00<?, ?it/s]\n 50%|█████ | 1/2 [00:05<00:05, 5.72s/it]\n100%|██████████| 2/2 [00:10<00:00, 5.03s/it]\n100%|██████████| 2/2 [00:10<00:00, 5.13s/it]\nBlending 8 transition frames\nSegment 4 complete. Total frames: 996\nGenerating segment 5/6 (41.5s - 51.9s)\nUsing 8 frames from previous segment for conditioning\nIMAGEIO FFMPEG_WRITER WARNING: input image is not divisible by macro_block_size=16, resizing from (853, 480) to (864, 480) to ensure video compatibility with most codecs and players. To prevent resizing, make your input image divisible by the macro_block_size or set the macro_block_size to 1 (risking incompatibility).\n 0%| | 0/12 [00:00<?, ?it/s]\n 8%|▊ | 1/12 [00:00<00:10, 1.06it/s]\n 17%|█▋ | 2/12 [00:01<00:08, 1.20it/s]\n 25%|██▌ | 3/12 [00:02<00:08, 1.12it/s]\n 33%|███▎ | 4/12 [00:03<00:07, 1.09it/s]\n 42%|████▏ | 5/12 [00:04<00:06, 1.07it/s]\n 50%|█████ | 6/12 [00:05<00:05, 1.06it/s]\n 58%|█████▊ | 7/12 [00:06<00:04, 1.05it/s]\n 67%|██████▋ | 8/12 [00:07<00:03, 1.05it/s]\n 75%|███████▌ | 9/12 [00:08<00:02, 1.05it/s]\n 83%|████████▎ | 10/12 [00:09<00:01, 1.05it/s]\n 92%|█████████▏| 11/12 [00:10<00:00, 1.04it/s]\n100%|██████████| 12/12 [00:11<00:00, 1.04it/s]\n100%|██████████| 12/12 [00:11<00:00, 1.06it/s]\n 0%| | 0/2 [00:00<?, ?it/s]\n 50%|█████ | 1/2 [00:05<00:05, 5.68s/it]\n100%|██████████| 2/2 [00:10<00:00, 5.00s/it]\n100%|██████████| 2/2 [00:10<00:00, 5.10s/it]\nBlending 8 transition frames\nSegment 5 complete. Total frames: 1245\nGenerating segment 6/6 (51.9s - 60.0s)\nUsing 8 frames from previous segment for conditioning\nIMAGEIO FFMPEG_WRITER WARNING: input image is not divisible by macro_block_size=16, resizing from (853, 480) to (864, 480) to ensure video compatibility with most codecs and players. To prevent resizing, make your input image divisible by the macro_block_size or set the macro_block_size to 1 (risking incompatibility).\n 0%| | 0/12 [00:00<?, ?it/s]\n 8%|▊ | 1/12 [00:00<00:10, 1.05it/s]\n 17%|█▋ | 2/12 [00:01<00:08, 1.19it/s]\n 25%|██▌ | 3/12 [00:02<00:08, 1.12it/s]\n 33%|███▎ | 4/12 [00:03<00:07, 1.09it/s]\n 42%|████▏ | 5/12 [00:04<00:06, 1.07it/s]\n 50%|█████ | 6/12 [00:05<00:05, 1.06it/s]\n 58%|█████▊ | 7/12 [00:06<00:04, 1.05it/s]\n 67%|██████▋ | 8/12 [00:07<00:03, 1.05it/s]\n 75%|███████▌ | 9/12 [00:08<00:02, 1.05it/s]\n 83%|████████▎ | 10/12 [00:09<00:01, 1.05it/s]\n 92%|█████████▏| 11/12 [00:10<00:00, 1.04it/s]\n100%|██████████| 12/12 [00:11<00:00, 1.04it/s]\n100%|██████████| 12/12 [00:11<00:00, 1.06it/s]\n 0%| | 0/2 [00:00<?, ?it/s]\n 50%|█████ | 1/2 [00:05<00:05, 5.72s/it]\n100%|██████████| 2/2 [00:10<00:00, 5.03s/it]\n100%|██████████| 2/2 [00:10<00:00, 5.13s/it]\nBlending 8 transition frames\nSegment 6 complete. Total frames: 1440\nIMAGEIO FFMPEG_WRITER WARNING: input image is not divisible by macro_block_size=16, resizing from (853, 480) to (864, 480) to ensure video compatibility with most codecs and players. To prevent resizing, make your input image divisible by the macro_block_size or set the macro_block_size to 1 (risking incompatibility).\nLong video generation complete: 1440 frames (60.0s)",
"output": "https://replicate.delivery/xezq/ghNn31n3QeX4A6xW2pDT7bNulie6oXfwuQhqTGUq5y3KUJIqA/output.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-07-24T20:29:58.135Z",
"started_at": "2025-07-24T20:29:58.143924Z",
"completed_at": "2025-07-24T20:33:09.412723Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/rrtyt4yxyxrme0cr7rgaq67qjr/cancel",
"get": "https://api.replicate.com/v1/predictions/rrtyt4yxyxrme0cr7rgaq67qjr",
"stream": "https://stream.replicate.com/v1/files/bcwr-gxb4p7ely4ajkkupsehu67gclvelhkp2vci44bzjmtstqzghupra",
"web": "https://replicate.com/p/rrtyt4yxyxrme0cr7rgaq67qjr"
},
"metrics": {
"predict_time": 191.268798894,
"total_time": 191.277723
}
}