const output = await replicate.run(
"zenaivn/dreambooth-inference:3c1a91b8890160b64d7868228df65ceb69ec4f874c311e81f8c6259bb46ea8b6",
{
input: {
width: 512,
height: 640,
prompt: "a professional photo portrait of ohwx woman",
hiresfix: true,
scheduler: "DPMSolverMultistep",
num_outputs: 1,
inpaint_face: true,
guidance_scale: 7.5,
multi_faceswap: false,
negative_prompt: "nude, old, wrinkles, mole, blemish, scar, cg, 3d",
only_inpainting: false,
single_faceswap: false,
weight_prompting: true,
is_inpainting_n2h: false,
gfpgan_enhancement: false,
num_inference_steps: 35,
only_super_resolution: false,
codeformer_enhancement: false,
only_inpainting_images: "",
upscale_for_inpainting: true,
super_resolution_clarity: false,
single_faceswap_ipadapter: true,
super_resolution_supir_ccsr: false,
only_super_resolution_images: "",
super_resolution_realesrgan_2x: false,
super_resolution_realesrgan_4x: true
}
}
);
console.log(output[0].url());
fs.writeFile("my-image.png", output[0]);