# Deploying CLIP-Vit as an inference endpoint

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdeploying-clip-vit-as-an-inference-endpoint%2F66511%3E%5C
**Category:** Inference Endpoints on the Hub\
**Created:** [December 20, 2023, 6:30am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdeploying-clip-vit-as-an-inference-endpoint%2F66511 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Ftech-untukmu-ai)%5C
**Post date:** [December 20, 2023, 6:30am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdeploying-clip-vit-as-an-inference-endpoint%2F66511%2F1 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [December 20, 2023, 7:19pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdeploying-clip-vit-as-an-inference-endpoint%2F66511%2F2 "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.
