defaultcloseup face photo of man in black clothes, night city street, fireworks in background
typetext
{
"dreambooth_model": "None",
"guidance": 8.5,
"length": 16,
"negative_prompt": "worst quality, low quality, letterboxed",
"prompt": "husky running in the snow",
"seed": -1,
"steps": 25
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_1W7**********************************
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 shimmercam/animatediff-v3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"shimmercam/animatediff-v3:dd87e0a6eed441ad5944d9b10a2020245889b6b85fe97bd9abeb76334d2c95ec",
{
input: {
dreambooth_model: "None",
guidance: 8.5,
length: 16,
negative_prompt: "worst quality, low quality, letterboxed",
prompt: "husky running in the snow",
seed: -1,
steps: 25
}
}
);
// 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_1W7**********************************
This is your API token. Keep it to yourself.
import replicate
Run shimmercam/animatediff-v3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"shimmercam/animatediff-v3:dd87e0a6eed441ad5944d9b10a2020245889b6b85fe97bd9abeb76334d2c95ec",
input={
"dreambooth_model": "None",
"guidance": 8.5,
"length": 16,
"negative_prompt": "worst quality, low quality, letterboxed",
"prompt": "husky running in the snow",
"seed": -1,
"steps": 25
}
)
# 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_1W7**********************************
This is your API token. Keep it to yourself.
Run shimmercam/animatediff-v3 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": "shimmercam/animatediff-v3:dd87e0a6eed441ad5944d9b10a2020245889b6b85fe97bd9abeb76334d2c95ec",
"input": {
"dreambooth_model": "None",
"guidance": 8.5,
"length": 16,
"negative_prompt": "worst quality, low quality, letterboxed",
"prompt": "husky running in the snow",
"seed": -1,
"steps": 25
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "pf4uuybbagzq4z7w5p6tkec2ge",
"model": "shimmercam/animatediff-v3",
"version": "dd87e0a6eed441ad5944d9b10a2020245889b6b85fe97bd9abeb76334d2c95ec",
"input": {
"dreambooth_model": "None",
"guidance": 8.5,
"length": 16,
"negative_prompt": "worst quality, low quality, letterboxed",
"prompt": "husky running in the snow",
"seed": -1,
"steps": 25
},
"logs": "loading controlnet checkpoint from /AnimateDiff/models/SparseCtrl/v3_sd15_sparsectrl_rgb.ckpt ...\nload motion module from /AnimateDiff/models/Motion_Module/v3_sd15_mm.ckpt\nload domain lora from /AnimateDiff/models/Motion_Module/v3_sd15_adapter.ckpt\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:02<00:49, 2.07s/it]\n 8%|▊ | 2/25 [00:03<00:40, 1.78s/it]\n 12%|█▏ | 3/25 [00:05<00:37, 1.68s/it]\n 16%|█▌ | 4/25 [00:06<00:34, 1.64s/it]\n 20%|██ | 5/25 [00:08<00:32, 1.61s/it]\n 24%|██▍ | 6/25 [00:09<00:30, 1.60s/it]\n 28%|██▊ | 7/25 [00:11<00:28, 1.59s/it]\n 32%|███▏ | 8/25 [00:13<00:26, 1.58s/it]\n 36%|███▌ | 9/25 [00:14<00:25, 1.58s/it]\n 40%|████ | 10/25 [00:16<00:23, 1.58s/it]\n 44%|████▍ | 11/25 [00:17<00:22, 1.58s/it]\n 48%|████▊ | 12/25 [00:19<00:20, 1.57s/it]\n 52%|█████▏ | 13/25 [00:20<00:18, 1.57s/it]\n 56%|█████▌ | 14/25 [00:22<00:17, 1.57s/it]\n 60%|██████ | 15/25 [00:24<00:15, 1.57s/it]\n 64%|██████▍ | 16/25 [00:25<00:14, 1.57s/it]\n 68%|██████▊ | 17/25 [00:27<00:12, 1.57s/it]\n 72%|███████▏ | 18/25 [00:28<00:11, 1.57s/it]\n 76%|███████▌ | 19/25 [00:30<00:09, 1.57s/it]\n 80%|████████ | 20/25 [00:31<00:07, 1.57s/it]\n 84%|████████▍ | 21/25 [00:33<00:06, 1.57s/it]\n 88%|████████▊ | 22/25 [00:35<00:04, 1.57s/it]\n 92%|█████████▏| 23/25 [00:36<00:03, 1.57s/it]\n 96%|█████████▌| 24/25 [00:38<00:01, 1.57s/it]\n100%|██████████| 25/25 [00:39<00:00, 1.57s/it]\n100%|██████████| 25/25 [00:39<00:00, 1.59s/it]\n 0%| | 0/16 [00:00<?, ?it/s]\n 31%|███▏ | 5/16 [00:00<00:00, 44.00it/s]\n 62%|██████▎ | 10/16 [00:00<00:00, 23.75it/s]\n 81%|████████▏ | 13/16 [00:00<00:00, 21.43it/s]\n100%|██████████| 16/16 [00:00<00:00, 20.17it/s]\n100%|██████████| 16/16 [00:00<00:00, 22.03it/s]",
"output": "https://replicate.delivery/pbxt/NPJe0gaetTmb1Ee6rebJ6fFjnFfgAh1dCjp9UySp3UNOaBvgE/output.gif",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2023-12-16T20:54:44.46854Z",
"started_at": "2023-12-16T20:57:25.80951Z",
"completed_at": "2023-12-16T20:58:17.238586Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/pf4uuybbagzq4z7w5p6tkec2ge/cancel",
"get": "https://api.replicate.com/v1/predictions/pf4uuybbagzq4z7w5p6tkec2ge"
},
"metrics": {
"predict_time": 51.429076,
"total_time": 212.770046
}
}