# Runtime Error in Inference API

**URL:** <https://discuss.huggingface.co/t/runtime-error-in-inference-api/88442>\
**Category:** 🤗Hub\
**Created:** [May 25, 2024, 2:19pm UTC](https://discuss.huggingface.co/t/runtime-error-in-inference-api/88442 "2024-05-25T14:19:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![motheecreator](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@motheecreator](https://discuss.huggingface.co/u/motheecreator)\
**Post date:** [May 25, 2024, 2:19pm UTC](https://discuss.huggingface.co/t/runtime-error-in-inference-api/88442/1 "2024-05-25T14:19:04Z")

</div>

when i try testing the model by uploading an image i get this error:  
HfApiJson(Deserialize(Error(“unknown variant `image-feature-extraction`, expected one of `audio-classification`, `audio-to-audio`, `audio-source-separation`, `automatic-speech-recognition`, `feature-extraction`, `text-classification`, `token-classification`, `question-answering`, `translation`, `summarization`, `text-generation`, `text2text-generation`, `fill-mask`, `zero-shot-classification`, `zero-shot-image-classification`, `conversational`, `table-question-answering`, `image-classification`, `image-segmentation`, `image-to-text`, `text-to-speech`, `text-to-audio`, `sentence-similarity`, `speech-segmentation`, `tabular-classification`, `tabular-regression`, `text-to-image`, `object-detection`, `visual-question-answering`, `video-classification`, `document-question-answering`, `image-to-image`, `depth-estimation`, `image-text-to-text`”, line: 1, column: 318)))

However, when i use the model using **pipeline** it works fine. what causes this problem and how can i solve it?
