# API of HuggingFace stopped working

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fapi-of-huggingface-stopped-working%2F165940%3E%5C
**Category:** Inference Endpoints on the Hub\
**Created:** [August 7, 2025, 9:15am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fapi-of-huggingface-stopped-working%2F165940 "2025-08-07T09:15:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![glodov](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/glodov/32/52221_2.png) [@glodov](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fglodov)%5C
**Post date:** [August 7, 2025, 9:15am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fapi-of-huggingface-stopped-working%2F165940%2F1 "2025-08-07T09:15:43Z")

</div>

> I could not find more related category than this one. And I did not find the contact of HF support.

The issue I get is just 401 error on my API requests to the Inference API, and few hours ago everything worked well.  
I checked my account and tokens and everything is good.  
I have created a new fine-grained token and tried it and got 401 error

`FAIL > unable to complete request ProviderApiError: Failed to perform inference: an HTTP error occurred when requesting the provider.`  
`InferenceClientProviderApiError: Failed to perform inference: an HTTP error occurred when requesting the provider.`  
`at innerStreamingRequest (file:///Users/i/node_modules/.pnpm/@huggingface+inference@4.6.1/node_modules/@huggingface/inference/dist/esm/utils/request.js:123:15)`  
`at process.processTicksAndRejections (node:internal/process/task_queues:95:5)`  
`at async chatCompletionStream (file:///Users/i/node_modules/.pnpm/@huggingface+inference@4.6.1/node_modules/@huggingface/inference/dist/esm/tasks/nlp/chatCompletionStream.js:10:5)`  
`at async HuggingFaceDriver.stream (file:///Users/i/src/nan.web/packages/app/src/llm/Chat/drivers/ChatDriver.js:321:21)`  
`at async HuggingFaceDriver.stream (file:///Users/i/src/nan.web/packages/app/src/llm/Chat/drivers/HuggingFace/HuggingFaceDriver.js:282:10)`  
`at async CoderAgent.process (file:///Users/i/src/nan.web/packages/app/src/llm/agents/Agent/Agent.js:135:20)`  
`at async processInput (file:///Users/i/src/nan.web/packages/app/apps/core/App.js:472:29)`  
`at async processChat (file:///Users/i/src/nan.web/packages/app/apps/core/App.js:518:13)`  
`at async file:///Users/i/src/nan.web/packages/app/apps/core/App.js:578:4 {`  
`httpRequest: {`  
`url: ‘``/static-proxy?url=https%3A%2F%2Frouter.huggingface.co%2Fnovita%2Fv3%2Fopenai%2Fchat%2Fcompletions%E2%80%99%60%60%2C%60  
`method: ‘POST’,`  
`headers: {`  
`Authorization: ‘Bearer [redacted]’,`  
`‘Content-Type’: ‘application/json’,`  
`‘User-Agent’: ‘@huggingface/inference/4.6.1 Node.js/22’`  
`},`  
`body: {`  
`messages: [Array],`  
`stream: true,`  
`model: ‘deepseek/deepseek-v3-turbo’`  
`}`  
`},`  
`httpResponse: { requestId: ‘’, status: 401, body: ‘’ }`  
`}`

---

<div class="post-metadata">

**Author:** ![glodov](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/glodov/32/52221_2.png) [@glodov](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fglodov)%5C
**Post date:** [August 8, 2025, 2:29pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fapi-of-huggingface-stopped-working%2F165940%2F2 "2025-08-08T14:29:23Z")

</div>

It started working again.  
No messages or notifications received.

---

<div class="post-metadata">

**Author:** ![phreakwenci](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/phreakwenci/32/53020_2.png) [@phreakwenci](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fphreakwenci)%5C
**Post date:** [August 25, 2025, 5:17am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fapi-of-huggingface-stopped-working%2F165940%2F3 "2025-08-25T05:17:02Z")

</div>

I’m having the same issue with deepsite v2 as well. Can’t update thru the AI. Is this related?

---

<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:** [August 25, 2025, 5:57am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fapi-of-huggingface-stopped-working%2F165940%2F4 "2025-08-25T05:57:26Z")

</div>

It would be best to [ask the author of DeepSite about DeepSite](https://huggingface.co/spaces/enzostvs/deepsite/discussions). These two are APIs from different frameworks, so the cause is probably different.
