Pass the useFileOutput: false option to the Replicate constructor and you will get back the URL of the file instead of the file itself.
useFileOutput: false
Replicate