# Getting 504 HTTP error status using serverless HF inference api

**URL:** <https://discuss.huggingface.co/t/getting-504-http-error-status-using-serverless-hf-inference-api/142551>\
**Category:** Inference Endpoints on the Hub\
**Created:** [February 23, 2025, 9:45pm UTC](https://discuss.huggingface.co/t/getting-504-http-error-status-using-serverless-hf-inference-api/142551 "2025-02-23T21:45:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lehehroi](https://avatars.discourse-cdn.com/v4/letter/l/e9bcb4/32.png) [@lehehroi](https://discuss.huggingface.co/u/lehehroi)\
**Post date:** [February 23, 2025, 9:45pm UTC](https://discuss.huggingface.co/t/getting-504-http-error-status-using-serverless-hf-inference-api/142551/1 "2025-02-23T21:45:52Z")

</div>

Hugging Face API error: Error: HTTP error! status: 504

Whats happening?

---

<div class="post-metadata">

**Author:** ![meganariley](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/meganariley/32/56966_2.png) [@meganariley](https://discuss.huggingface.co/u/meganariley)\
**Post date:** [February 28, 2025, 10:28pm UTC](https://discuss.huggingface.co/t/getting-504-http-error-status-using-serverless-hf-inference-api/142551/2 "2025-02-28T22:28:18Z")

</div>

Hi! Can you please let us know the model you were using and the full error message if possible? Thank you!

---

<div class="post-metadata">

**Author:** ![lehehroi](https://avatars.discourse-cdn.com/v4/letter/l/e9bcb4/32.png) [@lehehroi](https://discuss.huggingface.co/u/lehehroi)\
**Post date:** [March 1, 2025, 6:11am UTC](https://discuss.huggingface.co/t/getting-504-http-error-status-using-serverless-hf-inference-api/142551/3 "2025-03-01T06:11:21Z")

</div>

Hi, I was using the text-to-image model Animagine-xl-4.0 ([cagliostrolab/animagine-xl-4.0 · Hugging Face](https://huggingface.co/cagliostrolab/animagine-xl-4.0)) with the HF inference API. I put in the specified parameters but when fetched i only got a HTTP error with status 504, no further error message.

---

<div class="post-metadata">

**Author:** ![lehehroi](https://avatars.discourse-cdn.com/v4/letter/l/e9bcb4/32.png) [@lehehroi](https://discuss.huggingface.co/u/lehehroi)\
**Post date:** [March 2, 2025, 9:31pm UTC](https://discuss.huggingface.co/t/getting-504-http-error-status-using-serverless-hf-inference-api/142551/4 "2025-03-02T21:31:06Z")

</div>

Hi any updates on this? The HF Inference for Animagine xl 4.0 is still not working.

---

<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 3, 2025, 4:34am UTC](https://discuss.huggingface.co/t/getting-504-http-error-status-using-serverless-hf-inference-api/142551/5 "2025-03-03T04:34:28Z")

</div>

Animagine 4.0 works here, but Kivotos 2.0 does not.

 ![ani4sakurako](https://us1.discourse-cdn.com/hellohellohello/original/3X/0/a/0a4af2496ad72a845a53f42fd68d1d3d952e3187.jpeg)  
 ![kiverror](https://us1.discourse-cdn.com/hellohellohello/original/3X/2/0/201d230ca2d1dafd64b7d481514039685d8d36d3.png)
