Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ApiError: Request to https://api.replicate.com/v1/files failed with status 413 Request Entity Too Large #286

Closed
flexchar opened this issue Jul 5, 2024 · 1 comment

Comments

@flexchar
Copy link

flexchar commented Jul 5, 2024

Trying to consume Whisper API with an audio file passed as a Blob to input. I receive ApiError: Request to https://api.replicate.com/v1/files failed with status 413 Request Entity Too Large: <html>....

My audio file is 215MB.

I won't include the code example as this seems to be undocumented API limitation. I also couldn't find any docs on file size limit beyond a few brief mentions on the feature in README.

File handle inputs are automatically uploaded to Replicate. See replicate.files.create for more information.

Is this something that could be raised? :)

In regards to this model/client using the most recent version as of today, July 5th 2024: https://replicate.com/turian/insanely-fast-whisper-with-video/api

@mattt
Copy link
Contributor

mattt commented Jul 5, 2024

Hi @flexchar. Sorry for the inconvenience there. You're correct that there's currently an undocumented upload limit of 100MiB. This will be documented with #287.

We're working to raise that limit in the future. But for now, our guidance is to upload larger files to your own storage provider and pass a public URL as an input.

@mattt mattt closed this as completed Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants