Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run camenduru/magictime using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"camenduru/magictime:91e4bb80b45832b5bafdbc10d94fd1d364d0d6ad80f5b1498fcb25d217cb3a9c",
{
input: {
seed: "1496541313",
width: 512,
height: 512,
prompt: "Bean sprouts grow and mature from seeds.",
dreambooth: "RealisticVisionV60B1_v51VAE.safetensors",
negative_prompt: "worst quality, low quality, letterboxed"
}
}
);
// 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=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run camenduru/magictime using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"camenduru/magictime:91e4bb80b45832b5bafdbc10d94fd1d364d0d6ad80f5b1498fcb25d217cb3a9c",
input={
"seed": "1496541313",
"width": 512,
"height": 512,
"prompt": "Bean sprouts grow and mature from seeds.",
"dreambooth": "RealisticVisionV60B1_v51VAE.safetensors",
"negative_prompt": "worst quality, low quality, letterboxed"
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run camenduru/magictime 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": "camenduru/magictime:91e4bb80b45832b5bafdbc10d94fd1d364d0d6ad80f5b1498fcb25d217cb3a9c",
"input": {
"seed": "1496541313",
"width": 512,
"height": 512,
"prompt": "Bean sprouts grow and mature from seeds.",
"dreambooth": "RealisticVisionV60B1_v51VAE.safetensors",
"negative_prompt": "worst quality, low quality, letterboxed"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2024-04-13T12:05:36.841168Z",
"created_at": "2024-04-13T12:03:09.174000Z",
"data_removed": false,
"error": null,
"id": "4m6ss3r8ysrgm0cetxbtfn1z3c",
"input": {
"seed": "1496541313",
"width": 512,
"height": 512,
"prompt": "Bean sprouts grow and mature from seeds.",
"dreambooth": "RealisticVisionV60B1_v51VAE.safetensors",
"negative_prompt": "worst quality, low quality, letterboxed"
},
"logs": "### seed: 1496541313\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:01<00:47, 1.99s/it]\n 8%|▊ | 2/25 [00:03<00:42, 1.86s/it]\n 12%|█▏ | 3/25 [00:05<00:40, 1.82s/it]\n 16%|█▌ | 4/25 [00:07<00:37, 1.80s/it]\n 20%|██ | 5/25 [00:09<00:35, 1.79s/it]\n 24%|██▍ | 6/25 [00:10<00:33, 1.78s/it]\n 28%|██▊ | 7/25 [00:12<00:32, 1.78s/it]\n 32%|███▏ | 8/25 [00:14<00:30, 1.78s/it]\n 36%|███▌ | 9/25 [00:16<00:28, 1.78s/it]\n 40%|████ | 10/25 [00:17<00:26, 1.78s/it]\n 44%|████▍ | 11/25 [00:19<00:24, 1.77s/it]\n 48%|████▊ | 12/25 [00:21<00:23, 1.77s/it]\n 52%|█████▏ | 13/25 [00:23<00:21, 1.77s/it]\n 56%|█████▌ | 14/25 [00:25<00:19, 1.77s/it]\n 60%|██████ | 15/25 [00:26<00:17, 1.77s/it]\n 64%|██████▍ | 16/25 [00:28<00:15, 1.77s/it]\n 68%|██████▊ | 17/25 [00:30<00:14, 1.77s/it]\n 72%|███████▏ | 18/25 [00:32<00:12, 1.77s/it]\n 76%|███████▌ | 19/25 [00:33<00:10, 1.77s/it]\n 80%|████████ | 20/25 [00:35<00:08, 1.77s/it]\n 84%|████████▍ | 21/25 [00:37<00:07, 1.77s/it]\n 88%|████████▊ | 22/25 [00:39<00:05, 1.77s/it]\n 92%|█████████▏| 23/25 [00:40<00:03, 1.77s/it]\n 96%|█████████▌| 24/25 [00:42<00:01, 1.77s/it]\n100%|██████████| 25/25 [00:44<00:00, 1.77s/it]\n100%|██████████| 25/25 [00:44<00:00, 1.78s/it]\n 0%| | 0/16 [00:00<?, ?it/s]\n 6%|▋ | 1/16 [00:00<00:02, 7.10it/s]\n 38%|███▊ | 6/16 [00:00<00:00, 27.77it/s]\n 62%|██████▎ | 10/16 [00:00<00:00, 22.17it/s]\n 81%|████████▏ | 13/16 [00:00<00:00, 20.71it/s]\n100%|██████████| 16/16 [00:00<00:00, 19.90it/s]\n100%|██████████| 16/16 [00:00<00:00, 20.27it/s]",
"metrics": {
"predict_time": 54.014115,
"total_time": 147.667168
},
"output": "https://replicate.delivery/pbxt/dhYlZL1e3TXmISKaoQYykUleo0prVG84xfeeBscItPdGiTQVC/sample.mp4",
"started_at": "2024-04-13T12:04:42.827053Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/4m6ss3r8ysrgm0cetxbtfn1z3c",
"cancel": "https://api.replicate.com/v1/predictions/4m6ss3r8ysrgm0cetxbtfn1z3c/cancel"
},
"version": "91e4bb80b45832b5bafdbc10d94fd1d364d0d6ad80f5b1498fcb25d217cb3a9c"
}
### seed: 1496541313
0%| | 0/25 [00:00<?, ?it/s]
4%|▍ | 1/25 [00:01<00:47, 1.99s/it]
8%|▊ | 2/25 [00:03<00:42, 1.86s/it]
12%|█▏ | 3/25 [00:05<00:40, 1.82s/it]
16%|█▌ | 4/25 [00:07<00:37, 1.80s/it]
20%|██ | 5/25 [00:09<00:35, 1.79s/it]
24%|██▍ | 6/25 [00:10<00:33, 1.78s/it]
28%|██▊ | 7/25 [00:12<00:32, 1.78s/it]
32%|███▏ | 8/25 [00:14<00:30, 1.78s/it]
36%|███▌ | 9/25 [00:16<00:28, 1.78s/it]
40%|████ | 10/25 [00:17<00:26, 1.78s/it]
44%|████▍ | 11/25 [00:19<00:24, 1.77s/it]
48%|████▊ | 12/25 [00:21<00:23, 1.77s/it]
52%|█████▏ | 13/25 [00:23<00:21, 1.77s/it]
56%|█████▌ | 14/25 [00:25<00:19, 1.77s/it]
60%|██████ | 15/25 [00:26<00:17, 1.77s/it]
64%|██████▍ | 16/25 [00:28<00:15, 1.77s/it]
68%|██████▊ | 17/25 [00:30<00:14, 1.77s/it]
72%|███████▏ | 18/25 [00:32<00:12, 1.77s/it]
76%|███████▌ | 19/25 [00:33<00:10, 1.77s/it]
80%|████████ | 20/25 [00:35<00:08, 1.77s/it]
84%|████████▍ | 21/25 [00:37<00:07, 1.77s/it]
88%|████████▊ | 22/25 [00:39<00:05, 1.77s/it]
92%|█████████▏| 23/25 [00:40<00:03, 1.77s/it]
96%|█████████▌| 24/25 [00:42<00:01, 1.77s/it]
100%|██████████| 25/25 [00:44<00:00, 1.77s/it]
100%|██████████| 25/25 [00:44<00:00, 1.78s/it]
0%| | 0/16 [00:00<?, ?it/s]
6%|▋ | 1/16 [00:00<00:02, 7.10it/s]
38%|███▊ | 6/16 [00:00<00:00, 27.77it/s]
62%|██████▎ | 10/16 [00:00<00:00, 22.17it/s]
81%|████████▏ | 13/16 [00:00<00:00, 20.71it/s]
100%|██████████| 16/16 [00:00<00:00, 19.90it/s]
100%|██████████| 16/16 [00:00<00:00, 20.27it/s]