defaultAn astronaut riding a horse
typetext
{
"batch_size": 1,
"fps": 12,
"guidance_scale": 17.5,
"height": 576,
"init_video": "https://replicate.delivery/pbxt/J9ae4dEYlbcHZxek5BoW30IYf3c4vIyUwzMCiuhFeK6Zak7l/bae77d23-e215-4999-89a2-42ca9912b234.mp4",
"init_weight": 0.15,
"model": "xl",
"negative_prompt": "sparkles, garish, weird, photography, dust, noisy, washed out, ugly, distorted, broken",
"num_frames": 24,
"num_inference_steps": 50,
"prompt": "perfect face, anime, studio ghibli style animation, detailed anime, hd, high resolution, pink hair, cherry blossom, flower in hair, animation",
"width": 1024
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_e5o**********************************
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 anotherjesse/zeroscope-v2-xl using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"anotherjesse/zeroscope-v2-xl:71996d331e8ede8ef7bd76eba9fae076d31792e4ddf4ad057779b443d6aea62f",
{
input: {
batch_size: 1,
fps: 12,
guidance_scale: 17.5,
height: 576,
init_video: "https://replicate.delivery/pbxt/J9ae4dEYlbcHZxek5BoW30IYf3c4vIyUwzMCiuhFeK6Zak7l/bae77d23-e215-4999-89a2-42ca9912b234.mp4",
init_weight: 0.15,
model: "xl",
negative_prompt: "sparkles, garish, weird, photography, dust, noisy, washed out, ugly, distorted, broken",
num_frames: 24,
num_inference_steps: 50,
prompt: "perfect face, anime, studio ghibli style animation, detailed anime, hd, high resolution, pink hair, cherry blossom, flower in hair, animation",
width: 1024
}
}
);
// 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_e5o**********************************
This is your API token. Keep it to yourself.
import replicate
Run anotherjesse/zeroscope-v2-xl using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"anotherjesse/zeroscope-v2-xl:71996d331e8ede8ef7bd76eba9fae076d31792e4ddf4ad057779b443d6aea62f",
input={
"batch_size": 1,
"fps": 12,
"guidance_scale": 17.5,
"height": 576,
"init_video": "https://replicate.delivery/pbxt/J9ae4dEYlbcHZxek5BoW30IYf3c4vIyUwzMCiuhFeK6Zak7l/bae77d23-e215-4999-89a2-42ca9912b234.mp4",
"init_weight": 0.15,
"model": "xl",
"negative_prompt": "sparkles, garish, weird, photography, dust, noisy, washed out, ugly, distorted, broken",
"num_frames": 24,
"num_inference_steps": 50,
"prompt": "perfect face, anime, studio ghibli style animation, detailed anime, hd, high resolution, pink hair, cherry blossom, flower in hair, animation",
"width": 1024
}
)
# 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_e5o**********************************
This is your API token. Keep it to yourself.
Run anotherjesse/zeroscope-v2-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": "anotherjesse/zeroscope-v2-xl:71996d331e8ede8ef7bd76eba9fae076d31792e4ddf4ad057779b443d6aea62f",
"input": {
"batch_size": 1,
"fps": 12,
"guidance_scale": 17.5,
"height": 576,
"init_video": "https://replicate.delivery/pbxt/J9ae4dEYlbcHZxek5BoW30IYf3c4vIyUwzMCiuhFeK6Zak7l/bae77d23-e215-4999-89a2-42ca9912b234.mp4",
"init_weight": 0.15,
"model": "xl",
"negative_prompt": "sparkles, garish, weird, photography, dust, noisy, washed out, ugly, distorted, broken",
"num_frames": 24,
"num_inference_steps": 50,
"prompt": "perfect face, anime, studio ghibli style animation, detailed anime, hd, high resolution, pink hair, cherry blossom, flower in hair, animation",
"width": 1024
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "x574ewjb4mx4lph3gpzufd5gpy",
"model": "anotherjesse/zeroscope-v2-xl",
"version": "71996d331e8ede8ef7bd76eba9fae076d31792e4ddf4ad057779b443d6aea62f",
"input": {
"batch_size": 1,
"fps": 12,
"guidance_scale": 17.5,
"height": 576,
"init_video": "https://replicate.delivery/pbxt/J9ae4dEYlbcHZxek5BoW30IYf3c4vIyUwzMCiuhFeK6Zak7l/bae77d23-e215-4999-89a2-42ca9912b234.mp4",
"init_weight": 0.15,
"model": "xl",
"negative_prompt": "sparkles, garish, weird, photography, dust, noisy, washed out, ugly, distorted, broken",
"num_frames": 24,
"num_inference_steps": 50,
"prompt": "perfect face, anime, studio ghibli style animation, detailed anime, hd, high resolution, pink hair, cherry blossom, flower in hair, animation",
"width": 1024
},
"logs": "Using seed: 6786\ninit_video 40474\n/root/.pyenv/versions/3.10.12/lib/python3.10/site-packages/diffusers/configuration_utils.py:135: FutureWarning: Accessing config attribute `num_train_timesteps` directly via 'DPMSolverMultistepScheduler' object attribute is deprecated. Please access 'num_train_timesteps' over 'DPMSolverMultistepScheduler's config object instead, e.g. 'scheduler.config.num_train_timesteps'.\ndeprecate(\"direct config name access\", \"1.0.0\", deprecation_message, standard_warn=False)\n 0%| | 0/42 [00:00<?, ?it/s]\n 2%|▏ | 1/42 [00:01<01:18, 1.92s/it]\n 5%|▍ | 2/42 [00:03<01:16, 1.92s/it]\n 7%|▋ | 3/42 [00:05<01:14, 1.92s/it]\n 10%|▉ | 4/42 [00:07<01:12, 1.92s/it]\n 12%|█▏ | 5/42 [00:09<01:11, 1.92s/it]\n 14%|█▍ | 6/42 [00:11<01:09, 1.92s/it]\n 17%|█▋ | 7/42 [00:13<01:07, 1.92s/it]\n 19%|█▉ | 8/42 [00:15<01:05, 1.92s/it]\n 21%|██▏ | 9/42 [00:17<01:03, 1.92s/it]\n 24%|██▍ | 10/42 [00:19<01:01, 1.92s/it]\n 26%|██▌ | 11/42 [00:21<00:59, 1.92s/it]\n 29%|██▊ | 12/42 [00:23<00:57, 1.92s/it]\n 31%|███ | 13/42 [00:24<00:55, 1.92s/it]\n 33%|███▎ | 14/42 [00:26<00:53, 1.92s/it]\n 36%|███▌ | 15/42 [00:28<00:51, 1.92s/it]\n 38%|███▊ | 16/42 [00:30<00:49, 1.92s/it]\n 40%|████ | 17/42 [00:32<00:48, 1.92s/it]\n 43%|████▎ | 18/42 [00:34<00:46, 1.92s/it]\n 45%|████▌ | 19/42 [00:36<00:44, 1.92s/it]\n 48%|████▊ | 20/42 [00:38<00:42, 1.93s/it]\n 50%|█████ | 21/42 [00:40<00:40, 1.93s/it]\n 52%|█████▏ | 22/42 [00:42<00:38, 1.93s/it]\n 55%|█████▍ | 23/42 [00:44<00:36, 1.93s/it]\n 57%|█████▋ | 24/42 [00:46<00:34, 1.93s/it]\n 60%|█████▉ | 25/42 [00:48<00:32, 1.93s/it]\n 62%|██████▏ | 26/42 [00:50<00:30, 1.93s/it]\n 64%|██████▍ | 27/42 [00:51<00:28, 1.93s/it]\n 67%|██████▋ | 28/42 [00:53<00:26, 1.93s/it]\n 69%|██████▉ | 29/42 [00:55<00:25, 1.93s/it]\n 71%|███████▏ | 30/42 [00:57<00:23, 1.93s/it]\n 74%|███████▍ | 31/42 [00:59<00:21, 1.93s/it]\n 76%|███████▌ | 32/42 [01:01<00:19, 1.93s/it]\n 79%|███████▊ | 33/42 [01:03<00:17, 1.93s/it]\n 81%|████████ | 34/42 [01:05<00:15, 1.93s/it]\n 83%|████████▎ | 35/42 [01:07<00:13, 1.93s/it]\n 86%|████████▌ | 36/42 [01:09<00:11, 1.93s/it]\n 88%|████████▊ | 37/42 [01:11<00:09, 1.93s/it]\n 90%|█████████ | 38/42 [01:13<00:07, 1.93s/it]\n 93%|█████████▎| 39/42 [01:15<00:05, 1.93s/it]\n 95%|█████████▌| 40/42 [01:17<00:03, 1.93s/it]\n 98%|█████████▊| 41/42 [01:18<00:01, 1.93s/it]\n100%|██████████| 42/42 [01:20<00:00, 1.93s/it]\n100%|██████████| 42/42 [01:20<00:00, 1.93s/it]",
"output": [
"https://replicate.delivery/pbxt/Qz1OxEvwfkXYJ6I34YQN8xVSDf44VbT1QV1hTWuCk9DIOuORA/output-0.mp4"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2023-07-11T10:36:56.566448Z",
"started_at": "2023-07-11T10:38:30.129356Z",
"completed_at": "2023-07-11T10:40:08.64809Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/x574ewjb4mx4lph3gpzufd5gpy/cancel",
"get": "https://api.replicate.com/v1/predictions/x574ewjb4mx4lph3gpzufd5gpy"
},
"metrics": {
"predict_time": 98.518734,
"total_time": 192.081642
}
}