I am unable to connect my huggingfaceapi account with n8n

I have copied my Hugging face acess token to the n8n credentials but when i save the api key it shows the below message in the screen shot. also i am sharing the error it shows when i run the workflow with Hugging face llm model.




## Information on your n8n setup
- **n8n version:** 1.89.2
- **Database (default: SQLite):**
- **n8n EXECUTIONS_PROCESS setting (default: own, main):** own
- **Running n8n via (Docker, npm, n8n cloud, desktop app):** self hosted via docker in my personal computer 
- **Operating system:** linux
![Screenshot from 2025-05-08 21-24-58|690x430](upload://aJRCDNtr6PiueZFkVsIrfovbnPW.png)

I am having the exact same issue. It was working on April 30th, immediately after no luck. I tried generating 5 new keys with varying permissions to no avail. I have also tried running curl commands with my key which are successful, so i know my token is not the problem.

Best I can guess is that there was an update on either n8n or Hugging Face side, and the endpoint it is hitting is no longer valid. However, n8n gives us no way to see what we are hitting, therefore we cannot troubleshoot. Hopefully someone can come up with a solution!

I can confirm the same issue,

After adding the API, the test failed and returned a “Not Found” error.

1 Like

did you also hosted n8n in docker?

are you hosting locally via docker?

Yes, I am self-hosting Docker.

I also tried the cloud version, and the issue persists, indicating that there might be a problem.

1 Like

I am self hosting locally without Docker, and have also tried cloud, to no avail. This proves that no matter which method of hosting n8n you are running, the issue persists. I believe this is on n8n and the way they are handling their credentials specifically for Hugging Face

1 Like

As you mentioned your api key was working with curl command can you share the command ? . i am recieving a no found error with curl i believe there is an error from the api url.

Same Issue here. Self hosted docker. Curl api test works.

Here is a request working @anaskhan you need your token to add.

The error we see Not Found, seems to be a 404 Not Found status code

Hope it helps, while it doesn’t fix the main issue being able to use basic llm chain :frowning: hoping it working again soon.

Seems to main issue is Huggingface switching to inference providers

Even when calling in curl, same error so it looks like a major rework needs doing to fix with inference providers maybe?


token deleted btw :wink: incase anyone tries to use lol.

Unless this is a tempory issue which huggingface is fixing :man_shrugging:

Has anyone found anything further?

2 Likes

Same issue , it was working before and now the Credentials are not found, Hope we get a fix from n8n soon.

1 Like

I am getting the same issue on both self hosted and cloud hosted

Thanks mate appreciate your reply , will implement this soon and let you know how it went . Also with your setup will i be able to use any model listed in hugging face ?

1 Like

Be good to see, my guess is n8n 9r community member is probably working on fix, n8n are aware of it and mentioned this on discord fyi

I cloud host via docker and have the same error.

i getting same issue

Any updates on this? I have the same issue, cloud hosted

same problem! any progress on it?

same issue here :frowning:

I am facing this issue, can anyone confirm if this has been resolved or is everyone still facing this issue??