Whenever I want generate a response from the api it shows payment error 402 and this link “https://huggingface.co/api/inference-proxy/hf-inference/models/Qwen/QwQ-32B/v1/chat/completions”. After tapping on the link it showing “Sorry, we can’t find the page you are looking for.” Also showing this promise error in console “You have exceeded your monthly included credits for Inference Providers. Subscribe to PRO to get 20x more monthly allowance.”, I haven’t use a bit. I create a new account for this type of problems. I’ve this problem for at least 2 months. I’m using js with hf inference where is the problem.
2 Likes
curl 'https://router.huggingface.co/hf-inference/models/Qwen/QwQ-32B/v1/chat/completions' \
-H 'Authorization: Bearer hf_xxxxxxxxxxxxxxxxxxxxxxxx' \
-H 'Content-Type: application/json' \
--data '{
"model": "Qwen/QwQ-32B",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
],
"max_tokens": 500,
"stream": false
}'
I think there have been changes to the URL of the request destination. Also, payment methods are still being prepared for now.
404 page error! and I want to use in a React app using js not curl.
1 Like
import { HfInference } from "@huggingface/inference";
const client = new HfInference("hf_xxxxxxxxxxxxxxxxxxxxxxxx");
const chatCompletion = await client.chatCompletion({
model: "Qwen/QwQ-32B",
messages: [
{
role: "user",
content: "What is the capital of France?"
}
],
provider: "hf-inference",
max_tokens: 500,
});
console.log(chatCompletion.choices[0].message);
PRO user ran into the same error… any update?
It’s said that PRO users are allowed to use beyond the given free credits and will be billed accordingly. But the API requests just all failed since I used up all free credits. Tried changing inference providers but not work.
1 Like
I encountered the same error today. It seems that they are currently trying to fix it.
I encountered this as well and am waiting for a fix.
1 Like
Important update for Inference API quota.