Closed hktalent closed 9 months ago
@hktalent It looks like Replicate's API is rejecting the request because the base64-encoded image data URI is malformed or (more likely) too large. Consider uploading your image to a URL and passing that instead.
@mattt Okay, I understand. Can you give me an example of replicating a temporary image? Thank you so much
@hktalent You can find plenty of examples for uploading files to AWS S3 / Cloudflare R2, services like upload.io, or to your own server using SFTP. It all depends on your particular requirements. So long as you can get a public HTTPS URL to an asset, you can pass that as a string input to your model.