const output = await replicate.run(
"qr2ai/mb:6f160baf6df942da5f553fcfdf98b3270e0389fa2a1abd5f873951a05723a871",
{
input: {
seed: 0,
width: 1920,
height: 1088,
prompt: "An acrylic painting featuring flowing, elegant strokes, set against a swirling backdrop of deep charcoal, slate gray, and ethereal white. Accents of radiant gold and soft amber cascade across the canvas, highlighted by delicate specks of luminescent gold dust.",
sampler: "Euler a",
blur_size: 3,
use_canny: false,
lora_input: "",
lora_scale: "",
kernel_size: 3,
num_outputs: 1,
sketch_type: "HedPidNet",
suffix_prompt: "Imagine the harmonious blend of graceful forms and cosmic elegance, where each curve and line tells a story amidst the celestial backdrop, captured in a luxurious interplay of dark and light hues.",
guidance_scale: 12,
weight_primary: 0.7,
generate_square: false,
negative_prompt: "worst quality, low quality, low resolution, blurry, ugly, disfigured, uncrafted, filled ring, packed ring, cross, star, distorted, stagnant, watermark",
weight_secondary: 0.6,
erosion_iterations: 2,
dilation_iterations: 5,
num_inference_steps: 35,
adapter_conditioning_scale: 0.97
}
}
);
console.log(output[0].url());
fs.writeFile("my-image.png", output[0]);