API Key giving 404 Not Found error on all Inference API models Message:

Hello,

I am trying to use the Inference API for a personal project. My username is lmsilverdevil.

I have generated multiple Access Tokens, including tokens with both ‘read’ and ‘write’ roles.

However, every time I make a request to any model (even basic models like distilgpt2), I consistently get a 404 “Not Found” error.

I have double-checked everything:

My API key is correct.

The code is making a standard POST request.

The URL https://api-inference.huggingface.co/models/distilgpt2 is correct.

It seems like there might be an issue or restriction with my account’s ability to use the Inference API. Could you please check if there is any problem on your end?

Thank you for your help.

1 Like

Currently, no text-to-text models are deployed in HF-Inference, so it does not work…