Hi everyone,
I am new to HF and I’m trying to use the Inference API to call the model google/flan-t5-small
from the Hugging Face Hub.
I have a PRO subscription and I’m using a valid access token with Read permission.
Here’s the exact curl
command I’m using:
curl -X POST https://api-inference.huggingface.co/models/google/flan-t5-small
-H “Authorization: Bearer hf_…”
-H “Content-Type: application/json”
-d ‘{“inputs”: “Translate to French: How are you?”}’
But the response I get is simply:
Not Found
No JSON body, no additional error message — just that plain string.
I’ve tried:
- Regenerating the token
- Testing other models like
bloomz-560m
andt5-base-finetuned-common_gen
(same result) - Using
curl -i
to inspect headers
I’m not sure if I’m doing something wrong or if these models aren’t available via Inference API.
but I tried it a few days ago and it worked…
Any guidance would be appreciated!
Thanks in advance