const output = await replicate.run(
"prompthunt/kohya:f5f1122a02e0260aada7e9c274ce1befab036b688304cb711456e191a6f054c7",
{
input: {
seed: 1234,
width: 768,
height: 1024,
prompt: "a TOK man in preppy style, old money aesthetic, posh style, elite school stlye, luxurious style, gossip girl neo-prep style, ralph lauren style, country club style, ivy league style",
weights: "https://replicate.delivery/pbxt/cv7B5U7T4G4kFN8eXIg7F8FRfbC54hIWyeizfNuH9lcBevtOC/trained_model.tar",
scheduler: "K_EULER",
lora_scale: 0.4,
upscale_by: 1.5,
num_outputs: 1,
guidance_scale: 9,
inpaint_prompt: "closeup of TOK man, natural skin, skin moles, 37 y o caucasian",
upscale_prompt: "closeup of TOK man, natural skin, skin moles, 37 y o caucasian",
negative_prompt: "plastic, blurry, grainy, [deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry",
prompt_strength: 0.8,
inpaint_strength: 0.35,
mask_blur_amount: 8,
upscale_strength: 0.35,
num_inference_steps: 25,
inpaint_guidance_scale: 9,
upscale_guidance_scale: 9,
inpaint_negative_prompt: "plastic, blurry, grainy, [deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry",
upscale_negative_prompt: "plastic, blurry, grainy, [deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry",
inpaint_num_inference_steps: 25,
upscale_num_inference_steps: 25,
controlnet_conditioning_scale: 0.6
}
}
);
console.log(output[0].url());
fs.writeFile("my-image.png", output[0]);