# HF Inference API Error on Image Classification Models

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhf-inference-api-error-on-image-classification-models%2F173325%3E%5C
**Category:** Inference Endpoints on the Hub\
**Created:** [February 11, 2026, 6:14am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhf-inference-api-error-on-image-classification-models%2F173325 "2026-02-11T06:14:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![1roomonline](https://avatars.discourse-cdn.com/v4/letter/1/ba9def/32.png) [@1roomonline](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2F1roomonline)%5C
**Post date:** [February 11, 2026, 6:14am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhf-inference-api-error-on-image-classification-models%2F173325%2F1 "2026-02-11T06:14:46Z")

</div>

Hello,

I am trying to run image classification through Hugging Face’s own inference provider. I was able to run different models classifying images recently, but as of yesterday I keep getting an error when running my code on any image classification model:

`HTTP Error 410 error: The requested model is deprecated and no longer supported by provider hf-inference`

I am calling the api endpoint “[/static-proxy?url=https%3A%2F%2Frouter.huggingface.co%2Fhf-inference%2Fmodels%2F%E2%80%9D%5D(https%3A%2F%2Frouter.huggingface.co%2Fhf-inference%2Fmodels%2F%25E2%2580%259D). All the models I have tried have HF-INFERENCE listed as a current inference provider. The website model pages’ sample widget returns the same error when I upload a test image for classification.

Similar issue: [Inference API stopped working](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Finference-api-stopped-working%2F150492)

Help : /

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [February 11, 2026, 10:00am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhf-inference-api-error-on-image-classification-models%2F173325%2F2 "2026-02-11T10:00:55Z")

</div>

I was able to reproduce that error both from the GUI and from the client, but I don’t know whether these models were actually intentionally deprecated or if they’ll be brought back.

* * *

## What that **410 “model is deprecated”** error usually means

Hugging Face now has **two related (but different) “410 Gone” situations**:

1. **Legacy Inference API shutdown (old domain)**  
If something is still calling `/static-proxy?url=https%3A%2F%2Fapi-inference.huggingface.co%2F...%60%2C Hugging Face returns **410** and tells you to move to the router (`router.huggingface.co`). This is widely reported across libraries and integrations. ([Hugging Face Forums](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Finference-api-returns-404-not-found-for-all-models%2F169854 "Inference API returns 404 Not Found for all models"))

2. **Model not served by a specific provider anymore (your case)**  
You are already calling the router with the **HF Inference provider** :  
`/static-proxy?url=https%3A%2F%2Frouter.huggingface.co%2Fhf-inference%2Fmodels%2F%3CMODEL_ID%3E%60

The message:

> “The requested model is deprecated and no longer supported by provider hf-inference”

means: **HF Inference (the provider) has stopped serving that model** (or stopped serving it _in the way you’re requesting_), even if the model repo still exists on the Hub.

This matches how the “new” router world works: **a provider serves a catalog, not “every model on the Hub.”** Users forcing `hf-inference` will get errors for models outside that catalog (404/410 are common patterns). ([Hugging Face](https://huggingface.co/docs/inference-providers/providers/hf-inference "HF Inference"))

---

<div class="post-metadata">

**Author:** ![1roomonline](https://avatars.discourse-cdn.com/v4/letter/1/ba9def/32.png) [@1roomonline](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2F1roomonline)%5C
**Post date:** [February 12, 2026, 5:56am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhf-inference-api-error-on-image-classification-models%2F173325%2F3 "2026-02-12T05:56:41Z")

</div>

Yeah, it seems super weird that all image classification models would be deprecated at once, especially the more popular industry models:

- apple/mobilevit-small
- microsoft/resnet-50
- facebook/convnext-large-224

I can’t find any updates on the Hugging Face blogs or other community pages about this… so I am guessing there must be something going on.
