Runtime Error in Inference API

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?