401 Error: Invalid Credentials in Authorization Header (Flan-T5-Large Inference API)

It works for me.

Response status code: 200

Meybe try:

pip install -U huggingface_hub