Account Issue: New API Tokens all fail with 401 Unauthorized Error

  • MY Hugging Face username is junie-ch.
  • I am getting a 401 Unauthorized error on all models, including public models like google/flan-t5-large.
  • I have already generated multiple brand new tokens with write permissions, and they all fail immediately.
  • I have proven it is not your code by using a direct, minimal InferenceClient test script.
1 Like

If you have an account problem, please contact HF by email first. website@huggingface.co Don’t forget to include your username.
This is a very unusual phenomenon.