# Calling Inference API for image embedding

**URL:** <https://discuss.huggingface.co/t/calling-inference-api-for-image-embedding/52486>\
**Category:** Inference Endpoints on the Hub\
**Created:** [August 28, 2023, 12:57pm UTC](https://discuss.huggingface.co/t/calling-inference-api-for-image-embedding/52486 "2023-08-28T12:57:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattiaSangermano](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@MattiaSangermano](https://discuss.huggingface.co/u/MattiaSangermano)\
**Post date:** [August 28, 2023, 12:57pm UTC](https://discuss.huggingface.co/t/calling-inference-api-for-image-embedding/52486/1 "2023-08-28T12:57:04Z")

</div>

I’ve been playing around with the Inference API and got the hang of using `https://api-inference.huggingface.co/pipeline/feature-extraction/{model_id}` for text data.

Now, I’m curious if there’s a way to do something similar for images. I’m all about getting those image embeddings using the Inference API. Is there a direct way to make this happen? If not, do you suggest any tricks or other methods to get image embeddings through the Inference API?
