Run swk23/mauls using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"swk23/mauls:fd70c0597847c0fea51c1ce43645ba6d443e61083812e15a2d0bc92323e7d1d0",
{
input: {
model: "dev",
prompt: "Maul stands in the dimly lit Mandalorian palace, his crimson lightsaber ignited. The red glow illuminates his tattoos and fierce yellow eyes, radiating menace. Shadows dance on the stone floor as he grips his weapon tightly, his gaze burning with rage and triumph, the cold throne looming behind him.",
go_fast: false,
lora_scale: 1,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "21:9",
output_format: "jpg",
guidance_scale: 3,
output_quality: 80,
prompt_strength: 0.8,
extra_lora_scale: 1,
num_inference_steps: 28
}
}
);
// To access the file URL:console.log(output[0].url()); //=> "http://example.com"// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
Run swk23/mauls using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"swk23/mauls:fd70c0597847c0fea51c1ce43645ba6d443e61083812e15a2d0bc92323e7d1d0",
input={
"model": "dev",
"prompt": "Maul stands in the dimly lit Mandalorian palace, his crimson lightsaber ignited. The red glow illuminates his tattoos and fierce yellow eyes, radiating menace. Shadows dance on the stone floor as he grips his weapon tightly, his gaze burning with rage and triumph, the cold throne looming behind him.",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "21:9",
"output_format": "jpg",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 28
}
)
print(output)