# 404 error on the ree inference endpoint with model all-MiniLM-L6-v2

**URL:** <https://discuss.huggingface.co/t/404-error-on-the-ree-inference-endpoint-with-model-all-minilm-l6-v2/165338>\
**Category:** Beginners\
**Created:** [August 2, 2025, 3:09am UTC](https://discuss.huggingface.co/t/404-error-on-the-ree-inference-endpoint-with-model-all-minilm-l6-v2/165338 "2025-08-02T03:09:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aiwhiz2025](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@aiwhiz2025](https://discuss.huggingface.co/u/aiwhiz2025)\
**Post date:** [August 2, 2025, 3:09am UTC](https://discuss.huggingface.co/t/404-error-on-the-ree-inference-endpoint-with-model-all-minilm-l6-v2/165338/1 "2025-08-02T03:09:33Z")

</div>

i am a newbie using this endpoint for free to generate embeddings… “[https://api-inference.huggingface.co/pipeline/feature-extraction/sentence-transformers/all-MiniLM-L6-v2](https://api-inference.huggingface.co/pipeline/feature-extraction/sentence-transformers/all-MiniLM-L6-v2)”

getting a 404 consistently …going through prev ious posts, i got nothing concrete except the issue seems to be on and off,can someone kindly update when this can be resolved…i was so excited to learn but the bubble has burst because of this.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [August 2, 2025, 3:29am UTC](https://discuss.huggingface.co/t/404-error-on-the-ree-inference-endpoint-with-model-all-minilm-l6-v2/165338/2 "2025-08-02T03:29:41Z")

</div>

The usage (URL, etc.) has changed considerably. [Here is the new usage](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/discussions/116).

---

<div class="post-metadata">

**Author:** ![aiwhiz2025](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@aiwhiz2025](https://discuss.huggingface.co/u/aiwhiz2025)\
**Post date:** [August 5, 2025, 4:14pm UTC](https://discuss.huggingface.co/t/404-error-on-the-ree-inference-endpoint-with-model-all-minilm-l6-v2/165338/3 "2025-08-05T16:14:00Z")

</div>

thanksa mil !  
tried the following python call

embedding\_url = “[https://router.huggingface.co/hf-inference/models/sentence-transformers/all-MiniLM-L6-v2/pipeline/feature-extraction](https://router.huggingface.co/hf-inference/models/sentence-transformers/all-MiniLM-L6-v2/pipeline/feature-extraction)”  
response = requests.post(embedding\_url, headers, json={“inputs”: text})  
if response.status\_code != 200:  
raise ValueError(f"Request failed with status code {response.status\_code}: {response.text}")

response after multiple new tokens…not able to get past this 401…its not possible to be successful in a free account ?

# 401

Unauthorized access. Please check your credentials or authorization

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [August 5, 2025, 10:53pm UTC](https://discuss.huggingface.co/t/404-error-on-the-ree-inference-endpoint-with-model-all-minilm-l6-v2/165338/4 "2025-08-05T22:53:24Z")

</div>

It [may be necessary to pass a header containing a token](https://discuss.huggingface.co/t/assistance-with-401-unauthorized-error-for-api-access/128643) by `requests`.
