defaulta camel smoking a cigarette, hd, high quality
typetext
{
"height": 384,
"mp4": false,
"negative_prompt": "blurry",
"prompt": "go-pro video of a polar bear diving in the ocean, 8k, HD, dslr, nature footage",
"scheduler": "EulerAncestralDiscreteScheduler",
"seed": 6226,
"steps": 30,
"width": 672
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_XG3**********************************
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/hotshot-xl using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"lucataco/hotshot-xl:78b3a6257e16e4b241245d65c8b2b81ea2e1ff7ed4c55306b511509ddbfd327a",
{
input: {
height: 384,
mp4: false,
negative_prompt: "blurry",
prompt: "go-pro video of a polar bear diving in the ocean, 8k, HD, dslr, nature footage",
scheduler: "EulerAncestralDiscreteScheduler",
seed: 6226,
steps: 30,
width: 672
}
}
);
// 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_XG3**********************************
This is your API token. Keep it to yourself.
import replicate
Run lucataco/hotshot-xl using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lucataco/hotshot-xl:78b3a6257e16e4b241245d65c8b2b81ea2e1ff7ed4c55306b511509ddbfd327a",
input={
"height": 384,
"mp4": False,
"negative_prompt": "blurry",
"prompt": "go-pro video of a polar bear diving in the ocean, 8k, HD, dslr, nature footage",
"scheduler": "EulerAncestralDiscreteScheduler",
"seed": 6226,
"steps": 30,
"width": 672
}
)
# 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_XG3**********************************
This is your API token. Keep it to yourself.
Run lucataco/hotshot-xl 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/hotshot-xl:78b3a6257e16e4b241245d65c8b2b81ea2e1ff7ed4c55306b511509ddbfd327a",
"input": {
"height": 384,
"mp4": false,
"negative_prompt": "blurry",
"prompt": "go-pro video of a polar bear diving in the ocean, 8k, HD, dslr, nature footage",
"scheduler": "EulerAncestralDiscreteScheduler",
"seed": 6226,
"steps": 30,
"width": 672
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "fp0vk4gj81rm80ckkqarajhzk0",
"model": "lucataco/hotshot-xl",
"version": "78b3a6257e16e4b241245d65c8b2b81ea2e1ff7ed4c55306b511509ddbfd327a",
"input": {
"height": 384,
"mp4": false,
"negative_prompt": "blurry",
"prompt": "go-pro video of a polar bear diving in the ocean, 8k, HD, dslr, nature footage",
"scheduler": "EulerAncestralDiscreteScheduler",
"seed": 6226,
"steps": 30,
"width": 672
},
"logs": "Using seed: 6226\nWarning - setting num_images_per_prompt = 1 because video_length = 8\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:08, 3.62it/s]\n 7%|▋ | 2/30 [00:00<00:07, 3.56it/s]\n 10%|█ | 3/30 [00:00<00:07, 3.54it/s]\n 13%|█▎ | 4/30 [00:01<00:07, 3.54it/s]\n 17%|█▋ | 5/30 [00:01<00:07, 3.53it/s]\n 20%|██ | 6/30 [00:01<00:06, 3.53it/s]\n 23%|██▎ | 7/30 [00:01<00:06, 3.52it/s]\n 27%|██▋ | 8/30 [00:02<00:06, 3.52it/s]\n 30%|███ | 9/30 [00:02<00:05, 3.51it/s]\n 33%|███▎ | 10/30 [00:02<00:05, 3.51it/s]\n 37%|███▋ | 11/30 [00:03<00:05, 3.51it/s]\n 40%|████ | 12/30 [00:03<00:05, 3.51it/s]\n 43%|████▎ | 13/30 [00:03<00:04, 3.50it/s]\n 47%|████▋ | 14/30 [00:03<00:04, 3.51it/s]\n 50%|█████ | 15/30 [00:04<00:04, 3.50it/s]\n 53%|█████▎ | 16/30 [00:04<00:03, 3.51it/s]\n 57%|█████▋ | 17/30 [00:04<00:03, 3.51it/s]\n 60%|██████ | 18/30 [00:05<00:03, 3.50it/s]\n 63%|██████▎ | 19/30 [00:05<00:03, 3.50it/s]\n 67%|██████▋ | 20/30 [00:05<00:02, 3.50it/s]\n 70%|███████ | 21/30 [00:05<00:02, 3.50it/s]\n 73%|███████▎ | 22/30 [00:06<00:02, 3.50it/s]\n 77%|███████▋ | 23/30 [00:06<00:02, 3.50it/s]\n 80%|████████ | 24/30 [00:06<00:01, 3.49it/s]\n 83%|████████▎ | 25/30 [00:07<00:01, 3.49it/s]\n 87%|████████▋ | 26/30 [00:07<00:01, 3.50it/s]\n 90%|█████████ | 27/30 [00:07<00:00, 3.49it/s]\n 93%|█████████▎| 28/30 [00:07<00:00, 3.49it/s]\n 97%|█████████▋| 29/30 [00:08<00:00, 3.49it/s]\n100%|██████████| 30/30 [00:08<00:00, 3.49it/s]\n100%|██████████| 30/30 [00:08<00:00, 3.51it/s]\n 0%| | 0/8 [00:00<?, ?it/s]\n 75%|███████▌ | 6/8 [00:00<00:00, 44.13it/s]\n100%|██████████| 8/8 [00:00<00:00, 32.33it/s]",
"output": "https://replicate.delivery/xezq/dPpsLJkQgUZ5LtiPM9kFmrnrAQPnI2ubuCfzixAkvZKk3I8JA/output.gif",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2024-12-06T21:16:47.04Z",
"started_at": "2024-12-06T21:16:47.047748Z",
"completed_at": "2024-12-06T21:16:56.997655Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/fp0vk4gj81rm80ckkqarajhzk0/cancel",
"get": "https://api.replicate.com/v1/predictions/fp0vk4gj81rm80ckkqarajhzk0",
"stream": "https://stream.replicate.com/v1/files/bcwr-nphtq4xfv2idpug6zr2kgprs6ptagunhqglkb5mqjry6eh6ixq3a",
"web": "https://replicate.com/p/fp0vk4gj81rm80ckkqarajhzk0"
},
"metrics": {
"predict_time": 9.949907471,
"total_time": 9.957655
}
}