System Info
Hello Hugging Face Team,
I’m trying to use the new Router API endpoint for model inference:
https://router.huggingface.co/hf-inference
However, whenever I make a request, I always get a "Not Found" (404) response.
Here’s what I’m doing:
Expected behavior:
- The API should return generated text from the model (like it did with the old api-inference endpoint).
Actual behavior:
- Always returns 404 Not Found.
I’ve tried with multiple public models (like gpt2, EleutherAI/gpt-neo-125M), but the problem persists.
Environment:
- Node.js 20
- Axios for HTTP requests
- Hugging Face API key: valid and works with the old api-inference endpoint (deprecated)
Could you please advise if this is a bug or if there’s a change in how the Router API should be called?
Thank you!
Who can help?
No response
Information
Tasks
Reproduction
The tasks I am working on are:
- My own custom task: generating full HTML/CSS/JS websites from prompts.
Expected behavior
The API should return generated text from the model (HTML, CSS, JS) based on the prompt.
System Info
Hello Hugging Face Team,
I’m trying to use the new Router API endpoint for model inference:
https://router.huggingface.co/hf-inference
However, whenever I make a request, I always get a "Not Found" (404) response.
Here’s what I’m doing:
Authorization: Bearer <MY_HF_API_KEY>
Content-Type: application/json
{
"inputs": "Generate a complete HTML website for a candy shop. Return only HTML, CSS, JS."
}
Expected behavior:
Actual behavior:
I’ve tried with multiple public models (like
gpt2,EleutherAI/gpt-neo-125M), but the problem persists.Environment:
Could you please advise if this is a bug or if there’s a change in how the Router API should be called?
Thank you!
Who can help?
No response
Information
Tasks
examplesfolder (such as GLUE/SQuAD, ...)Reproduction
The tasks I am working on are:
Expected behavior
The API should return generated text from the model (HTML, CSS, JS) based on the prompt.