API returning 404 Not Found for Text Models, but Image Models work

Hello,

I am having an issue with the Inference API. I can successfully get a 200 OK response and generate images using the “stabilityai/stable-diffusion-xl-base-1.0” model.

However, any text-generation model I try results in a 404 Not Found error. I have tried “mistralai/Mistral-7B-Instruct-v0.2” and even “distilgpt2”.

  • I have tried with Python requests and also with PowerShell’s Invoke-RestMethod.
  • I have confirmed my API token is correct, as it works for the image generation model.
  • I even created a brand new account and a new token, and the problem persists.

It seems I can only access image models, while text models are unavailable from my location, always returning a 404 error. Can anyone help diagnose this?

Thank you.

1 Like

The lineup of deployed models and, in some cases, the API endpoint URLs have changed, so that may be the reason.

Text-Generation-related models currently deployed.