{"error":"Access to model CompVis/stable-diffusion-v1-4 is restricted and you are not in the authorized list. Visit https://huggingface.co/CompVis/stable-diffusion-v1-4 to ask for access."}
Eventually I focused and realized I need to visit that URL to solve the issue. Hope this helps.
The full error I also got was:
I visited https://huggingface.co/api/models/CompVis/stable-diffusion-v... and saw Eventually I focused and realized I need to visit that URL to solve the issue. Hope this helps.