# Can't create endpoint for private model

**URL:** <https://discuss.huggingface.co/t/cant-create-endpoint-for-private-model/47104>\
**Category:** Inference Endpoints on the Hub\
**Created:** [July 17, 2023, 5:17pm UTC](https://discuss.huggingface.co/t/cant-create-endpoint-for-private-model/47104 "2023-07-17T17:17:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alienelf](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/alienelf/32/16633_2.png) [@alienelf](https://discuss.huggingface.co/u/alienelf)\
**Post date:** [July 17, 2023, 5:17pm UTC](https://discuss.huggingface.co/t/cant-create-endpoint-for-private-model/47104/1 "2023-07-17T17:17:09Z")

</div>

Hi Team,

I am trying to create a protected inference endpoint for a private model but I am getting this error:  
“Private models can only be used within the same organisation”

I’m not quite sure what the issue is since I am not trying to create it outside of the organisation.  
I have recently noticed bugs on the free tier (Inference API) too that seem to be related to private models

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/d/d/ddaaceada26e055d5422d2c2bb1df868aae37a57.png)  
i

Happy to provide any more information to replicate. Browser is Chrome, I tried both Azure and AWS and same error. The model is a Wav2Vec2.

Any assistance would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![philschmid](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/philschmid/32/38022_2.png) [@philschmid](https://discuss.huggingface.co/u/philschmid)\
**Post date:** [July 18, 2023, 7:01am UTC](https://discuss.huggingface.co/t/cant-create-endpoint-for-private-model/47104/2 "2023-07-18T07:01:50Z")

</div>

It seems like that you are trying to deploy a private model (repository) from a user or organization where you don’t have access to with the current user in inference endpoints.

---

<div class="post-metadata">

**Author:** ![alienelf](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/alienelf/32/16633_2.png) [@alienelf](https://discuss.huggingface.co/u/alienelf)\
**Post date:** [July 18, 2023, 7:13am UTC](https://discuss.huggingface.co/t/cant-create-endpoint-for-private-model/47104/3 "2023-07-18T07:13:47Z")

</div>

My user does have access to it though.

* * *

EDIT: I have identified the problem. When viewing the model in the hub and clicking on the “Deploy” it autopopulates a page with details for the model. However, it was using my own user, rather than deploying using the organisation. I switched to the organisation and was able to create the model.

That said, given I have access to the model (I am the owner of the organisation) I’m surprised it didn’t work - or at least, the error message or UX could be clearer

---

<div class="post-metadata">

**Author:** ![anon47065575](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@anon47065575](https://discuss.huggingface.co/u/anon47065575)\
**Post date:** [October 30, 2023, 2:57am UTC](https://discuss.huggingface.co/t/cant-create-endpoint-for-private-model/47104/4 "2023-10-30T02:57:16Z")

</div>

I am also facing this issue, just regarding the solution could you clarify what you mean by switched to the organisation?  
EDIT: Follow the solution outlined here

> **[Change Organization or Account](https://huggingface.co/docs/inference-endpoints/guides/change_organization)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.
