404 error on the ree inference endpoint with model all-MiniLM-L6-v2

aiwhiz2025
Tue, 05 Aug 2025 16:14:00 +0000

thanksa mil !
tried the following python call

embedding_url = “https://router.huggingface.co/hf-inference/models/sentence-transformers/all-MiniLM-L6-v2/pipeline/feature-extraction”
response = requests.post(embedding_url, headers, json={“inputs”: text})
if response.status_code != 200:
raise ValueError(f"Request failed with status code {response.status_code}: {response.text}")

response after multiple new tokens…not able to get past this 401…its not possible to be successful in a free account ?

401

Unauthorized access. Please check your credentials or authorization