Run iamprofessorex/swagg-yt-vibes using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"iamprofessorex/swagg-yt-vibes:302b7132ac17d544d5b58192aa791c517c4afd243876ae75b84ac8d4782f6b1d",
input={
"model": "dev",
"prompt": "Create a youtube cover for iamprofessorex playing super mario in the SWAGGYTVIBES asthetic",
"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())