defaultbest quality, 4k, HDR, a tracking shot of a beautiful scene
typetext
{
"aspect_ratio": "16:9",
"cfg": 3,
"length": 97,
"negative_prompt": "low quality, worst quality, deformed, distorted, watermark",
"prompt": "A woman with long brown hair and light skin smiles at another woman with long blonde hair. The woman with brown hair wears a black jacket and has a small, barely noticeable mole on her right cheek. The camera angle is a close-up, focused on the woman with brown hair's face. The lighting is warm and natural, likely from the setting sun, casting a soft glow on the scene. The scene appears to be real-life footage.",
"steps": 30,
"target_size": 640
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_JfO**********************************
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 lightricks/ltx-video using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"lightricks/ltx-video:5ddec822499d46d11a93a92ef87e26adefda6608279d9d35c454e50e5e298d92",
{
input: {
aspect_ratio: "16:9",
cfg: 3,
length: 97,
negative_prompt: "low quality, worst quality, deformed, distorted, watermark",
prompt: "A woman with long brown hair and light skin smiles at another woman with long blonde hair. The woman with brown hair wears a black jacket and has a small, barely noticeable mole on her right cheek. The camera angle is a close-up, focused on the woman with brown hair's face. The lighting is warm and natural, likely from the setting sun, casting a soft glow on the scene. The scene appears to be real-life footage.",
steps: 30,
target_size: 640
}
}
);
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
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_JfO**********************************
This is your API token. Keep it to yourself.
import replicate
Run lightricks/ltx-video using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lightricks/ltx-video:5ddec822499d46d11a93a92ef87e26adefda6608279d9d35c454e50e5e298d92",
input={
"aspect_ratio": "16:9",
"cfg": 3,
"length": 97,
"negative_prompt": "low quality, worst quality, deformed, distorted, watermark",
"prompt": "A woman with long brown hair and light skin smiles at another woman with long blonde hair. The woman with brown hair wears a black jacket and has a small, barely noticeable mole on her right cheek. The camera angle is a close-up, focused on the woman with brown hair's face. The lighting is warm and natural, likely from the setting sun, casting a soft glow on the scene. The scene appears to be real-life footage.",
"steps": 30,
"target_size": 640
}
)
# To access the file URL:
print(output[0].url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output[0].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_JfO**********************************
This is your API token. Keep it to yourself.
Run lightricks/ltx-video 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": "lightricks/ltx-video:5ddec822499d46d11a93a92ef87e26adefda6608279d9d35c454e50e5e298d92",
"input": {
"aspect_ratio": "16:9",
"cfg": 3,
"length": 97,
"negative_prompt": "low quality, worst quality, deformed, distorted, watermark",
"prompt": "A woman with long brown hair and light skin smiles at another woman with long blonde hair. The woman with brown hair wears a black jacket and has a small, barely noticeable mole on her right cheek. The camera angle is a close-up, focused on the woman with brown hair\'s face. The lighting is warm and natural, likely from the setting sun, casting a soft glow on the scene. The scene appears to be real-life footage.",
"steps": 30,
"target_size": 640
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "2g50w9dzh9rj20ckf1rbdbqdfm",
"model": "lightricks/ltx-video",
"version": "5ddec822499d46d11a93a92ef87e26adefda6608279d9d35c454e50e5e298d92",
"input": {
"aspect_ratio": "16:9",
"cfg": 3,
"length": 97,
"negative_prompt": "low quality, worst quality, deformed, distorted, watermark",
"prompt": "A woman with long brown hair and light skin smiles at another woman with long blonde hair. The woman with brown hair wears a black jacket and has a small, barely noticeable mole on her right cheek. The camera angle is a close-up, focused on the woman with brown hair's face. The lighting is warm and natural, likely from the setting sun, casting a soft glow on the scene. The scene appears to be real-life footage.",
"steps": 30,
"target_size": 640
},
"logs": "Random seed set to: 2624027272\nChecking inputs\n====================================\nRunning workflow\n[ComfyUI] got prompt\nExecuting node 85, title: Width and height from aspect ratio 🪴, class type: Width and height from aspect ratio 🪴\nExecuting node 84, title: EmptyLTXVLatentVideo, class type: EmptyLTXVLatentVideo\nExecuting node 71, title: LTXVScheduler, class type: LTXVScheduler\nExecuting node 72, title: SamplerCustom, class type: SamplerCustom\n[ComfyUI]\n[ComfyUI] 0%| | 0/30 [00:00<?, ?it/s]\n[ComfyUI] 3%|▎ | 1/30 [00:00<00:04, 6.37it/s]\n[ComfyUI] 7%|▋ | 2/30 [00:00<00:07, 3.95it/s]\n[ComfyUI] 10%|█ | 3/30 [00:00<00:07, 3.52it/s]\n[ComfyUI] 13%|█▎ | 4/30 [00:01<00:07, 3.34it/s]\n[ComfyUI] 17%|█▋ | 5/30 [00:01<00:07, 3.25it/s]\n[ComfyUI] 20%|██ | 6/30 [00:01<00:07, 3.19it/s]\n[ComfyUI] 23%|██▎ | 7/30 [00:02<00:07, 3.16it/s]\n[ComfyUI] 27%|██▋ | 8/30 [00:02<00:07, 3.14it/s]\n[ComfyUI] 30%|███ | 9/30 [00:02<00:06, 3.12it/s]\n[ComfyUI] 33%|███▎ | 10/30 [00:03<00:06, 3.12it/s]\n[ComfyUI] 37%|███▋ | 11/30 [00:03<00:06, 3.11it/s]\n[ComfyUI] 40%|████ | 12/30 [00:03<00:05, 3.10it/s]\n[ComfyUI] 43%|████▎ | 13/30 [00:04<00:05, 3.10it/s]\n[ComfyUI] 47%|████▋ | 14/30 [00:04<00:05, 3.10it/s]\n[ComfyUI] 50%|█████ | 15/30 [00:04<00:04, 3.10it/s]\n[ComfyUI] 53%|█████▎ | 16/30 [00:05<00:04, 3.10it/s]\n[ComfyUI] 57%|█████▋ | 17/30 [00:05<00:04, 3.09it/s]\n[ComfyUI] 60%|██████ | 18/30 [00:05<00:03, 3.09it/s]\n[ComfyUI] 63%|██████▎ | 19/30 [00:05<00:03, 3.09it/s]\n[ComfyUI] 67%|██████▋ | 20/30 [00:06<00:03, 3.09it/s]\n[ComfyUI] 70%|███████ | 21/30 [00:06<00:02, 3.09it/s]\n[ComfyUI] 73%|███████▎ | 22/30 [00:06<00:02, 3.09it/s]\n[ComfyUI] 77%|███████▋ | 23/30 [00:07<00:02, 3.09it/s]\n[ComfyUI] 80%|████████ | 24/30 [00:07<00:01, 3.09it/s]\n[ComfyUI] 83%|████████▎ | 25/30 [00:07<00:01, 3.09it/s]\n[ComfyUI] 87%|████████▋ | 26/30 [00:08<00:01, 3.09it/s]\n[ComfyUI] 90%|█████████ | 27/30 [00:08<00:00, 3.09it/s]\n[ComfyUI] 93%|█████████▎| 28/30 [00:08<00:00, 3.09it/s]\n[ComfyUI] 97%|█████████▋| 29/30 [00:09<00:00, 3.09it/s]\n[ComfyUI] 100%|██████████| 30/30 [00:09<00:00, 3.09it/s]\nExecuting node 8, title: VAE Decode, class type: VAEDecode\nExecuting node 79, title: Video Combine 🎥🅥🅗🅢, class type: VHS_VideoCombine\n[ComfyUI] 100%|██████████| 30/30 [00:09<00:00, 3.15it/s]\n[ComfyUI] Prompt executed in 11.64 seconds\noutputs: {'79': {'gifs': [{'filename': 'R8_LTX_00001.mp4', 'subfolder': '', 'type': 'output', 'format': 'video/h264-mp4', 'frame_rate': 25.0}]}}\n====================================\nR8_LTX_00001.png\nR8_LTX_00001.mp4",
"output": [
"https://replicate.delivery/yhqm/WjvukHay2258P9UFGYkGiMKr7exu9eeSs27782SR7fBcUiXPB/R8_LTX_00001.mp4"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2024-11-29T15:01:15.274Z",
"started_at": "2024-11-29T15:01:15.28253Z",
"completed_at": "2024-11-29T15:01:27.086103Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/2g50w9dzh9rj20ckf1rbdbqdfm/cancel",
"get": "https://api.replicate.com/v1/predictions/2g50w9dzh9rj20ckf1rbdbqdfm",
"stream": "https://stream.replicate.com/v1/files/qoxq-xwt7eftpueuzod263mpuyywetfgjvpuodiv2xac2oc6wn6blbqyq",
"web": "https://replicate.com/p/2g50w9dzh9rj20ckf1rbdbqdfm"
},
"metrics": {
"predict_time": 11.803572214999999,
"total_time": 11.812103
}
}