Prediction
fermatresearch/high-resolution-controlnet-tile:4af11083a13ebb9bf97a88d7906ef21cf79d1f2e5fa9d87b70739ce6b8113d29Input
- hdr
- 0.2
- steps
- 20
- prompt
- a woman wearing a colorful suit
- scheduler
- DDIM
- creativity
- 0.6
- guess_mode
- resolution
- 2560
- resemblance
- 0.4
- 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
{
"hdr": 0.2,
"image": "https://replicate.delivery/pbxt/K5vab12temDjc8jOnWFJ3p4RD7YWPQ3nuCyXpaRmN9yB8M1h/f84e7869-32ca-444b-a720-19e4325f4347.jpeg",
"steps": 20,
"prompt": "a woman wearing a colorful suit",
"scheduler": "DDIM",
"creativity": 0.6,
"guess_mode": false,
"resolution": 2560,
"resemblance": 0.4,
"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"
}
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: 0.2,
image: "https://replicate.delivery/pbxt/K5vab12temDjc8jOnWFJ3p4RD7YWPQ3nuCyXpaRmN9yB8M1h/f84e7869-32ca-444b-a720-19e4325f4347.jpeg",
steps: 20,
prompt: "a woman wearing a colorful suit",
scheduler: "DDIM",
creativity: 0.6,
guess_mode: false,
resolution: 2560,
resemblance: 0.4,
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": 0.2,
"image": "https://replicate.delivery/pbxt/K5vab12temDjc8jOnWFJ3p4RD7YWPQ3nuCyXpaRmN9yB8M1h/f84e7869-32ca-444b-a720-19e4325f4347.jpeg",
"steps": 20,
"prompt": "a woman wearing a colorful suit",
"scheduler": "DDIM",
"creativity": 0.6,
"guess_mode": False,
"resolution": 2560,
"resemblance": 0.4,
"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": "4af11083a13ebb9bf97a88d7906ef21cf79d1f2e5fa9d87b70739ce6b8113d29",
"input": {
"hdr": 0.2,
"image": "https://replicate.delivery/pbxt/K5vab12temDjc8jOnWFJ3p4RD7YWPQ3nuCyXpaRmN9yB8M1h/f84e7869-32ca-444b-a720-19e4325f4347.jpeg",
"steps": 20,
"prompt": "a woman wearing a colorful suit",
"scheduler": "DDIM",
"creativity": 0.6,
"guess_mode": false,
"resolution": 2560,
"resemblance": 0.4,
"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.
Output
Loading...
{
"completed_at": "2025-02-14T21:22:43.238187Z",
"created_at": "2025-02-14T21:21:59.988000Z",
"data_removed": false,
"error": null,
"id": "m2hek1r0phrme0cn0sbt2nns1w",
"input": {
"hdr": 0.2,
"image": "https://replicate.delivery/pbxt/K5vab12temDjc8jOnWFJ3p4RD7YWPQ3nuCyXpaRmN9yB8M1h/f84e7869-32ca-444b-a720-19e4325f4347.jpeg",
"steps": 20,
"prompt": "a woman wearing a colorful suit",
"scheduler": "DDIM",
"creativity": 0.6,
"guess_mode": false,
"resolution": 2560,
"resemblance": 0.4,
"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: 49259\n 0%| | 0/12 [00:00<?, ?it/s]\n 8%|▊ | 1/12 [00:02<00:22, 2.02s/it]\n 17%|█▋ | 2/12 [00:04<00:20, 2.01s/it]\n 25%|██▌ | 3/12 [00:06<00:18, 2.00s/it]\n 33%|███▎ | 4/12 [00:08<00:16, 2.00s/it]\n 42%|████▏ | 5/12 [00:10<00:14, 2.00s/it]\n 50%|█████ | 6/12 [00:12<00:12, 2.01s/it]\n 58%|█████▊ | 7/12 [00:14<00:10, 2.01s/it]\n 67%|██████▋ | 8/12 [00:16<00:08, 2.01s/it]\n 75%|███████▌ | 9/12 [00:18<00:06, 2.02s/it]\n 83%|████████▎ | 10/12 [00:20<00:04, 2.02s/it]\n 92%|█████████▏| 11/12 [00:22<00:02, 2.03s/it]\n100%|██████████| 12/12 [00:24<00:00, 2.03s/it]\n100%|██████████| 12/12 [00:24<00:00, 2.02s/it]",
"metrics": {
"predict_time": 31.956780011,
"total_time": 43.250187
},
"output": [
"https://replicate.delivery/xezq/DNN9zPzE02ZTNVtWoULs6Ilf0HgdnJrCMUjot5B61SpRMrHKA/out-0.png"
],
"started_at": "2025-02-14T21:22:11.281407Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bcwr-tfmq7f7xyqszwmyiic6w264mceip7tcl563dxcvkrobvx3geoq7q",
"get": "https://api.replicate.com/v1/predictions/m2hek1r0phrme0cn0sbt2nns1w",
"cancel": "https://api.replicate.com/v1/predictions/m2hek1r0phrme0cn0sbt2nns1w/cancel"
},
"version": "4af11083a13ebb9bf97a88d7906ef21cf79d1f2e5fa9d87b70739ce6b8113d29"
}
Using seed: 49259
0%| | 0/12 [00:00<?, ?it/s]
8%|▊ | 1/12 [00:02<00:22, 2.02s/it]
17%|█▋ | 2/12 [00:04<00:20, 2.01s/it]
25%|██▌ | 3/12 [00:06<00:18, 2.00s/it]
33%|███▎ | 4/12 [00:08<00:16, 2.00s/it]
42%|████▏ | 5/12 [00:10<00:14, 2.00s/it]
50%|█████ | 6/12 [00:12<00:12, 2.01s/it]
58%|█████▊ | 7/12 [00:14<00:10, 2.01s/it]
67%|██████▋ | 8/12 [00:16<00:08, 2.01s/it]
75%|███████▌ | 9/12 [00:18<00:06, 2.02s/it]
83%|████████▎ | 10/12 [00:20<00:04, 2.02s/it]
92%|█████████▏| 11/12 [00:22<00:02, 2.03s/it]
100%|██████████| 12/12 [00:24<00:00, 2.03s/it]
100%|██████████| 12/12 [00:24<00:00, 2.02s/it]