Run myaiteam2/3d-simplify using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"myaiteam2/3d-simplify:a04a4efd89940b82514a99517d6c030ced950bebefcc1614586b82d253857fee",
input={
"mesh_file": "google.com",
"target_faces": 5000
}
)
# 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())