# Difference between pinned models and Inference endpoints

**URL:** <https://discuss.huggingface.co/t/difference-between-pinned-models-and-inference-endpoints/25912>\
**Category:** 🤗Hub\
**Created:** [November 11, 2022, 8:33am UTC](https://discuss.huggingface.co/t/difference-between-pinned-models-and-inference-endpoints/25912 "2022-11-11T08:33:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![popaqy](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/popaqy/32/12324_2.png) [@popaqy](https://discuss.huggingface.co/u/popaqy)\
**Post date:** [November 11, 2022, 8:33am UTC](https://discuss.huggingface.co/t/difference-between-pinned-models-and-inference-endpoints/25912/1 "2022-11-11T08:33:44Z")

</div>

I am looking to deploy my model online and it seems like I have 2 options:

1. Pinned model
2. Inference Endpoint

What’s the difference between these two?

---

<div class="post-metadata">

**Author:** ![stevhliu](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/stevhliu/32/18373_2.png) [@stevhliu](https://discuss.huggingface.co/u/stevhliu)\
**Post date:** [November 14, 2022, 4:05pm UTC](https://discuss.huggingface.co/t/difference-between-pinned-models-and-inference-endpoints/25912/2 "2022-11-14T16:05:48Z")

</div>

Hi @popaqy, here is a very high-level overview:

1. Pinned models (just a model preloaded for inference) are available through the [Inference API](https://huggingface.co/docs/api-inference/usage#pinned-models), but it is only supported and available to existing paying customers. Otherwise, Inference API is a free product 🙂
2. [Inference Endpoint](https://huggingface.co/docs/inference-endpoints/index) is like the next iteration of pinned models, and it’ll build and deploy your model on its own secure Endpoint with cool autoscaling and security features. You can also choose your own CPU/GPU depending on your needs to keep costs low. Check this out if you need a production-ready environment for your model!

---

<div class="post-metadata">

**Author:** ![popaqy](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/popaqy/32/12324_2.png) [@popaqy](https://discuss.huggingface.co/u/popaqy)\
**Post date:** [November 17, 2022, 7:35am UTC](https://discuss.huggingface.co/t/difference-between-pinned-models-and-inference-endpoints/25912/3 "2022-11-17T07:35:21Z")

</div>

Thank you a lot for the answer.

I have a follow-up question:

For Inference API it is said that the model is run on Intel Ice Lake CPU but the instance is not explicitly mentioned. Can you tell me which of the following instances does the Inference API use?

 ![Screenshot (38)](https://us1.discourse-cdn.com/hellohellohello/original/2X/a/a44aeb718dcd78bc0b8cbaebee3649b2585f1c71.png)

---

<div class="post-metadata">

**Author:** ![stevhliu](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/stevhliu/32/18373_2.png) [@stevhliu](https://discuss.huggingface.co/u/stevhliu)\
**Post date:** [November 17, 2022, 2:52pm UTC](https://discuss.huggingface.co/t/difference-between-pinned-models-and-inference-endpoints/25912/4 "2022-11-17T14:52:58Z")

</div>

That part is entirely up to you! 🙂 You can pick a smaller instance if you don’t anticipate needing a lot of compute or you can go for one of the larger instances if you need something more powerful.

If you’re interested, check out the [Pricing](https://huggingface.co/docs/inference-endpoints/pricing) docs to learn how costs are calculated for these resources.
