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";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run fermatresearch/high-resolution-controlnet-tile using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"fermatresearch/high-resolution-controlnet-tile:4af11083a13ebb9bf97a88d7906ef21cf79d1f2e5fa9d87b70739ce6b8113d29",
{
input: {
hdr: 1,
image: "https://replicate.delivery/pbxt/K5vHl2fdS6hSShLXd1Z9ODQ7RUYCFFLZB1ZZkcX47bqUUWh3/out-0.png",
steps: 20,
prompt: "a very dark image, close up of a girl in a dark room, some neon lights in the background, cyberpunk vibes, it's so dark you can barely see anything",
scheduler: "DDIM",
creativity: 0.15,
guess_mode: false,
resolution: 2048,
resemblance: 0.99,
guidance_scale: 5,
negative_prompt: "Teeth, tooth, longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, mutant"
}
}
);
// 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=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run fermatresearch/high-resolution-controlnet-tile using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fermatresearch/high-resolution-controlnet-tile:4af11083a13ebb9bf97a88d7906ef21cf79d1f2e5fa9d87b70739ce6b8113d29",
input={
"hdr": 1,
"image": "https://replicate.delivery/pbxt/K5vHl2fdS6hSShLXd1Z9ODQ7RUYCFFLZB1ZZkcX47bqUUWh3/out-0.png",
"steps": 20,
"prompt": "a very dark image, close up of a girl in a dark room, some neon lights in the background, cyberpunk vibes, it's so dark you can barely see anything",
"scheduler": "DDIM",
"creativity": 0.15,
"guess_mode": False,
"resolution": 2048,
"resemblance": 0.99,
"guidance_scale": 5,
"negative_prompt": "Teeth, tooth, longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, mutant"
}
)
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 fermatresearch/high-resolution-controlnet-tile 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": "fermatresearch/high-resolution-controlnet-tile:4af11083a13ebb9bf97a88d7906ef21cf79d1f2e5fa9d87b70739ce6b8113d29",
"input": {
"hdr": 1,
"image": "https://replicate.delivery/pbxt/K5vHl2fdS6hSShLXd1Z9ODQ7RUYCFFLZB1ZZkcX47bqUUWh3/out-0.png",
"steps": 20,
"prompt": "a very dark image, close up of a girl in a dark room, some neon lights in the background, cyberpunk vibes, it\'s so dark you can barely see anything",
"scheduler": "DDIM",
"creativity": 0.15,
"guess_mode": false,
"resolution": 2048,
"resemblance": 0.99,
"guidance_scale": 5,
"negative_prompt": "Teeth, tooth, longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, mutant"
}
}' \
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
Loading...
{
"completed_at": "2023-12-22T18:47:23.844959Z",
"created_at": "2023-12-22T18:47:14.502953Z",
"data_removed": false,
"error": null,
"id": "kw2n3bdbdcd5upayz2ogtyitku",
"input": {
"hdr": 1,
"image": "https://replicate.delivery/pbxt/K5vHl2fdS6hSShLXd1Z9ODQ7RUYCFFLZB1ZZkcX47bqUUWh3/out-0.png",
"steps": 20,
"prompt": "a very dark image, close up of a girl in a dark room, some neon lights in the background, cyberpunk vibes, it's so dark you can barely see anything",
"scheduler": "DDIM",
"creativity": 0.15,
"guess_mode": false,
"resolution": 2048,
"resemblance": 0.99,
"guidance_scale": 5,
"negative_prompt": "Teeth, tooth, longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, mutant"
},
"logs": "Using seed: 18629\n 0%| | 0/3 [00:00<?, ?it/s]\n 33%|███▎ | 1/3 [00:01<00:02, 1.06s/it]\n 67%|██████▋ | 2/3 [00:02<00:01, 1.06s/it]\n100%|██████████| 3/3 [00:03<00:00, 1.06s/it]\n100%|██████████| 3/3 [00:03<00:00, 1.06s/it]",
"metrics": {
"predict_time": 9.332866,
"total_time": 9.342006
},
"output": [
"https://replicate.delivery/pbxt/etT436Z2RrWAOajwhQm6YLBHiT5Y1Oix2aZnDLnIkfM7u4ESA/out-0.png"
],
"started_at": "2023-12-22T18:47:14.512093Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/kw2n3bdbdcd5upayz2ogtyitku",
"cancel": "https://api.replicate.com/v1/predictions/kw2n3bdbdcd5upayz2ogtyitku/cancel"
},
"version": "4af11083a13ebb9bf97a88d7906ef21cf79d1f2e5fa9d87b70739ce6b8113d29"
}
Using seed: 18629
0%| | 0/3 [00:00<?, ?it/s]
33%|███▎ | 1/3 [00:01<00:02, 1.06s/it]
67%|██████▋ | 2/3 [00:02<00:01, 1.06s/it]
100%|██████████| 3/3 [00:03<00:00, 1.06s/it]
100%|██████████| 3/3 [00:03<00:00, 1.06s/it]