# Word embeddings via http call: error 404

**URL:** <https://discuss.huggingface.co/t/word-embeddings-via-http-call-error-404/154446>\
**Category:** Beginners\
**Created:** [May 10, 2025, 4:41pm UTC](https://discuss.huggingface.co/t/word-embeddings-via-http-call-error-404/154446 "2025-05-10T16:41:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcmincke](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@jcmincke](https://discuss.huggingface.co/u/jcmincke)\
**Post date:** [May 10, 2025, 4:41pm UTC](https://discuss.huggingface.co/t/word-embeddings-via-http-call-error-404/154446/1 "2025-05-10T16:41:10Z")

</div>

Hello,

I read this article to learn how to compute embeddings for texts: [Getting Started With Embeddings](https://huggingface.co/blog/getting-started-with-embeddings)

Here is the code I am running.

```auto
api_url = https://api-inference.huggingface.co/pipeline/feature-extraction/sentence-transformers/all-MiniLM-L6-v2
headers = {"Authorization": f"Bearer {api_token}"}

texts = ["How do I get a replacement Medicare card?",
        "What is the monthly premium for Medicare Part B?",
        ]
response = requests.post(api_url, headers=headers, json={"inputs": texts, "options": {"wait_for_model": True}})

```

Unfortunately, I always get a 404 error.

Am I missing something?

Thank everyone for helping!

J-C

---

<div class="post-metadata">

**Author:** ![TOOTHED](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/toothed/32/47096_2.png) [@TOOTHED](https://discuss.huggingface.co/u/TOOTHED)\
**Post date:** [May 10, 2025, 9:40pm UTC](https://discuss.huggingface.co/t/word-embeddings-via-http-call-error-404/154446/2 "2025-05-10T21:40:16Z")

</div>

Well, most likely the code is not the problem. It seems that almost no models are available at the moment. I don’t even know which topic from discussions to share, because almost all of them now are about broken API: [Inference API stopped working](https://discuss.huggingface.co/t/inference-api-stopped-working/150492), [But is there even a single model working here?!](https://discuss.huggingface.co/t/but-is-there-even-a-single-model-working-here/153812), [Persistent DNS Resolution Errors](https://discuss.huggingface.co/t/persistent-dns-resolution-errors/153827)
