# Spaces - Error. API, Status Code: 400

**URL:** <https://discuss.huggingface.co/t/spaces-error-api-status-code-400/49266>\
**Category:** Spaces\
**Created:** [August 3, 2023, 7:17am UTC](https://discuss.huggingface.co/t/spaces-error-api-status-code-400/49266 "2023-08-03T07:17:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stradegio](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@Stradegio](https://discuss.huggingface.co/u/Stradegio)\
**Post date:** [August 3, 2023, 7:17am UTC](https://discuss.huggingface.co/t/spaces-error-api-status-code-400/49266/1 "2023-08-03T07:17:46Z")

</div>

When I submit an input into the spaces model I receive the message:

_Error. Could not complete request to HuggingFace API, Status Code: 400, Error: Model requires a Pro subscription_

I do have a Pro Subscription, so not sure why this isn’t working.

I have tried rebooting the space but that hasn’t made a difference. Image with the model type and the error is below.

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/5/1/51c990fd4e1535a27992f850ae2a1645f2dd7a77.png)

---

<div class="post-metadata">

**Author:** ![Pierz](https://avatars.discourse-cdn.com/v4/letter/p/858c86/32.png) [@Pierz](https://discuss.huggingface.co/u/Pierz)\
**Post date:** [August 15, 2023, 6:20am UTC](https://discuss.huggingface.co/t/spaces-error-api-status-code-400/49266/2 "2023-08-15T06:20:14Z")

</div>

I have the exact same issue, suspiciously with the exact same model! Did you find an answer for it?

---

<div class="post-metadata">

**Author:** ![Stradegio](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@Stradegio](https://discuss.huggingface.co/u/Stradegio)\
**Post date:** [August 15, 2023, 6:38am UTC](https://discuss.huggingface.co/t/spaces-error-api-status-code-400/49266/3 "2023-08-15T06:38:46Z")

</div>

Hi Pierz. No I didn’t find a solution. I just stopped trying to use that model on spaces. It is a big model so maybe that was the issue. I haven’t had any problems with the 13b or 7b model. Still open to suggestions if anyone has thoughts.

---

<div class="post-metadata">

**Author:** ![osanseviero](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/osanseviero/32/38738_2.png) [@osanseviero](https://discuss.huggingface.co/u/osanseviero)\
**Post date:** [August 15, 2023, 9:39am UTC](https://discuss.huggingface.co/t/spaces-error-api-status-code-400/49266/4 "2023-08-15T09:39:13Z")

</div>

Hi there! For the 7B, 13B, and 70B chat models the Space is using a custom endpoint to make super fast inference and not affect other users. That’s why, when duplicated, it’s not working. You can change it to this endpoint if you have a PRO account. [Julien Chaumond on LinkedIn: Llama 2 just landed in Hugging Face Inference API 🔥 It is available for… | 43 comments](https://www.linkedin.com/posts/julienchaumond_llama-2-just-landed-in-hugging-face-inference-activity-7089986843839979521-e1vT?utm_source=share&utm_medium=member_desktop)

---

<div class="post-metadata">

**Author:** ![Stradegio](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@Stradegio](https://discuss.huggingface.co/u/Stradegio)\
**Post date:** [August 15, 2023, 11:49am UTC](https://discuss.huggingface.co/t/spaces-error-api-status-code-400/49266/5 "2023-08-15T11:49:53Z")

</div>

Thanks Osanseviero, this is useful. I’m new to using hugging face, I’m running the models on spaces currently and have checked out the code for the space but can’t see where the code for the endpoint sits to update it. Do you have any suggestions on how to do this? I do have a pro account.

---

<div class="post-metadata">

**Author:** ![osanseviero](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/osanseviero/32/38738_2.png) [@osanseviero](https://discuss.huggingface.co/u/osanseviero)\
**Post date:** [August 15, 2023, 12:09pm UTC](https://discuss.huggingface.co/t/spaces-error-api-status-code-400/49266/6 "2023-08-15T12:09:56Z")

</div>

Hi Stradegio. I see you have a Space (7b chat) which is working fine. Sorry for the confusion, the 7B and 13B Spaces actually run the model directly on the space, so duplicating the base ones and assigning a GPU + adding your token should be enough.
