# 404 to any API i tried

**URL:** <https://discuss.huggingface.co/t/404-to-any-api-i-tried/161937>\
**Category:** Beginners\
**Created:** [July 6, 2025, 12:40pm UTC](https://discuss.huggingface.co/t/404-to-any-api-i-tried/161937 "2025-07-06T12:40:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![GilMS](https://avatars.discourse-cdn.com/v4/letter/g/a183cd/32.png) [@GilMS](https://discuss.huggingface.co/u/GilMS)\
**Post date:** [July 6, 2025, 12:40pm UTC](https://discuss.huggingface.co/t/404-to-any-api-i-tried/161937/1 "2025-07-06T12:40:25Z")

</div>

i am trying to work with few API s:  
[https://api-inference.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.3](https://api-inference.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.3)  
or  
[https://api-inference.huggingface.co/models/gpt2](https://api-inference.huggingface.co/models/gpt2)

actually any model i try to run .  
it worked before.  
after i got the error i have deleted old token and created a new one, its the only one there.  
i am, active with pro plan of HF. what is wrong here?

---

<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:** [July 6, 2025, 1:01pm UTC](https://discuss.huggingface.co/t/404-to-any-api-i-tried/161937/2 "2025-07-06T13:01:50Z")

</div>

This is because [none of them have been deployed now](https://discuss.huggingface.co/t/are-inferenceclient-s-down/161485/11). I think [some models can be used via Inference Provider](https://huggingface.co/models?inference_provider=all&sort=trending).

---

<div class="post-metadata">

**Author:** ![GilMS](https://avatars.discourse-cdn.com/v4/letter/g/a183cd/32.png) [@GilMS](https://discuss.huggingface.co/u/GilMS)\
**Post date:** [July 6, 2025, 2:16pm UTC](https://discuss.huggingface.co/t/404-to-any-api-i-tried/161937/3 "2025-07-06T14:16:54Z")

</div>

you mean they have been removed?

---

<div class="post-metadata">

**Author:** ![TechAnalytics916](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/techanalytics916/32/50464_2.png) [@TechAnalytics916](https://discuss.huggingface.co/u/TechAnalytics916)\
**Post date:** [July 6, 2025, 9:59pm UTC](https://discuss.huggingface.co/t/404-to-any-api-i-tried/161937/4 "2025-07-06T21:59:24Z")

</div>

i was struggling with this for weeks, and did not understand how token caching worked. I stumbled across a forum on here and someone said: “i seemed to have in ~/.netrc credentials for [huggingface.co](http://huggingface.co), which i think they might have overridden my Authorization header.  
a smiple rm ~/.netrc did the trick” it took me even longer to find it because its hidden and im not great with Linux, but i finally found, it delete this and i was able to login using API and download the exact mode youre talking about.

---

<div class="post-metadata">

**Author:** ![GilMS](https://avatars.discourse-cdn.com/v4/letter/g/a183cd/32.png) [@GilMS](https://discuss.huggingface.co/u/GilMS)\
**Post date:** [July 7, 2025, 7:23am UTC](https://discuss.huggingface.co/t/404-to-any-api-i-tried/161937/5 "2025-07-07T07:23:09Z")

</div>

Thanks i tried it no .netrc or any combination. thinking to move on to other services.

---

<div class="post-metadata">

**Author:** ![meganariley](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/meganariley/32/56966_2.png) [@meganariley](https://discuss.huggingface.co/u/meganariley)\
**Post date:** [July 7, 2025, 3:43pm UTC](https://discuss.huggingface.co/t/404-to-any-api-i-tried/161937/6 "2025-07-07T15:43:17Z")

</div>

Hi @GilMS The model mistralai/Mistral-7B-Instruct-v0.3 is available with other Inference Providers such as Together AI and Novita. If you’re PRO, you can use your free monthly inference credits towards these providers. More info on Inference Providers: [Inference Providers](https://huggingface.co/docs/inference-providers/en/index).

mistralai/Mistral-7B-Instruct-v0.3 and gpt2 can both be used with [Inference Endpoints](https://huggingface.co/docs/inference-endpoints/index). You can also request inference provider support for gpt2 on the model page: [openai-community/gpt2 · Hugging Face](https://huggingface.co/openai-community/gpt2).

Let us know if you have other questions.
