# Word embeddings via http call: error 404

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fword-embeddings-via-http-call-error-404%2F154446%3E%5C
**Category:** Beginners\
**Created:** [May 10, 2025, 4:41pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fword-embeddings-via-http-call-error-404%2F154446 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fjcmincke)%5C
**Post date:** [May 10, 2025, 4:41pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fword-embeddings-via-http-call-error-404%2F154446%2F1 "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 = /static-proxy?url=https%3A%2F%2Fapi-inference.huggingface.co%2Fpipeline%2Ffeature-extraction%2Fsentence-transformers%2Fall-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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FTOOTHED)%5C
**Post date:** [May 10, 2025, 9:40pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fword-embeddings-via-http-call-error-404%2F154446%2F2 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Finference-api-stopped-working%2F150492)%2C [But is there even a single model working here?!](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbut-is-there-even-a-single-model-working-here%2F153812)%2C [Persistent DNS Resolution Errors](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpersistent-dns-resolution-errors%2F153827)
