Request Entity Too Large

Good day Roboflow community

I have been busy training multiple classification models in recent months. I hope to help people organize their photos with this. Although I have come a long way and have well-functioning python scripts, I am now running into a limitation. Maybe you can help me with that, or give us a direction where I can ask this question.

In my script I let my Roboflow model make a prediction via the API. Now it seems more and more that there is a limit for the file size. At first I thought this was around 7mb, but now compressed files of around 5mb are also rejected. {“message”:“Request Entity Too Large”}

I have seen two other topics on this forum with similar questions but the solution is still not clear to me.

I can well imagine that this is a limitation from the free plan. Can you tell me with certainty that this limitation is not present in the basic plan, for example?

Thank you very much for your response in advance.

Kind regards,

Ruud van Dijk

Hi @RvD!
I am sorry that you have run into this issue. When using hosted inference, we recommend keeping image file sizes under 5MB.

Thank you for contributing to the Roboflow community!!

Best Regards,
Ford

Hi @Ford,

Hi, thanks for your quick response. Are you sure 5mb is the right limit? Files smaller than 5mb are still not accepted.

Also seeing files with smaller sizes being rejected.

Hi @Rayray93!
I’m sorry you’re running into this issue. A couple of asks to help us troubleshoot this issue:

  1. Do you mind providing a sample image that is returning this error?
  2. Could you also send us a simple python script, like the one you’re using to call the API, to try to reproduce this issue? Please redact any API keys before posting.
  3. Are you calling this endpoint on a universe model or a model on your workspace? If you’re using a private model, could you point us to the project and also allow us to add ourselves to the workspace to speed up the troubleshoot?

Thank you!

Hi Ford,

  1. How would you like me to share the images with you?
  2. Sure. No problem. How should I send you the script?
  3. I am not sure if I understand you. I have trained a model and call it with API via Python script.