# Consistent 404 Not Found on Inference API for all models

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconsistent-404-not-found-on-inference-api-for-all-models%2F168893%3E%5C
**Category:** Beginners\
**Created:** [October 3, 2025, 1:54pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconsistent-404-not-found-on-inference-api-for-all-models%2F168893 "2025-10-03T13:54:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shkila-coder](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@Shkila-coder](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FShkila-coder)%5C
**Post date:** [October 3, 2025, 1:54pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconsistent-404-not-found-on-inference-api-for-all-models%2F168893%2F1 "2025-10-03T13:54:14Z")

</div>

Hello,

I am consistently receiving a `404 Not Found` error when trying to use the Inference API, and I believe there is an issue with my account’s permissions.

I have confirmed the following through extensive testing:

1. **My API token is correct** and authenticates properly. A diagnostic script confirms this.

2. The error occurs for **all models** I try, including fully public models like `HuggingFaceH4/zephyr-7b-beta` and gated models I have been granted access to, like `mistralai/Mixtral-8x7B-Instruct-v0.1`.

3. The issue is **not network-related**. I have tried from different IP addresses and regions using a VPN, and the result is the same `404 Not Found` error.

4. The issue is **not the request format**. I have also tried adding a standard browser `User-Agent` header to my requests, and the error still persists.

It seems there is a specific issue with my account’s fundamental ability to access the Inference API service. Could you please investigate?

My Hugging Face username is: **Shkila-coder**

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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [October 3, 2025, 2:12pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconsistent-404-not-found-on-inference-api-for-all-models%2F168893%2F2 "2025-10-03T14:12:32Z")

</div>

[Inference API has been revamped into Inference Providers, resulting in significant changes to its specifications and the models that can be used](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpersistent-404-not-found-error-from-inference-api-on-a-specific-machine%2F168586%2F3). [The models currently deployed are these](https://huggingface.co/models?inference_provider=all&sort=trending).

---

<div class="post-metadata">

**Author:** ![Shkila-coder](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@Shkila-coder](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FShkila-coder)%5C
**Post date:** [October 3, 2025, 2:22pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconsistent-404-not-found-on-inference-api-for-all-models%2F168893%2F3 "2025-10-03T14:22:40Z")

</div>

Thank you for the clarification, John6666.

Following your advice, I switched my code to use a model from the official “Inference Providers” list that you linked: HuggingFaceTB/SmolLM3-3B.

Unfortunately, I am still receiving the exact same 404 Not Found error, even with this confirmed-available model.

This seems to prove that the issue is not with model selection, but a fundamental problem with my account’s permissions to access the Inference API for any model at all.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [October 3, 2025, 2:25pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconsistent-404-not-found-on-inference-api-for-all-models%2F168893%2F4 "2025-10-03T14:25:06Z")

</div>

Hm. Endpoint URLs have also changed, so if you’re referencing old code, [you may need to rewrite it](https://huggingface.co/docs/inference-providers/en/guides/first-api-call). If you’re experiencing account issues, I recommend to contact Hugging Face via email first. [website@huggingface.co](mailto:website@huggingface.co)

---

<div class="post-metadata">

**Author:** ![meganariley](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/meganariley/32/56966_2.png) [@meganariley](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmeganariley)%5C
**Post date:** [October 3, 2025, 5:06pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconsistent-404-not-found-on-inference-api-for-all-models%2F168893%2F5 "2025-10-03T17:06:44Z")

</div>

Hi @Shkila-coder Can you please check to make sure you’re authenticated? You’ll want to make sure you’re using a`fine-grained` token with `Make calls to Inference Providers` permissions. More info here: [Authentication](https://huggingface.co/docs/inference-providers/en/index#authentication).

---

<div class="post-metadata">

**Author:** ![Shkila-coder](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@Shkila-coder](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FShkila-coder)%5C
**Post date:** [October 3, 2025, 6:31pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconsistent-404-not-found-on-inference-api-for-all-models%2F168893%2F6 "2025-10-03T18:31:58Z")

</div>

Hello, thank you for the specific instructions.

I have now done the following:

Deleted all old tokens.

Created a new fine-grained token.

Gave it the specific permission: “Make calls to Inference Providers” under User Permissions.

Unfortunately, I am still receiving the exact same 404 Not Found error when calling the API for a public model from the approved list (HuggingFaceTB/SmolLM3-3B).

---

<div class="post-metadata">

**Author:** ![Shkila-coder](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@Shkila-coder](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FShkila-coder)%5C
**Post date:** [October 3, 2025, 6:47pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconsistent-404-not-found-on-inference-api-for-all-models%2F168893%2F7 "2025-10-03T18:47:50Z")

</div>

I can send you the code and my settings if needed.
