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.
lucataco /sdxl-controlnet-depth:5e0a5cda
This version has been disabled because it consistently fails to complete setup.
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 lucataco/sdxl-controlnet-depth using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"lucataco/sdxl-controlnet-depth:5e0a5cda895aa23a1aaa1a9a265220097102448e1b4c42b22a3c6d87c12d41a9",
{
input: {
seed: 6685,
image: "https://replicate.delivery/pbxt/JW7V0ZaYRpt5HfGUsTxzTWbDrwfFmj8IpkgjJxGInHPgFujl/Screenshot%202023-08-22%20at%2011.54.23%20PM.png",
prompt: "dog, meme",
condition_scale: 0.5,
num_inference_steps: 30
}
}
);
// 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 lucataco/sdxl-controlnet-depth using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lucataco/sdxl-controlnet-depth:5e0a5cda895aa23a1aaa1a9a265220097102448e1b4c42b22a3c6d87c12d41a9",
input={
"seed": 6685,
"image": "https://replicate.delivery/pbxt/JW7V0ZaYRpt5HfGUsTxzTWbDrwfFmj8IpkgjJxGInHPgFujl/Screenshot%202023-08-22%20at%2011.54.23%20PM.png",
"prompt": "dog, meme",
"condition_scale": 0.5,
"num_inference_steps": 30
}
)
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 lucataco/sdxl-controlnet-depth 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/sdxl-controlnet-depth:5e0a5cda895aa23a1aaa1a9a265220097102448e1b4c42b22a3c6d87c12d41a9",
"input": {
"seed": 6685,
"image": "https://replicate.delivery/pbxt/JW7V0ZaYRpt5HfGUsTxzTWbDrwfFmj8IpkgjJxGInHPgFujl/Screenshot%202023-08-22%20at%2011.54.23%20PM.png",
"prompt": "dog, meme",
"condition_scale": 0.5,
"num_inference_steps": 30
}
}' \
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": "2023-09-12T22:50:06.217589Z",
"created_at": "2023-09-12T22:49:55.513608Z",
"data_removed": false,
"error": null,
"id": "aoc6hsdbcyp74xusuflnpiuuee",
"input": {
"seed": 6685,
"image": "https://replicate.delivery/pbxt/JW7V0ZaYRpt5HfGUsTxzTWbDrwfFmj8IpkgjJxGInHPgFujl/Screenshot%202023-08-22%20at%2011.54.23%20PM.png",
"prompt": "dog, meme",
"condition_scale": 0.5,
"num_inference_steps": 30
},
"logs": "Using seed: 6685\nOriginal width:324, height:400\nAspect Ratio: 0.81\nnew_width:896, new_height:1088\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:08, 3.31it/s]\n 7%|▋ | 2/30 [00:00<00:08, 3.47it/s]\n 10%|█ | 3/30 [00:00<00:07, 3.52it/s]\n 13%|█▎ | 4/30 [00:01<00:07, 3.54it/s]\n 17%|█▋ | 5/30 [00:01<00:07, 3.55it/s]\n 20%|██ | 6/30 [00:01<00:06, 3.56it/s]\n 23%|██▎ | 7/30 [00:01<00:06, 3.56it/s]\n 27%|██▋ | 8/30 [00:02<00:06, 3.57it/s]\n 30%|███ | 9/30 [00:02<00:05, 3.57it/s]\n 33%|███▎ | 10/30 [00:02<00:05, 3.57it/s]\n 37%|███▋ | 11/30 [00:03<00:05, 3.58it/s]\n 40%|████ | 12/30 [00:03<00:05, 3.58it/s]\n 43%|████▎ | 13/30 [00:03<00:04, 3.58it/s]\n 47%|████▋ | 14/30 [00:03<00:04, 3.59it/s]\n 50%|█████ | 15/30 [00:04<00:04, 3.59it/s]\n 53%|█████▎ | 16/30 [00:04<00:03, 3.59it/s]\n 57%|█████▋ | 17/30 [00:04<00:03, 3.59it/s]\n 60%|██████ | 18/30 [00:05<00:03, 3.59it/s]\n 63%|██████▎ | 19/30 [00:05<00:03, 3.59it/s]\n 67%|██████▋ | 20/30 [00:05<00:02, 3.59it/s]\n 70%|███████ | 21/30 [00:05<00:02, 3.59it/s]\n 73%|███████▎ | 22/30 [00:06<00:02, 3.59it/s]\n 77%|███████▋ | 23/30 [00:06<00:01, 3.59it/s]\n 80%|████████ | 24/30 [00:06<00:01, 3.59it/s]\n 83%|████████▎ | 25/30 [00:06<00:01, 3.59it/s]\n 87%|████████▋ | 26/30 [00:07<00:01, 3.59it/s]\n 90%|█████████ | 27/30 [00:07<00:00, 3.58it/s]\n 93%|█████████▎| 28/30 [00:07<00:00, 3.58it/s]\n 97%|█████████▋| 29/30 [00:08<00:00, 3.58it/s]\n100%|██████████| 30/30 [00:08<00:00, 3.58it/s]\n100%|██████████| 30/30 [00:08<00:00, 3.57it/s]",
"metrics": {
"predict_time": 10.70738,
"total_time": 10.703981
},
"output": "https://pbxt.replicate.delivery/MB0L58gBMhr8HJXSEzYj7a0vAkDZuFl2zfbvPh1RCwrO60xIA/output.png",
"started_at": "2023-09-12T22:49:55.510209Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/aoc6hsdbcyp74xusuflnpiuuee",
"cancel": "https://api.replicate.com/v1/predictions/aoc6hsdbcyp74xusuflnpiuuee/cancel"
},
"version": "5e0a5cda895aa23a1aaa1a9a265220097102448e1b4c42b22a3c6d87c12d41a9"
}
Using seed: 6685
Original width:324, height:400
Aspect Ratio: 0.81
new_width:896, new_height:1088
0%| | 0/30 [00:00<?, ?it/s]
3%|▎ | 1/30 [00:00<00:08, 3.31it/s]
7%|▋ | 2/30 [00:00<00:08, 3.47it/s]
10%|█ | 3/30 [00:00<00:07, 3.52it/s]
13%|█▎ | 4/30 [00:01<00:07, 3.54it/s]
17%|█▋ | 5/30 [00:01<00:07, 3.55it/s]
20%|██ | 6/30 [00:01<00:06, 3.56it/s]
23%|██▎ | 7/30 [00:01<00:06, 3.56it/s]
27%|██▋ | 8/30 [00:02<00:06, 3.57it/s]
30%|███ | 9/30 [00:02<00:05, 3.57it/s]
33%|███▎ | 10/30 [00:02<00:05, 3.57it/s]
37%|███▋ | 11/30 [00:03<00:05, 3.58it/s]
40%|████ | 12/30 [00:03<00:05, 3.58it/s]
43%|████▎ | 13/30 [00:03<00:04, 3.58it/s]
47%|████▋ | 14/30 [00:03<00:04, 3.59it/s]
50%|█████ | 15/30 [00:04<00:04, 3.59it/s]
53%|█████▎ | 16/30 [00:04<00:03, 3.59it/s]
57%|█████▋ | 17/30 [00:04<00:03, 3.59it/s]
60%|██████ | 18/30 [00:05<00:03, 3.59it/s]
63%|██████▎ | 19/30 [00:05<00:03, 3.59it/s]
67%|██████▋ | 20/30 [00:05<00:02, 3.59it/s]
70%|███████ | 21/30 [00:05<00:02, 3.59it/s]
73%|███████▎ | 22/30 [00:06<00:02, 3.59it/s]
77%|███████▋ | 23/30 [00:06<00:01, 3.59it/s]
80%|████████ | 24/30 [00:06<00:01, 3.59it/s]
83%|████████▎ | 25/30 [00:06<00:01, 3.59it/s]
87%|████████▋ | 26/30 [00:07<00:01, 3.59it/s]
90%|█████████ | 27/30 [00:07<00:00, 3.58it/s]
93%|█████████▎| 28/30 [00:07<00:00, 3.58it/s]
97%|█████████▋| 29/30 [00:08<00:00, 3.58it/s]
100%|██████████| 30/30 [00:08<00:00, 3.58it/s]
100%|██████████| 30/30 [00:08<00:00, 3.57it/s]