defaultA cat walks on the grass, realistic style.
typetext
{
"embedded_guidance_scale": 6,
"flow_shift": 7,
"height": 544,
"negative_prompt": "Ugly",
"num_inference_steps": 40,
"prompt": "A cat walks on the grass, realistic style.",
"seed": 43,
"video_length": 65,
"width": 960
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Zyt**********************************
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 zurk/hunyuan-video-8bit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"zurk/hunyuan-video-8bit:392ce81c5d87a6791d8487644b5835983ef1a197d6d77856333997d234ca582b",
{
input: {
embedded_guidance_scale: 6,
flow_shift: 7,
height: 544,
negative_prompt: "Ugly",
num_inference_steps: 40,
prompt: "A cat walks on the grass, realistic style.",
seed: 43,
video_length: 65,
width: 960
}
}
);
// 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_Zyt**********************************
This is your API token. Keep it to yourself.
import replicate
Run zurk/hunyuan-video-8bit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"zurk/hunyuan-video-8bit:392ce81c5d87a6791d8487644b5835983ef1a197d6d77856333997d234ca582b",
input={
"embedded_guidance_scale": 6,
"flow_shift": 7,
"height": 544,
"negative_prompt": "Ugly",
"num_inference_steps": 40,
"prompt": "A cat walks on the grass, realistic style.",
"seed": 43,
"video_length": 65,
"width": 960
}
)
# 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_Zyt**********************************
This is your API token. Keep it to yourself.
Run zurk/hunyuan-video-8bit 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": "zurk/hunyuan-video-8bit:392ce81c5d87a6791d8487644b5835983ef1a197d6d77856333997d234ca582b",
"input": {
"embedded_guidance_scale": 6,
"flow_shift": 7,
"height": 544,
"negative_prompt": "Ugly",
"num_inference_steps": 40,
"prompt": "A cat walks on the grass, realistic style.",
"seed": 43,
"video_length": 65,
"width": 960
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "pcgh9xbb8hrm80cknc686bkj7r",
"model": "zurk/hunyuan-video-8bit",
"version": "392ce81c5d87a6791d8487644b5835983ef1a197d6d77856333997d234ca582b",
"input": {
"embedded_guidance_scale": 6,
"flow_shift": 7,
"height": 544,
"negative_prompt": "Ugly",
"num_inference_steps": 40,
"prompt": "A cat walks on the grass, realistic style.",
"seed": 43,
"video_length": 65,
"width": 960
},
"logs": "2024-12-09 10:56:51,578-INFO-cog_predictor-seed=43\n2024-12-09 10:56:59,013-INFO-ComfyUI-HunyuanVideoWrapper.utils-Input (height, width, video_length) = (544, 960, 65)\n2024-12-09 10:57:01,472-INFO-ComfyUI-HunyuanVideoWrapper.hyvideo.diffusion.pipelines.pipeline_hunyuan_video-Sampling 65 frames in 17 latents at 960x544 with 40 inference steps\n 0%| | 0/40 [00:00<?, ?it/s]\n 2%|▎ | 1/40 [00:10<06:47, 10.45s/it]\n 5%|▌ | 2/40 [00:19<05:55, 9.36s/it]\n 8%|▊ | 3/40 [00:27<05:34, 9.05s/it]\n 10%|█ | 4/40 [00:36<05:20, 8.90s/it]\n 12%|█▎ | 5/40 [00:45<05:08, 8.82s/it]\n 15%|█▌ | 6/40 [00:53<04:58, 8.79s/it]\n 18%|█▊ | 7/40 [01:02<04:49, 8.77s/it]\n 20%|██ | 8/40 [01:11<04:40, 8.75s/it]\n 22%|██▎ | 9/40 [01:20<04:31, 8.75s/it]\n 25%|██▌ | 10/40 [01:28<04:22, 8.75s/it]\n 28%|██▊ | 11/40 [01:37<04:13, 8.75s/it]\n 30%|███ | 12/40 [01:46<04:04, 8.75s/it]\n 32%|███▎ | 13/40 [01:55<03:56, 8.75s/it]\n 35%|███▌ | 14/40 [02:03<03:47, 8.75s/it]\n 38%|███▊ | 15/40 [02:12<03:38, 8.75s/it]\n 40%|████ | 16/40 [02:21<03:29, 8.75s/it]\n 42%|████▎ | 17/40 [02:29<03:21, 8.75s/it]\n 45%|████▌ | 18/40 [02:38<03:12, 8.75s/it]\n 48%|████▊ | 19/40 [02:47<03:03, 8.75s/it]\n 50%|█████ | 20/40 [02:56<02:54, 8.75s/it]\n 52%|█████▎ | 21/40 [03:04<02:46, 8.75s/it]\n 55%|█████▌ | 22/40 [03:13<02:37, 8.75s/it]\n 57%|█████▊ | 23/40 [03:22<02:28, 8.75s/it]\n 60%|██████ | 24/40 [03:31<02:19, 8.75s/it]\n 62%|██████▎ | 25/40 [03:39<02:11, 8.75s/it]\n 65%|██████▌ | 26/40 [03:48<02:02, 8.75s/it]\n 68%|██████▊ | 27/40 [03:57<01:53, 8.75s/it]\n 70%|███████ | 28/40 [04:06<01:44, 8.75s/it]\n 72%|███████▎ | 29/40 [04:14<01:36, 8.76s/it]\n 75%|███████▌ | 30/40 [04:23<01:27, 8.76s/it]\n 78%|███████▊ | 31/40 [04:32<01:18, 8.76s/it]\n 80%|████████ | 32/40 [04:41<01:10, 8.76s/it]\n 82%|████████▎ | 33/40 [04:50<01:01, 8.76s/it]\n 85%|████████▌ | 34/40 [04:58<00:52, 8.75s/it]\n 88%|████████▊ | 35/40 [05:07<00:43, 8.75s/it]\n 90%|█████████ | 36/40 [05:16<00:35, 8.77s/it]\n 92%|█████████▎| 37/40 [05:25<00:26, 8.76s/it]\n 95%|█████████▌| 38/40 [05:33<00:17, 8.76s/it]\n 98%|█████████▊| 39/40 [05:42<00:08, 8.75s/it]\n100%|██████████| 40/40 [05:51<00:00, 8.76s/it]\n100%|██████████| 40/40 [05:51<00:00, 8.78s/it]\n2024-12-09 11:02:52,817-INFO-ComfyUI-HunyuanVideoWrapper.utils-Allocated memory: memory=11.985 GB\n2024-12-09 11:02:52,817-INFO-ComfyUI-HunyuanVideoWrapper.utils-Max allocated memory: max_memory=17.704 GB\n2024-12-09 11:02:52,817-INFO-ComfyUI-HunyuanVideoWrapper.utils-Max reserved memory: max_reserved=19.467 GB",
"output": "https://replicate.delivery/xezq/IehvJJjySLyIQyDjuxBjOeQwQeqb9trHMpVfZNAPekTUOAJfE/HunyuanVideo_00008.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2024-12-09T10:52:18.116Z",
"started_at": "2024-12-09T10:56:51.580567Z",
"completed_at": "2024-12-09T11:03:14.361471Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/pcgh9xbb8hrm80cknc686bkj7r/cancel",
"get": "https://api.replicate.com/v1/predictions/pcgh9xbb8hrm80cknc686bkj7r",
"stream": "https://stream.replicate.com/v1/files/bcwr-qij7enpot2ct54t2oqifvw6kxn6gxjrulf3zwa6om55ltc5gcczq",
"web": "https://replicate.com/p/pcgh9xbb8hrm80cknc686bkj7r"
},
"metrics": {
"predict_time": 382.780903913,
"total_time": 656.245471
}
}