# Please help! Scaling up from 0 programmatically

**URL:** <https://discuss.huggingface.co/t/please-help-scaling-up-from-0-programmatically/89918>\
**Category:** Beginners\
**Created:** [June 2, 2024, 8:01pm UTC](https://discuss.huggingface.co/t/please-help-scaling-up-from-0-programmatically/89918 "2024-06-02T20:01:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel-ha](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/daniel-ha/32/27617_2.png) [@daniel-ha](https://discuss.huggingface.co/u/daniel-ha)\
**Post date:** [June 2, 2024, 8:01pm UTC](https://discuss.huggingface.co/t/please-help-scaling-up-from-0-programmatically/89918/1 "2024-06-02T20:01:44Z")

</div>

Hello! I am using the Inference Endpoints provided by Hugging Face.  
I would like to know how to programmatically pause, resume, and scale up from 0.

I want my user to be able to tell if the endpoint is up and start it if it is scaled to 0. Currently, sending a request via a basic query just returns a server error.

please help!

---

<div class="post-metadata">

**Author:** ![nielsr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nielsr/32/39617_2.png) [@nielsr](https://discuss.huggingface.co/u/nielsr)\
**Post date:** [June 3, 2024, 2:03pm UTC](https://discuss.huggingface.co/t/please-help-scaling-up-from-0-programmatically/89918/2 "2024-06-03T14:03:54Z")

</div>

Hi,

See the docs here: [Inference Endpoints](https://huggingface.co/docs/huggingface_hub/en/guides/inference_endpoints#pause-or-scale-to-zero)
