# Feature extraction using Inference API error

**URL:** <https://discuss.huggingface.co/t/feature-extraction-using-inference-api-error/13959>\
**Category:** Beginners\
**Created:** [May 15, 2022, 7:00am UTC](https://discuss.huggingface.co/t/feature-extraction-using-inference-api-error/13959 "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](https://discuss.huggingface.co/u/Buckeyes2019)\
**Post date:** [July 28, 2022, 3:30pm UTC](https://discuss.huggingface.co/t/feature-extraction-using-inference-api-error/13959/2 "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](https://discuss.huggingface.co/t/feature-extraction-using-inference-api-error/13959)._
