# Deploying CLIP-Vit as an inference endpoint

**URL:** <https://discuss.huggingface.co/t/deploying-clip-vit-as-an-inference-endpoint/66511>\
**Category:** Inference Endpoints on the Hub\
**Created:** [December 20, 2023, 6:30am UTC](https://discuss.huggingface.co/t/deploying-clip-vit-as-an-inference-endpoint/66511 "2023-12-20T06:30:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tech-untukmu-ai](https://avatars.discourse-cdn.com/v4/letter/t/b5ac83/32.png) [@tech-untukmu-ai](https://discuss.huggingface.co/u/tech-untukmu-ai)\
**Post date:** [December 20, 2023, 6:30am UTC](https://discuss.huggingface.co/t/deploying-clip-vit-as-an-inference-endpoint/66511/1 "2023-12-20T06:30:22Z")

</div>

@radames, i wanna deploy [sentence-transformers/clip-ViT-B-32 · Hugging Face](https://huggingface.co/sentence-transformers/clip-ViT-B-32) as inference endpoint. But can’t figure out to make it accept image. I know that locally, this model can accept both image and text, but how do i make it on HF deployed endpoint ?

My goal is to generate embeddings from an image…

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [December 20, 2023, 7:19pm UTC](https://discuss.huggingface.co/t/deploying-clip-vit-as-an-inference-endpoint/66511/2 "2023-12-20T19:19:00Z")

</div>

hi @tech-untukmu-ai ,

Considering this model need to encode an image and text, you might want to deploy a custom handler to handle the Image and Text payload, please follow this guide here

> **[Create custom Inference Handler](https://huggingface.co/docs/inference-endpoints/guides/custom_handler#3-customize-endpointhandler)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.
