Run citoreh/shahzadeh using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"citoreh/shahzadeh:cddc1efdbcf0f39b578d724ba0ff704c8f37c7cbc7b9d9b9584253dca7cf4286",
input={
"model": "dev",
"prompt": "A woman is reading a book in a coffee shop, looking at the camera. shahzadeh",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"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())