# How to create Inference API for custom model?

**URL:** <https://discuss.huggingface.co/t/how-to-create-inference-api-for-custom-model/64416>\
**Category:** 🤗Hub\
**Created:** [December 3, 2023, 12:51pm UTC](https://discuss.huggingface.co/t/how-to-create-inference-api-for-custom-model/64416 "2023-12-03T12:51:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andron00e](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/andron00e/32/21798_2.png) [@Andron00e](https://discuss.huggingface.co/u/Andron00e)\
**Post date:** [December 3, 2023, 12:51pm UTC](https://discuss.huggingface.co/t/how-to-create-inference-api-for-custom-model/64416/1 "2023-12-03T12:51:29Z")

</div>

Hi, I have uploaded my custom model with novel architecture for HF hub. It provides image classification but by default no Inference API was provided.  
Can I somehow create this Inference mode manually?

---

<div class="post-metadata">

**Author:** ![panigrah](https://avatars.discourse-cdn.com/v4/letter/p/bb73d2/32.png) [@panigrah](https://discuss.huggingface.co/u/panigrah)\
**Post date:** [December 3, 2023, 1:28pm UTC](https://discuss.huggingface.co/t/how-to-create-inference-api-for-custom-model/64416/2 "2023-12-03T13:28:03Z")

</div>

is your model public? post your model here if public - it may help someone find the issue for you quicker.

---

<div class="post-metadata">

**Author:** ![Andron00e](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/andron00e/32/21798_2.png) [@Andron00e](https://discuss.huggingface.co/u/Andron00e)\
**Post date:** [December 3, 2023, 2:33pm UTC](https://discuss.huggingface.co/t/how-to-create-inference-api-for-custom-model/64416/3 "2023-12-03T14:33:55Z")

</div>

Yes. My model is public.

> **[Andron00e/CLIPForImageClassification-v1 · Hugging Face](https://huggingface.co/Andron00e/CLIPForImageClassification-v1)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

---

<div class="post-metadata">

**Author:** ![nielsr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nielsr/32/39617_2.png) [@nielsr](https://discuss.huggingface.co/u/nielsr)\
**Post date:** [December 4, 2023, 9:29am UTC](https://discuss.huggingface.co/t/how-to-create-inference-api-for-custom-model/64416/4 "2023-12-04T09:29:14Z")

</div>

Hi,

The inference API assumes a corresponding pipeline for it is defined. So we will first have to merge [CLIPForImageClassification has been added by Andron00e · Pull Request #27805 · huggingface/transformers · GitHub](https://github.com/huggingface/transformers/pull/27805)
