# Inference API stopped working

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Finference-api-stopped-working%2F150492%3E%5C
**Category:** Inference Endpoints on the Hub\
**Created:** [April 15, 2025, 1:33am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Finference-api-stopped-working%2F150492 "2025-04-15T01:33:40Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![AtherionGG](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@AtherionGG](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FAtherionGG)%5C
**Post date:** [April 23, 2025, 11:46pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Finference-api-stopped-working%2F150492%2F22 "2025-04-23T23:46:09Z")

</div>

Mine stopped for a while too getting 503:  
“503 Server Error: Service Temporarily Unavailable for url: [/static-proxy?url=https%3A%2F%2Frouter.huggingface.co%2Fhf-inference%2Fmodels%2Fblack-forest-labs%2FFLUX.1-schnell%5D(https%3A%2F%2Frouter.huggingface.co%2Fhf-inference%2Fmodels%2Fblack-forest-labs%2FFLUX.1-schnell)%E2%80%9D

I looked that you could set a provider.  
I changed the parameters to the following and it worked.

```auto
from huggingface_hub import InferenceClient

client = InferenceClient(
    provider="fal-ai",
    api_key="hf_xxxxxxxxxxxxxxxxxxxxxxxx",
)

```

Which you can find if you click `view code` on the model card.

Looks like maybe the router code is not functioning properly. I could only speculate but potential issue there.

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Finference-api-stopped-working%2F150492)._
