const output = await replicate.run(
"zelenioncode/webcustomer:315c8cb0f1eb323be372537c7b086321845285cfc14714ecfddf1768ee4236ec",
{
input: {
gender: "woman",
prompt: "portrait photo of casual sophisticated man, looking camera, yellow background, classic side part, yellow turtleneck sweater, skin imperfections, 8k uhd, dsir, soft lighting, high quality, film grain, Fujifilm XT3",
json_data: "{\"style\":[{\"background\":\"white\",\"clothes\":\"white shirt\",\"number_picture\":12},{\"background\":\"office\",\"clothes\":\"blue polo\",\"number_picture\":12},{\"background\":\"white\",\"clothes\":\"black sweater\",\"number_picture\":4},{\"background\":\"white\",\"clothes\":\"blue polo\",\"number_picture\":5}]}",
negative_prompt: "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, BadDream, UnrealisticDream",
link_safetensors: "https://huggingface.co/SG161222/RealVisXL_V3.0/resolve/main/RealVisXL_V3.0.safetensors?download=true"
}
}
);
console.log(output[0].url());
fs.writeFile("my-image.png", output[0]);