# Runtime Error in Inference API

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-in-inference-api%2F88442%3E%5C
**Category:** 🤗Hub\
**Created:** [May 25, 2024, 2:19pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-in-inference-api%2F88442 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmotheecreator)%5C
**Post date:** [May 25, 2024, 2:19pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-in-inference-api%2F88442%2F1 "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?
