401 - but my API key should be valid

Hi @Lejonhjarta welcome :waving_hand: We have info on authentication here. Make sure you’re using a fine-grained token with Make calls to Inference Providers permissions enabled.

Unfortunately, the model microsoft/DialoGPT-medium · Hugging Face isn’t deployed with any Inference Provider at this time. On the model page you can click ‘Ask for Provider Support’.

Check out our filtered list of 48k+ models deployed with at least one Inference Provider. You can also use DialoGPT-medium with Inference Endpoints instead.

We have a guide Send Your First API Call if you’d like a walkthrough, and make sure to subscribe to PRO to unlock 20× included inference credits!

Hope this helps! :hugs:

2 Likes