const output = await replicate.run(
"lightweight-ai/model2_8:be295345a8b0581b5b36cdab7d5ba128b7a35195368608d2616fbb34dc72b0f6",
{
input: {
loras: [],
width: 1024,
height: 1024,
prompt: "A bohemian-style female travel blogger with sun-kissed skin and messy beach waves",
inpaint: false,
version: 0,
annotator: "canny",
brightness: 1,
controlnet: false,
lora_scales: [],
num_outputs: 1,
nsfw_chekcer: false,
low_threshold: 100,
output_format: "png",
guidance_scale: 3.5,
high_threshold: 200,
output_quality: 100,
prompt_strength: 0.8,
control_strength: 0.65,
num_inference_steps: 28,
control_guidance_end: 0.8,
control_guidance_start: 0
}
}
);
console.log(output[0].url());
fs.writeFile("my-image.png", output[0]);