# Feature extraction using Inference API error

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffeature-extraction-using-inference-api-error%2F13959%3E%5C
**Category:** Beginners\
**Created:** [May 15, 2022, 7:00am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffeature-extraction-using-inference-api-error%2F13959 "2022-05-15T07:00:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Buckeyes2019](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@Buckeyes2019](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FBuckeyes2019)%5C
**Post date:** [July 28, 2022, 3:30pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffeature-extraction-using-inference-api-error%2F13959%2F2 "2022-07-28T15:30:22Z")

</div>

I had this same issue. It appears in the model hub some of the sentence-transformer API endpoints are set up for sentence similarity while others are set up for feature extraction. Passing the query as you have there to a sentence similarity endpoint results in an error. Try using a different model with a feature extraction endpoint like: `Craig/paraphrase-MiniLM-L6-v2` or `julien-c/distilbert-feature-extraction`

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffeature-extraction-using-inference-api-error%2F13959)._
