# Model working on free api but not on paid one

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodel-working-on-free-api-but-not-on-paid-one%2F61690%3E%5C
**Category:** Inference Endpoints on the Hub\
**Created:** [November 9, 2023, 7:07pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodel-working-on-free-api-but-not-on-paid-one%2F61690 "2023-11-09T19:07:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blackcastlesol](https://avatars.discourse-cdn.com/v4/letter/b/dfb087/32.png) [@blackcastlesol](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fblackcastlesol)%5C
**Post date:** [November 9, 2023, 7:07pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodel-working-on-free-api-but-not-on-paid-one%2F61690%2F1 "2023-11-09T19:07:13Z")

</div>

Hi guys, I deployed this endpoint:

[https://ui.endpoints.huggingface.co/blackcastlesol/endpoints/aws-segformer-b0-clothes-5567](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 [/static-proxy?url=https%3A%2F%2Fapi-inference.huggingface.co%2Fmodels%2Fmattmdjaga%2Fsegformer%5C_b0%5C_clothes%5D(https%3A%2F%2Fapi-inference.huggingface.co%2Fmodels%2Fmattmdjaga%2Fsegformer_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?
