# Is payment required to run the below code?

**URL:** <https://discuss.huggingface.co/t/is-payment-required-to-run-the-below-code/155936>\
**Category:** Beginners\
**Created:** [May 19, 2025, 6:07pm UTC](https://discuss.huggingface.co/t/is-payment-required-to-run-the-below-code/155936 "2025-05-19T18:07:08Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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 20, 2025, 6:03am UTC](https://discuss.huggingface.co/t/is-payment-required-to-run-the-below-code/155936/6 "2025-05-20T06:03:37Z")

</div>

Another option is to do it locally for free if you have a decent GPU, but few people have a GPU powerful enough to run a powerful LLM that can be used with an API…

> [@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/is-payment-required-to-run-the-below-code/155936)._
