# 504 error with serverless HF Inference API

**URL:** <https://discuss.huggingface.co/t/504-error-with-serverless-hf-inference-api/146082>\
**Category:** Inference Endpoints on the Hub\
**Created:** [March 17, 2025, 7:49am UTC](https://discuss.huggingface.co/t/504-error-with-serverless-hf-inference-api/146082 "2025-03-17T07:49:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivy-heartb](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ivy-heartb/32/42887_2.png) [@ivy-heartb](https://discuss.huggingface.co/u/ivy-heartb)\
**Post date:** [March 17, 2025, 7:49am UTC](https://discuss.huggingface.co/t/504-error-with-serverless-hf-inference-api/146082/1 "2025-03-17T07:49:43Z")

</div>

Hi team,

I’m using the HF Inference endpoint @ [brushpenbob/flux-midjourney-anime](https://huggingface.co/brushpenbob/flux-midjourney-anime?inference_provider=hf-inference) and I’m getting 504 errors frequently. Sometimes it goes away after multiple retries but it severely impact latency and my user experience. Can someone help take a look?

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [March 17, 2025, 8:34am UTC](https://discuss.huggingface.co/t/504-error-with-serverless-hf-inference-api/146082/2 "2025-03-17T08:34:58Z")

</div>

![fluxmidj](https://us1.discourse-cdn.com/hellohellohello/original/3X/7/7/776e924fa3ce17b72e999d3ff3c9ee0f51972b35.png)  
The Serverless Inference API is unstable at the moment…

For now, it’s easier to report problems with the Hub GUI using the following.

> **[huggingface/hub-docs](https://github.com/huggingface/hub-docs/issues)**
>
> Docs of the Hugging Face Hub. Contribute to huggingface/hub-docs development by creating an account on GitHub.
