{
"creativity": 0.6,
"guess_mode": false,
"guidance_scale": 5,
"hdr": 0.2,
"image": "https://replicate.delivery/pbxt/K5vab12temDjc8jOnWFJ3p4RD7YWPQ3nuCyXpaRmN9yB8M1h/f84e7869-32ca-444b-a720-19e4325f4347.jpeg",
"negative_prompt": "Teeth, tooth, longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, mutant",
"prompt": "a woman wearing a colorful suit",
"resemblance": 0.4,
"resolution": 2560,
"scheduler": "DDIM",
"steps": 20
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Qaw**********************************
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 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: {
creativity: 0.6,
guess_mode: false,
guidance_scale: 5,
hdr: 0.2,
image: "https://replicate.delivery/pbxt/K5vab12temDjc8jOnWFJ3p4RD7YWPQ3nuCyXpaRmN9yB8M1h/f84e7869-32ca-444b-a720-19e4325f4347.jpeg",
negative_prompt: "Teeth, tooth, longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, mutant",
prompt: "a woman wearing a colorful suit",
resemblance: 0.4,
resolution: 2560,
scheduler: "DDIM",
steps: 20
}
}
);
// 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=r8_Qaw**********************************
This is your API token. Keep it to yourself.
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={
"creativity": 0.6,
"guess_mode": False,
"guidance_scale": 5,
"hdr": 0.2,
"image": "https://replicate.delivery/pbxt/K5vab12temDjc8jOnWFJ3p4RD7YWPQ3nuCyXpaRmN9yB8M1h/f84e7869-32ca-444b-a720-19e4325f4347.jpeg",
"negative_prompt": "Teeth, tooth, longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, mutant",
"prompt": "a woman wearing a colorful suit",
"resemblance": 0.4,
"resolution": 2560,
"scheduler": "DDIM",
"steps": 20
}
)
# To access the file URL:
print(output[0].url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output[0].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_Qaw**********************************
This is your API token. Keep it to yourself.
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": {
"creativity": 0.6,
"guess_mode": false,
"guidance_scale": 5,
"hdr": 0.2,
"image": "https://replicate.delivery/pbxt/K5vab12temDjc8jOnWFJ3p4RD7YWPQ3nuCyXpaRmN9yB8M1h/f84e7869-32ca-444b-a720-19e4325f4347.jpeg",
"negative_prompt": "Teeth, tooth, longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, mutant",
"prompt": "a woman wearing a colorful suit",
"resemblance": 0.4,
"resolution": 2560,
"scheduler": "DDIM",
"steps": 20
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Loading...
{
"id": "m2hek1r0phrme0cn0sbt2nns1w",
"model": "fermatresearch/high-resolution-controlnet-tile",
"version": "4af11083a13ebb9bf97a88d7906ef21cf79d1f2e5fa9d87b70739ce6b8113d29",
"input": {
"creativity": 0.6,
"guess_mode": false,
"guidance_scale": 5,
"hdr": 0.2,
"image": "https://replicate.delivery/pbxt/K5vab12temDjc8jOnWFJ3p4RD7YWPQ3nuCyXpaRmN9yB8M1h/f84e7869-32ca-444b-a720-19e4325f4347.jpeg",
"negative_prompt": "Teeth, tooth, longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, mutant",
"prompt": "a woman wearing a colorful suit",
"resemblance": 0.4,
"resolution": 2560,
"scheduler": "DDIM",
"steps": 20
},
"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]",
"output": [
"https://replicate.delivery/xezq/DNN9zPzE02ZTNVtWoULs6Ilf0HgdnJrCMUjot5B61SpRMrHKA/out-0.png"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-02-14T21:21:59.988Z",
"started_at": "2025-02-14T21:22:11.281407Z",
"completed_at": "2025-02-14T21:22:43.238187Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/m2hek1r0phrme0cn0sbt2nns1w/cancel",
"get": "https://api.replicate.com/v1/predictions/m2hek1r0phrme0cn0sbt2nns1w",
"stream": "https://stream.replicate.com/v1/files/bcwr-tfmq7f7xyqszwmyiic6w264mceip7tcl563dxcvkrobvx3geoq7q",
"web": "https://replicate.com/p/m2hek1r0phrme0cn0sbt2nns1w"
},
"metrics": {
"predict_time": 31.956780011,
"total_time": 43.250187
}
}