# Please help : 401 Client Error: Unauthorized for url: https://huggingface.co/api/model

**URL:** <https://discuss.huggingface.co/t/please-help-401-client-error-unauthorized-for-url-https-huggingface-co-api-model/167237>\
**Category:** Beginners\
**Created:** [August 19, 2025, 4:18am UTC](https://discuss.huggingface.co/t/please-help-401-client-error-unauthorized-for-url-https-huggingface-co-api-model/167237 "2025-08-19T04:18:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chdennis](https://avatars.discourse-cdn.com/v4/letter/c/ecd19e/32.png) [@chdennis](https://discuss.huggingface.co/u/chdennis)\
**Post date:** [August 19, 2025, 4:18am UTC](https://discuss.huggingface.co/t/please-help-401-client-error-unauthorized-for-url-https-huggingface-co-api-model/167237/1 "2025-08-19T04:18:27Z")

</div>

File “D:\ComfyUI\_windows\_portable\python\_embeded\Lib\site-packages\huggingface\_hub\hf\_api.py”, line 2853, in repo\_info  
return method(  
^^^^^^^  
File “D:\ComfyUI\_windows\_portable\python\_embeded\Lib\site-packages\huggingface\_hub\utils\_validators.py”, line 114, in \_inner\_fn  
return fn(\*args, \*\*kwargs)  
^^^^^^^^^^^^^^^^^^^  
File “D:\ComfyUI\_windows\_portable\python\_embeded\Lib\site-packages\huggingface\_hub\hf\_api.py”, line 2638, in model\_info  
hf\_raise\_for\_status(r)  
File “D:\ComfyUI\_windows\_portable\python\_embeded\Lib\site-packages\huggingface\_hub\utils\_http.py”, line 482, in hf\_raise\_for\_status  
raise \_format(HfHubHTTPError, str(e), response) from e  
huggingface\_hub.errors.HfHubHTTPError: 401 Client Error: Unauthorized for url: [https://huggingface.co/api/models/stable-diffusion-v1-5/stable-diffusion-v1-5/revision/main](https://huggingface.co/api/models/stable-diffusion-v1-5/stable-diffusion-v1-5/revision/main) ……………

Invalid credentials in Authorization header

Prompt executed in 0.36 seconds

---

<div class="post-metadata">

**Author:** ![chdennis](https://avatars.discourse-cdn.com/v4/letter/c/ecd19e/32.png) [@chdennis](https://discuss.huggingface.co/u/chdennis)\
**Post date:** [August 19, 2025, 5:15am UTC](https://discuss.huggingface.co/t/please-help-401-client-error-unauthorized-for-url-https-huggingface-co-api-model/167237/2 "2025-08-19T05:15:47Z")

</div>

Solved. Thanks to myself.🙌
