Model working on free api but not on paid one

Hi guys, I deployed this endpoint:

https://ui.endpoints.huggingface.co/blackcastlesol/endpoints/aws-segformer-b0-clothes-5567

The problem is, when i try to use it, i get an error that I do not get with the free Inference Api.

curl https://api-inference.huggingface.co/models/mattmdjaga/segformer_b0_clothes
-X POST
–data-binary ‘@kjbed.jpg
-H “Authorization: Bearer my-inferenceapi-key”

this is how i try it on the free inference api and it returns result perfectly, but when i deploy and use the curl or other test methods, i get TypeError: ‘Image’ object is not subscriptable error.

Any ideas?