Run advaitchauhan/xiaomicar using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"advaitchauhan/xiaomicar:c2f32873278c44ea2a8a33f875cd08b705a601f24e9aa841fe8776d6c9244406",
{
input: {
model: "dev",
prompt: "CINTHIA sitting inside her light blue xiaomicar as she drives it. The xiaomicar should be visible since this is an advertisement for xiaomicar. The image is hyper-realistic, with detailed textures. ",
go_fast: false,
extra_lora: "darionaviar/cinthia",
lora_scale: 1,
megapixels: "1",
num_outputs: 4,
aspect_ratio: "1:1",
output_format: "webp",
guidance_scale: 3.5,
output_quality: 90,
prompt_strength: 0.8,
extra_lora_scale: 0.6,
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 advaitchauhan/xiaomicar using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"advaitchauhan/xiaomicar:c2f32873278c44ea2a8a33f875cd08b705a601f24e9aa841fe8776d6c9244406",
input={
"model": "dev",
"prompt": "CINTHIA sitting inside her light blue xiaomicar as she drives it. The xiaomicar should be visible since this is an advertisement for xiaomicar. The image is hyper-realistic, with detailed textures. ",
"go_fast": False,
"extra_lora": "darionaviar/cinthia",
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 4,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 90,
"prompt_strength": 0.8,
"extra_lora_scale": 0.6,
"num_inference_steps": 28
}
)
# To access the file URL:print(output[0].url())
#=> "http://example.com"# To write the file to disk:withopen("my-image.png", "wb") as file:
file.write(output[0].read())