const output = await replicate.run(
"okaris/omni-bg:7ac428cb675977ea6b2eac6478174b4c4554692e5d36bf5e01f0e61b7a3ec0b7",
{
input: {
seed: -1,
width: 1024,
height: 768,
debug_mode: false,
force_center: false,
prompt_prefix: "photograph",
prompt_suffix: ",high quality, medium format, f/32, realistic, cinematic, RAW",
object_padding: 0.1,
light_mix_scale: 0.5,
negative_prompt: "",
override_prompt: "",
skip_light_pass: false,
first_pass_steps: 10,
light_pass_steps: 10,
skip_second_pass: false,
second_pass_steps: 10,
first_pass_pag_scale: 2,
background_brightness: 0.5,
final_step_upscale_4x: false,
second_pass_pag_scale: 1,
first_pass_i2i_strength: 1,
first_pass_line_strength: 1,
second_pass_i2i_strength: 0.5,
first_pass_depth_strength: 0,
first_pass_guidance_scale: 4,
light_pass_guidance_scale: 7,
second_pass_line_strength: 1,
second_pass_depth_strength: 1,
second_pass_guidance_scale: 4,
first_pass_outpaint_strength: 1,
second_pass_outpaint_strength: 1
}
}
);
console.log(output[0].url());
fs.writeFile("my-image.png", output[0]);