# Chapter 2 questions

**URL:** <https://discuss.huggingface.co/t/chapter-2-questions/6799>\
**Category:** Course\
**Created:** [June 14, 2021, 2:51pm UTC](https://discuss.huggingface.co/t/chapter-2-questions/6799 "2021-06-14T14:51:48Z")\
**Posts on this page:** 1\
**Showing post:** 104

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [May 21, 2025, 5:12am UTC](https://discuss.huggingface.co/t/chapter-2-questions/6799/104 "2025-05-21T05:12:49Z")

</div>

I think this is the 402 error. You also can avoid it by using a local model or another company’s API.

> [@Hugging Face Payment Error 402 & You've Exceeded Monthly Quota](https://discuss.huggingface.co/t/hugging-face-payment-error-402-youve-exceeded-monthly-quota/144968):
>
> 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](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 t…

> [@Avoiding the usage of HfApiModel and using local model - \`smolagents\`](https://discuss.huggingface.co/t/avoiding-the-usage-of-hfapimodel-and-using-local-model-smolagents/152711):
>
> I try to learn the basics of smolagents and I got the following big problem - please help! I am getting the message that I have run out of the free tier for HfApiModel, and I need to buy the paid tier. How can I use the local model to run with my CodeAgent in smolagents?

---

_[View the full topic](https://discuss.huggingface.co/t/chapter-2-questions/6799)._
