Inference API stopped working

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%3C%2Fa%3E%E2%80%9D%3C%2Fp%3E

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

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.

1 Like