# Persistent 'Not Found' (404) Error on Inference API with New Account & Valid Token

**URL:** <https://discuss.huggingface.co/t/persistent-not-found-404-error-on-inference-api-with-new-account-valid-token/160453>\
**Category:** Beginners\
**Created:** [June 24, 2025, 1:51am UTC](https://discuss.huggingface.co/t/persistent-not-found-404-error-on-inference-api-with-new-account-valid-token/160453 "2025-06-24T01:51:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abacus808](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abacus808/32/49979_2.png) [@abacus808](https://discuss.huggingface.co/u/abacus808)\
**Post date:** [June 24, 2025, 1:51am UTC](https://discuss.huggingface.co/t/persistent-not-found-404-error-on-inference-api-with-new-account-valid-token/160453/1 "2025-06-24T01:51:46Z")

</div>

> Hello,
> 
> I am a new user trying to use the Inference API. I am consistently receiving a `404 Not Found` error for all models, including public ones like `gpt2`.
> 
> I have already tried the following troubleshooting steps:
> 
> - Confirmed I have been granted access to gated models like Llama 3.1 and Gemma.
> - Generated a new, clean, `read-only` User Access Token.
> - Verified the token is being passed correctly in the `Authorization: Bearer <token>` header.
> - Confirmed the error still happens with a direct `cURL` command, even for the public `gpt2` model.
> 
> Here is the result of my `cURL` test:
> 
> `curl https://api-inference.huggingface.co/models/gpt2 -X POST -d '{"inputs": "Hello there"}' -H "Content-Type: application/json" -H "Authorization: Bearer <Your_Token_Here>" Not Found`
> 
> Could you please check if there is an issue or restriction on my account? My Hugging Face username is abacus808.
> 
> 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:** [June 24, 2025, 2:23am UTC](https://discuss.huggingface.co/t/persistent-not-found-404-error-on-inference-api-with-new-account-valid-token/160453/2 "2025-06-24T02:23:51Z")

</div>

The usage of the Inference API and the range of models that can be used are currently being updated. The endpoint URL and other details are changing. For more information, please refer to the following post or contact Hugging Face. [website@huggingface.co](mailto:website@huggingface.co) [feedback@huggingface.co](mailto:feedback@huggingface.co)  
[openai-community/gpt2 · Hugging Face](https://huggingface.co/openai-community/gpt2)  
[Persistent 404 Not Found Errors with Public Inference API - #10 by meganariley](https://discuss.huggingface.co/t/persistent-404-not-found-errors-with-public-inference-api/154119/10)  
[Exceeded your monthly included credits for Inference Providers](https://discuss.huggingface.co/t/exceeded-your-monthly-included-credits-for-inference-providers/148551)
