Inference API returns 404 Not Found for all models

api-inference.huggingface.co

That endpoint is for the legacy version of the Inference API and is now deprecated. The Inference API has been revamped into Inference Providers, with changes to usage and models. For details, refer to the documentation.