{
"creativity": 0.4,
"format": "jpg",
"guess_mode": false,
"guidance_scale": 0,
"hdr": 0,
"image": "https://replicate.delivery/pbxt/LKnw8rSgafZf4IlAVyPhzpX1TpTVcyfRa1saoaoiSfUYZLiL/fermat_app_a_living_room_modern_and_minimalistic_39b5a58a-e05b-4281-ac24-e87435256333-1.webp",
"lora_details_strength": -0.25,
"lora_sharpness_strength": 0.75,
"negative_prompt": "Teeth, tooth, open mouth, longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, mutant",
"prompt": "a nordic livingroom, 4k interior photography, uhd",
"resemblance": 0.85,
"resolution": 2560,
"scheduler": "DDIM",
"steps": 8,
"tile_size": 768
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_9yF**********************************
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:13c637d35ebfe5e44a5297c370134b0f6921d0ee73f103ccfee7349dcaf59c76",
{
input: {
creativity: 0.4,
format: "jpg",
guess_mode: false,
guidance_scale: 0,
hdr: 0,
image: "https://replicate.delivery/pbxt/LKnw8rSgafZf4IlAVyPhzpX1TpTVcyfRa1saoaoiSfUYZLiL/fermat_app_a_living_room_modern_and_minimalistic_39b5a58a-e05b-4281-ac24-e87435256333-1.webp",
lora_details_strength: -0.25,
lora_sharpness_strength: 0.75,
negative_prompt: "Teeth, tooth, open mouth, longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, mutant",
prompt: "a nordic livingroom, 4k interior photography, uhd",
resemblance: 0.85,
resolution: 2560,
scheduler: "DDIM",
steps: 8,
tile_size: 768
}
}
);
// 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=r8_9yF**********************************
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:13c637d35ebfe5e44a5297c370134b0f6921d0ee73f103ccfee7349dcaf59c76",
input={
"creativity": 0.4,
"format": "jpg",
"guess_mode": False,
"guidance_scale": 0,
"hdr": 0,
"image": "https://replicate.delivery/pbxt/LKnw8rSgafZf4IlAVyPhzpX1TpTVcyfRa1saoaoiSfUYZLiL/fermat_app_a_living_room_modern_and_minimalistic_39b5a58a-e05b-4281-ac24-e87435256333-1.webp",
"lora_details_strength": -0.25,
"lora_sharpness_strength": 0.75,
"negative_prompt": "Teeth, tooth, open mouth, longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, mutant",
"prompt": "a nordic livingroom, 4k interior photography, uhd",
"resemblance": 0.85,
"resolution": 2560,
"scheduler": "DDIM",
"steps": 8,
"tile_size": 768
}
)
# To access the file URL:
print(output.url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output.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_9yF**********************************
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:13c637d35ebfe5e44a5297c370134b0f6921d0ee73f103ccfee7349dcaf59c76",
"input": {
"creativity": 0.4,
"format": "jpg",
"guess_mode": false,
"guidance_scale": 0,
"hdr": 0,
"image": "https://replicate.delivery/pbxt/LKnw8rSgafZf4IlAVyPhzpX1TpTVcyfRa1saoaoiSfUYZLiL/fermat_app_a_living_room_modern_and_minimalistic_39b5a58a-e05b-4281-ac24-e87435256333-1.webp",
"lora_details_strength": -0.25,
"lora_sharpness_strength": 0.75,
"negative_prompt": "Teeth, tooth, open mouth, longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, mutant",
"prompt": "a nordic livingroom, 4k interior photography, uhd",
"resemblance": 0.85,
"resolution": 2560,
"scheduler": "DDIM",
"steps": 8,
"tile_size": 768
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Loading...
{
"id": "4xg26j3bc9rgm0cgxs28xehaag",
"model": "fermatresearch/high-resolution-controlnet-tile",
"version": "13c637d35ebfe5e44a5297c370134b0f6921d0ee73f103ccfee7349dcaf59c76",
"input": {
"creativity": 0.4,
"format": "jpg",
"guess_mode": false,
"guidance_scale": 0,
"hdr": 0,
"image": "https://replicate.delivery/pbxt/LKnw8rSgafZf4IlAVyPhzpX1TpTVcyfRa1saoaoiSfUYZLiL/fermat_app_a_living_room_modern_and_minimalistic_39b5a58a-e05b-4281-ac24-e87435256333-1.webp",
"lora_details_strength": -0.25,
"lora_sharpness_strength": 0.75,
"negative_prompt": "Teeth, tooth, open mouth, longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, mutant",
"prompt": "a nordic livingroom, 4k interior photography, uhd",
"resemblance": 0.85,
"resolution": 2560,
"scheduler": "DDIM",
"steps": 8,
"tile_size": 768
},
"logs": "Using seed: 20941\nThe config attributes {'solver_order': 2, 'algorithm_type': 'deis', 'solver_type': 'logrho', 'lower_order_final': True, 'use_karras_sigmas': False} were passed to LCMScheduler, but are not expected and will be ignored. Please verify your scheduler_config.json configuration file.\n 0%| | 0/3 [00:00<?, ?it/s]\n 33%|███▎ | 1/3 [00:00<00:00, 2.53it/s]\n 67%|██████▋ | 2/3 [00:00<00:00, 3.74it/s]\n100%|██████████| 3/3 [00:00<00:00, 4.42it/s]\n100%|██████████| 3/3 [00:00<00:00, 4.00it/s]\n 0%| | 0/3 [00:00<?, ?it/s]\n 33%|███▎ | 1/3 [00:00<00:01, 1.95it/s]\n 67%|██████▋ | 2/3 [00:00<00:00, 2.87it/s]\n100%|██████████| 3/3 [00:00<00:00, 3.39it/s]\n100%|██████████| 3/3 [00:00<00:00, 3.07it/s]\n 0%| | 0/3 [00:00<?, ?it/s]\n 33%|███▎ | 1/3 [00:00<00:01, 1.19it/s]\n 67%|██████▋ | 2/3 [00:01<00:00, 1.72it/s]\n100%|██████████| 3/3 [00:01<00:00, 2.01it/s]\n100%|██████████| 3/3 [00:01<00:00, 1.83it/s]\n 0%| | 0/3 [00:00<?, ?it/s]\n 33%|███▎ | 1/3 [00:00<00:00, 3.68it/s]\n 67%|██████▋ | 2/3 [00:00<00:00, 5.52it/s]\n100%|██████████| 3/3 [00:00<00:00, 6.58it/s]\n100%|██████████| 3/3 [00:00<00:00, 5.92it/s]\n 0%| | 0/3 [00:00<?, ?it/s]\n 33%|███▎ | 1/3 [00:00<00:01, 1.96it/s]\n 67%|██████▋ | 2/3 [00:00<00:00, 2.89it/s]\n100%|██████████| 3/3 [00:00<00:00, 3.41it/s]\n100%|██████████| 3/3 [00:00<00:00, 3.09it/s]\n 0%| | 0/3 [00:00<?, ?it/s]\n 33%|███▎ | 1/3 [00:00<00:01, 1.52it/s]\n 67%|██████▋ | 2/3 [00:00<00:00, 2.22it/s]\n100%|██████████| 3/3 [00:01<00:00, 2.60it/s]\n100%|██████████| 3/3 [00:01<00:00, 2.36it/s]\n 0%| | 0/3 [00:00<?, ?it/s]\n 33%|███▎ | 1/3 [00:00<00:00, 3.60it/s]\n 67%|██████▋ | 2/3 [00:00<00:00, 5.34it/s]\n100%|██████████| 3/3 [00:00<00:00, 6.30it/s]\n100%|██████████| 3/3 [00:00<00:00, 5.70it/s]\n 0%| | 0/3 [00:00<?, ?it/s]\n 33%|███▎ | 1/3 [00:00<00:00, 9.58it/s]\n100%|██████████| 3/3 [00:00<00:00, 14.86it/s]\n100%|██████████| 3/3 [00:00<00:00, 14.07it/s]\n 0%| | 0/3 [00:00<?, ?it/s]\n 33%|███▎ | 1/3 [00:00<00:01, 1.76it/s]\n 67%|██████▋ | 2/3 [00:00<00:00, 2.59it/s]\n100%|██████████| 3/3 [00:01<00:00, 3.05it/s]\n100%|██████████| 3/3 [00:01<00:00, 2.76it/s]\n 0%| | 0/3 [00:00<?, ?it/s]\n 33%|███▎ | 1/3 [00:00<00:00, 5.07it/s]\n100%|██████████| 3/3 [00:00<00:00, 8.61it/s]\n100%|██████████| 3/3 [00:00<00:00, 8.05it/s]\n 0%| | 0/3 [00:00<?, ?it/s]\n 33%|███▎ | 1/3 [00:00<00:01, 1.76it/s]\n 67%|██████▋ | 2/3 [00:00<00:00, 2.61it/s]\n100%|██████████| 3/3 [00:01<00:00, 3.08it/s]\n100%|██████████| 3/3 [00:01<00:00, 2.78it/s]\n 0%| | 0/3 [00:00<?, ?it/s]\n 33%|███▎ | 1/3 [00:00<00:01, 1.34it/s]\n 67%|██████▋ | 2/3 [00:01<00:00, 1.95it/s]\n100%|██████████| 3/3 [00:01<00:00, 2.28it/s]\n100%|██████████| 3/3 [00:01<00:00, 2.08it/s]\n 0%| | 0/3 [00:00<?, ?it/s]\n 33%|███▎ | 1/3 [00:00<00:01, 1.34it/s]\n 67%|██████▋ | 2/3 [00:01<00:00, 1.95it/s]\n100%|██████████| 3/3 [00:01<00:00, 2.27it/s]\n100%|██████████| 3/3 [00:01<00:00, 2.07it/s]\n 0%| | 0/3 [00:00<?, ?it/s]\n 33%|███▎ | 1/3 [00:00<00:00, 4.06it/s]\n 67%|██████▋ | 2/3 [00:00<00:00, 6.06it/s]\n100%|██████████| 3/3 [00:00<00:00, 7.20it/s]\n100%|██████████| 3/3 [00:00<00:00, 6.49it/s]\n 0%| | 0/3 [00:00<?, ?it/s]\n 33%|███▎ | 1/3 [00:00<00:00, 4.88it/s]\n100%|██████████| 3/3 [00:00<00:00, 8.16it/s]\n100%|██████████| 3/3 [00:00<00:00, 7.65it/s]\n 0%| | 0/3 [00:00<?, ?it/s]\n 33%|███▎ | 1/3 [00:00<00:00, 3.97it/s]\n 67%|██████▋ | 2/3 [00:00<00:00, 5.86it/s]\n100%|██████████| 3/3 [00:00<00:00, 6.92it/s]\n100%|██████████| 3/3 [00:00<00:00, 6.26it/s]\n 0%| | 0/2 [00:00<?, ?it/s]\n 50%|█████ | 1/2 [00:03<00:03, 3.98s/it]\n100%|██████████| 2/2 [00:06<00:00, 2.94s/it]\n100%|██████████| 2/2 [00:06<00:00, 3.10s/it]",
"output": "https://replicate.delivery/pbxt/YFlNVWt9oEpTMVEKg69wXDRGtjHSHKV02ESZeChKj69ffiYmA/output.jpg",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2024-07-26T08:59:39.746Z",
"started_at": "2024-07-26T09:00:53.406266Z",
"completed_at": "2024-07-26T09:01:53.303407Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/4xg26j3bc9rgm0cgxs28xehaag/cancel",
"get": "https://api.replicate.com/v1/predictions/4xg26j3bc9rgm0cgxs28xehaag",
"web": "https://replicate.com/p/4xg26j3bc9rgm0cgxs28xehaag"
},
"metrics": {
"predict_time": 59.897140822,
"total_time": 133.557407
}
}