Basic auth on HF API

Hi,

I was trying to access llama v2 using /api/models which is gated and requires auth. Bearer token works but was wondering if basic auth is also supported. Basic auth seems to have worked for some time in the past few weeks but stopped working recently.

Thank you.

Indeed, basic auth is no more supported. You have to use the API token (authorization: Bearer hf_...) mechanism

1 Like