HTTP Request node gets 404 error for valid Hugging Face API URL

Hello,

I am trying to make a POST request to the Hugging Face Inference API, but I am consistently getting a 404 Not Found error, even for valid URLs.

  • Node: HTTP Request
  • URL I’ve tried: https://api-inference.huggingface.co/models/google/gemma-7b-it (returns 404)
  • Ping test URL: https://api-inference.huggingface.co/ (this also returns a 404, which should not happen)
  • My n8n instance URL: juancho1996.app.n8n.cloud

It seems like there might be a networking or DNS issue from my n8n cloud instance that is preventing it from reaching the Hugging Face API endpoint correctly. Could you please investigate?

Thank you.

What happens when you open the same URLs in your browser?

UPD 1:
Ah, never mind, you said POST request

Could you show how you are sending the request and how the response looks like?

UPD2:
See if this helps:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.