Run superhighfives/test-model-1234 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"superhighfives/test-model-1234:cf2c1ff714beb0ea9dd6199fe2dc88d98add9109b93d853201032c0a2fcf8454",
input={
"scale": 1.5
}
)
# To access the file URL:print(output.url())
#=> "http://example.com"# To write the file to disk:withopen("my-image.png", "wb") as file:
file.write(output.read())