Run hsiangyuhuang/budapest using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"hsiangyuhuang/budapest:ab8f51ef6d67389a5671831da85420bbbe9327af8ae67389526b4cd93c3d33af",
{
input: {
model: "dev",
prompt: "A man reading at a desk in a study, he wears glasses and behind him are rows of bookshelves .<BUDAPEST>",
go_fast: false,
lora_scale: 1,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "1:1",
output_format: "webp",
guidance_scale: 3.5,
output_quality: 90,
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 hsiangyuhuang/budapest using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"hsiangyuhuang/budapest:ab8f51ef6d67389a5671831da85420bbbe9327af8ae67389526b4cd93c3d33af",
input={
"model": "dev",
"prompt": "A man reading at a desk in a study, he wears glasses and behind him are rows of bookshelves .<BUDAPEST>",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 90,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 28
}
)
print(output)