# Calling Inference API for text embedding

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcalling-inference-api-for-text-embedding%2F49403%3E%5C
**Category:** Inference Endpoints on the Hub\
**Created:** [August 3, 2023, 10:58pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcalling-inference-api-for-text-embedding%2F49403 "2023-08-03T22:58:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alazsengul](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@alazsengul](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Falazsengul)%5C
**Post date:** [August 3, 2023, 10:58pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcalling-inference-api-for-text-embedding%2F49403%2F1 "2023-08-03T22:58:38Z")

</div>

Up until recently I was able to call the Inference API (i.e. [/static-proxy?url=https%3A%2F%2Fapi-inference.huggingface.co%2Fmodels%2Fintfloat%2Fe5-large-v2%5D(https%3A%2F%2Fapi-inference.huggingface.co%2Fmodels%2Fintfloat%2Fe5-large-v2)) on embedding models found on the MTEB leaderboard [MTEB Leaderboard - a Hugging Face Space by mteb](https://huggingface.co/spaces/mteb/leaderboard).

However now it seems like all those models were transferred and tagged as “Sentence Similarity” models, so the API doesn’t work with a query of “inputs”. It needs a “source\_sentence” and “sentences”.

Any idea why this change happened? And how I can start using the Inference API for text embedding again?

---

<div class="post-metadata">

**Author:** ![alazsengul](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@alazsengul](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Falazsengul)%5C
**Post date:** [August 4, 2023, 5:21pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcalling-inference-api-for-text-embedding%2F49403%2F2 "2023-08-04T17:21:25Z")

</div>

Resolved! See [Can one get an embeddings from an inference API that computes Sentence Similarity? - #5 by osanseviero](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-one-get-an-embeddings-from-an-inference-api-that-computes-sentence-similarity%2F9433%2F5).
