Run davidkwcheng/jessicayu02 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"davidkwcheng/jessicayu02:ddaa7ec7edf2b43ea5fee72950a662179dbaf54ee3bb4e8075cbe14efdd6e8c2",
input={
"model": "dev",
"prompt": "portrait of jessicayu walking on the street of New York",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 4,
"aspect_ratio": "16:9",
"output_format": "jpg",
"guidance_scale": 3.5,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 0.8,
"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())