# Inference API returns 404 for all models

**URL:** <https://discuss.huggingface.co/t/inference-api-returns-404-for-all-models/166149>\
**Category:** Beginners\
**Created:** [August 8, 2025, 5:16pm UTC](https://discuss.huggingface.co/t/inference-api-returns-404-for-all-models/166149 "2025-08-08T17:16:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![suvad1p007](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/suvad1p007/32/52311_2.png) [@suvad1p007](https://discuss.huggingface.co/u/suvad1p007)\
**Post date:** [August 8, 2025, 5:16pm UTC](https://discuss.huggingface.co/t/inference-api-returns-404-for-all-models/166149/1 "2025-08-08T17:16:23Z")

</div>

I am unable to access any models via the Inference API. All requests return a `404 Not Found` error.

- I have tried multiple models (like `distilgpt2` and `distilbert-base-uncased-finetuned-sst-2-english`).

- I have generated multiple new “Read” access tokens and they all fail.

- My `curl -v` logs show a successful connection, but the server always responds with `404`.

- My username is **suvadip007**.

Can you please check if my account has any restrictions preventing me from using the Inference API? Thank you.

---

<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:** [August 8, 2025, 11:25pm UTC](https://discuss.huggingface.co/t/inference-api-returns-404-for-all-models/166149/2 "2025-08-08T23:25:41Z")

</div>

[The Inference API has been revamped](https://huggingface.co/docs/inference-providers/en/index), and its usage, endpoint URL, and [deployed models](https://huggingface.co/models?inference_provider=all&sort=trending) have changed significantly. If you don’t modify your code, you may encounter a 404 error.  
I think `distilbert-base-uncased-finetuned-sst-2-english` has been deployed.
